by Augusto Weiand.
Hello,
I upgraded my system to version 2.4 ... I found a bug in the toy system of control that I had done (and it worked in 2.2), when I turn editing on / off Moodle redirects me to the login area, which soon after again nothing happens and toy system does not recognize the editing active or not ... what might be happening? In version 2.4 are treated different variables? I have done a search but found no solution ...
this is my code:
include $_SERVER['DOCUMENT_ROOT']."/moodle2.4/config.php";
if ($USER->editing == 1){
echo "<br />Hewllo World";
} else {
echo "<br />oh my god... ";
}
Thanks again...