$obj = $instance->obj;
}
- $editalways = $page->edit_always();
+ $editalways = false;
if (($isediting && empty($instance->pinned)) || !empty($editalways)) {
global $DB;
$visible = true;
-
- if (method_exists($page,'edit_always')) {
- if ($page->edit_always()) {
- $visible = false;
- }
- }
-
$select = "pagetype = ?";
$params = array($page->pagetype);
function init_full() {
$this->full_init_done = true;
}
-
-
- // is this page always editable, regardless of anything else?
- function edit_always() {
- return (has_capability('moodle/site:manageblocks', get_context_instance(CONTEXT_SYSTEM)) && defined('ADMIN_STICKYBLOCKS'));
- }
}
-
/**
* Class that models the behavior of a moodle course
*