Replace api_protect_course_script with api_protect_admin_script - refs #7370

1.9.x
Imanol Losada 11 years ago
parent 5fe3e21d0a
commit 68ce8d755a
  1. 2
      plugin/buycourses/src/configuration.php
  2. 2
      plugin/buycourses/src/paymentsetup.php
  3. 2
      plugin/buycourses/src/pending_orders.php

@ -21,7 +21,7 @@ $interbreadcrumb[] = array("url" => "paymentsetup.php", "name" => get_lang('Conf
$tpl = new Template($templateName); $tpl = new Template($templateName);
$teacher = api_is_platform_admin(); $teacher = api_is_platform_admin();
api_protect_course_script(true); api_protect_admin_script(true);
if ($teacher) { if ($teacher) {
// sync course table with the plugin // sync course table with the plugin

@ -18,7 +18,7 @@ $interbreadcrumb[] = array("url" => "configuration.php", "name" => $plugin->get_
$tpl = new Template($templateName); $tpl = new Template($templateName);
$teacher = api_is_platform_admin(); $teacher = api_is_platform_admin();
api_protect_course_script(true); api_protect_admin_script(true);
if ($teacher) { if ($teacher) {
// Sync course table with the plugin // Sync course table with the plugin

@ -19,7 +19,7 @@ $interbreadcrumb[] = array("url" => "paymentsetup.php", "name" => $plugin->get_l
$tpl = new Template($tableName); $tpl = new Template($tableName);
$teacher = api_is_platform_admin(); $teacher = api_is_platform_admin();
api_protect_course_script(true); api_protect_admin_script(true);
if ($teacher) { if ($teacher) {
$pendingList = pendingList($_SESSION['bc_codetext']); $pendingList = pendingList($_SESSION['bc_codetext']);

Loading…
Cancel
Save