Permalink
Browse files

performance increase for make_editing_buttons, value for 'str' stored…

… in static variable
  • Loading branch information...
1 parent dddbc25 commit 4de4fdfe864ed05f530680ac9c1d072f2bdb3527 gregb_cc committed Jun 27, 2003
Showing with 2 additions and 1 deletion.
  1. +2 −1 course/lib.php
View
@@ -1149,9 +1149,10 @@ function move_module($cm, $move) {
}
}
-function make_editing_buttons($moduleid, $absolute=false, $visible=true, $str=NULL) {
+function make_editing_buttons($moduleid, $absolute=false, $visible=true) {
global $CFG, $THEME;
+ static $str = '';
if (empty($str)) {
$str->delete = get_string("delete");
$str->moveup = get_string("moveup");

0 comments on commit 4de4fdf

Please sign in to comment.