diff --git a/main/inc/lib/main_api.lib.php b/main/inc/lib/main_api.lib.php index 85b9bfebeb..05f83f0a94 100644 --- a/main/inc/lib/main_api.lib.php +++ b/main/inc/lib/main_api.lib.php @@ -1164,7 +1164,7 @@ 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("CourseManagerview").""; + $output_string .= ''.get_lang("CourseManagerview").''; } elseif ($isStudentView == "false" and $_SESSION["studentview"]) { @@ -1173,19 +1173,19 @@ function api_display_tool_view_option() $sourceurl = str_replace("&isStudentView=false", "", $sourceurl); // We are in teacherview here $_SESSION["studentview"] = "teacherview"; - $output_string .= "".get_lang("StudentView").""; + $output_string .= ''.get_lang("StudentView").''; } elseif ($_SESSION["studentview"]) { // no switching if ($_SESSION["studentview"] == "teacherview") { - $output_string .= "".get_lang("StudentView").""; + $output_string .= ''.get_lang("StudentView").''; } if ($_SESSION["studentview"] == "studentenview") { $sourceurl = str_replace("&isStudentView=true", "", $sourceurl); - $output_string .= " ".get_lang("CourseManagerview").""; + $output_string .= ''.get_lang("CourseManagerview").''; } } elseif (!$_SESSION["studentview"]) @@ -1193,7 +1193,7 @@ function api_display_tool_view_option() // initialisation // We are in teacherview here $_SESSION["studentview"] = "teacherview"; - $output_string .= "".get_lang("StudentView").""; + $output_string .= ''.get_lang("StudentView").''; } if (api_get_setting('show_student_view') == "true")