From: dongsheng Date: Wed, 1 Jul 2009 04:11:52 +0000 (+0000) Subject: "MDL-19077, pixpath is broken, use initialise_deprecated_cfg_pixpath() as a temporary... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=96705c332ab6dffe04d1f2f6e210aac196ba408e;p=moodle.git "MDL-19077, pixpath is broken, use initialise_deprecated_cfg_pixpath() as a temporary fix" --- 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,