From b61eec027838c94f6534536703f0911041e62927 Mon Sep 17 00:00:00 2001 From: Patrick Cool Date: Mon, 30 Jul 2007 10:14:57 +0200 Subject: [PATCH] [svn r12793] replace $PHP_SELF with api_get_self() and correct a missed hardcoded langvar --- main/admin/session_course_list.php | 8 ++++---- main/admin/session_course_user_list.php | 20 ++++++++++---------- main/admin/session_list.php | 22 +++++++++++----------- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/main/admin/session_course_list.php b/main/admin/session_course_list.php index b606fcef15..a612d925b3 100644 --- a/main/admin/session_course_list.php +++ b/main/admin/session_course_list.php @@ -46,7 +46,7 @@ if($action == 'delete') api_sql_query("UPDATE $tbl_session SET nbr_courses=nbr_courses-$nbr_affected_rows WHERE id='$id_session'",__FILE__,__LINE__); } - header('Location: '.$PHP_SELF.'?id_session='.$id_session.'&sort='.$sort); + header('Location: '.api_get_self().'?id_session='.$id_session.'&sort='.$sort); exit(); } @@ -71,7 +71,7 @@ api_display_tool_title($tool_name);
-
+
@@ -92,10 +92,10 @@ foreach($Courses as $key=>$enreg) $course[] = htmlentities($enreg['title']); $course[] = ''.$enreg['nbr_users'].' '.get_lang('Users').''; $course[] = ' - '; + '; $tableCourses[] = $course; } -echo ''; +echo ''; Display :: display_sortable_table($tableHeader, $tableCourses, array (), array ()); echo '
-
+
@@ -85,7 +85,7 @@ else { ?> - + - +   - - - - + + + + @@ -152,7 +152,7 @@ else - + @@ -175,7 +175,7 @@ else { ?> - + - +