moodle_page: MDL-12212 reimplement user_is_editing, deprecate isediting
[moodle.git] / course / search.php
index 31f97c8..a15762c 100644 (file)
@@ -35,9 +35,9 @@
 
     if (update_category_button()) {
         if ($edit !== -1) {
-            $USER->categoryediting = $edit;
+            $USER->editing = $edit;
         }
-        $adminediting = !empty($USER->categoryediting);
+        $adminediting = $PAGE->user_is_editing();
     } else {
         $adminediting = false;
     }