Browse Source

Replace api_protect_course_script with api_protect_admin_script - refs #7370

Imanol Losada 10 years ago
parent
commit
68ce8d755a

+ 1 - 1
plugin/buycourses/src/configuration.php

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

+ 1 - 1
plugin/buycourses/src/paymentsetup.php

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

+ 1 - 1
plugin/buycourses/src/pending_orders.php

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