From 98e7b7461d5019cfbf817952aec1e8198573bc18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Ra=C3=B1a?= Date: Sat, 9 May 2009 10:57:18 +0200 Subject: [PATCH] [svn r20433] fix logic error --- main/inc/lib/main_api.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/inc/lib/main_api.lib.php b/main/inc/lib/main_api.lib.php index 799858f917..d269fb68c9 100644 --- a/main/inc/lib/main_api.lib.php +++ b/main/inc/lib/main_api.lib.php @@ -1554,12 +1554,12 @@ function api_display_tool_view_option() { // we have to remove the isStudentView=true from the $sourceurl $sourceurl = str_replace('&isStudentView=true', '', $sourceurl); $sourceurl = str_replace('&isStudentView=false', '', $sourceurl); - $output_string .= ''.get_lang("StudentView").''; + $output_string .= ''.get_lang("CourseManagerview").''; } elseif ($_SESSION['studentview']=='teacherview') { //switching to teacherview $sourceurl = str_replace('&isStudentView=true', '', $sourceurl); $sourceurl = str_replace('&isStudentView=false', '', $sourceurl); - $output_string .= ''.get_lang("CourseManagerview").''; + $output_string .= ''.get_lang("StudentView").''; } } else { $output_string .= ''.get_lang("StudentView").'';