performance increase for make_editing_buttons, value for 'str' stored in static variable

This commit is contained in:
gregb_cc 2003-06-27 22:25:31 +00:00
parent dddbc256d3
commit 4de4fdfe86

View File

@ -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");