Преглед изворни кода

Minor - use api function instead of global value

Julio Montoya пре 6 година
родитељ
комит
3451143082
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      main/document/showinframes.php

+ 1 - 1
main/document/showinframes.php

@@ -169,7 +169,7 @@ header('Pragma: no-cache');
 $browser_display_title = 'Documents - '.Security::remove_XSS($_GET['cidReq']).' - '.$file;
 $browser_display_title = 'Documents - '.Security::remove_XSS($_GET['cidReq']).' - '.$file;
 // Only admins get to see the "no frames" link in pageheader.php, so students get a header that's not so high
 // Only admins get to see the "no frames" link in pageheader.php, so students get a header that's not so high
 $frameheight = 135;
 $frameheight = 135;
-if ($is_courseAdmin) {
+if (api_is_course_admin()) {
     $frameheight = 165;
     $frameheight = 165;
 }
 }