"MDL-19077, pixpath is broken, use initialise_deprecated_cfg_pixpath() as a temporary fix"

This commit is contained in:
dongsheng 2009-07-01 04:11:52 +00:00
parent 93feac1719
commit 96705c332a
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -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,