Up grading to 1.0.8.1 in spanish Undefined variable: CFG

Up grading to 1.0.8.1 in spanish Undefined variable: CFG

by Carlos González -
Number of replies: 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

 

 

Average of ratings: -
In reply to Carlos González

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

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of 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).