Up grading to 1.0.8.1 in spanish Undefined variable: CFG

Up grading to 1.0.8.1 in spanish Undefined variable: CFG

wót Carlos González -
Anzahl Antworten: 1

I tried to rate in a forum an got

http://www.aestudiar.cl/curso/mod/forum/rate.php

Warning: Undefined variable: CFG in /usr/local/httpd/htdocs/www/www.aestudiar.cl/curso/lib/weblib.php on line 199


' + inobj[objprop] + '\n');
}
op.document.close();
}

function fillmessagebox(text) {
document.form.message.value = text;
}

function openpopup(url,name,height,width) {
fullurl = "http://www.aestudiar.cl/curso" + url;
options = "menubar=0,location=0,scrollbars,resizable,width="+width+",height="+height;
windowobj = window.open(fullurl,name, options);
windowobj.focus();
}

function copyrichtext(textname) {
textname.value = document.richedit.docHtml;
return true;
}


// done hiding -->

This page was not accessed correctly

Continuar

I tried to correct this problem puting

global $CFG 

on line 191 and was very worse.

Please give me some help

 

 

Als Antwort auf Carlos González

Re: Up grading to 1.0.8.1 in spanish Undefined variable: CFG

wót Martin Dougiamas -
Nutzerbild von Core developers Nutzerbild von Documentation writers Nutzerbild von Moodle HQ Nutzerbild von Particularly helpful Moodlers Nutzerbild von Plugin developers Nutzerbild von Testers
This bug has already been fixed in CVS (and the next release). It's only visible when you have "debug" turned on - it doesn't affect normal operation.

I recommend that you turn debug "off" in the Admin configuration page (so you don't even notice these minor warnings).