From 96705c332ab6dffe04d1f2f6e210aac196ba408e Mon Sep 17 00:00:00 2001 From: dongsheng Date: Wed, 1 Jul 2009 04:11:52 +0000 Subject: [PATCH] "MDL-19077, pixpath is broken, use initialise_deprecated_cfg_pixpath() as a temporary fix" --- lib/formslib.php | 3 ++- lib/weblib.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/formslib.php b/lib/formslib.php index a946d8a377..92e0abbd98 100644 --- a/lib/formslib.php +++ b/lib/formslib.php @@ -1062,7 +1062,8 @@ class MoodleQuickForm extends HTML_QuickForm_DHTMLRulesTableless { * @access public */ function MoodleQuickForm($formName, $method, $action, $target='', $attributes=null){ - global $CFG; + global $CFG, $OUTPUT; + $OUTPUT->initialise_deprecated_cfg_pixpath(); static $formcounter = 1; diff --git a/lib/weblib.php b/lib/weblib.php index 38555dbc1e..16886e86c1 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -5468,7 +5468,8 @@ function editorhelpbutton(){ */ function helpbutton($page, $title, $module='moodle', $image=true, $linktext=false, $text='', $return=false, $imagetext='') { - global $CFG, $COURSE; + global $CFG, $COURSE, $OUTPUT; + $OUTPUT->initialise_deprecated_cfg_pixpath(); //warning if ever $text parameter is used //$text option won't work properly because the text needs to be always cleaned and, -- 2.39.5