mirror of
https://github.com/moodle/moodle.git
synced 2025-03-18 22:50:19 +01:00
performance increase for make_editing_buttons, value for 'str' stored in static variable
This commit is contained in:
parent
dddbc256d3
commit
4de4fdfe86
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user