Merge branch 'MDL-53407-editing-css' of https://github.com/Dagefoerde/moodle
authorDan Poltawski <dan@moodle.com>
Mon, 21 Mar 2016 06:48:41 +0000 (14:48 +0800)
committerDan Poltawski <dan@moodle.com>
Mon, 21 Mar 2016 06:48:41 +0000 (14:48 +0800)
lib/pagelib.php

index 811234f..6c2cd9c 100644 (file)
@@ -1756,7 +1756,7 @@ class moodle_page {
             $this->add_body_class('notloggedin');
         }
 
-        if (!empty($USER->editing)) {
+        if ($this->user_is_editing()) {
             $this->add_body_class('editing');
             if (optional_param('bui_moveid', false, PARAM_INT)) {
                 $this->add_body_class('blocks-moving');