$this->content->icons = array();
$this->content->footer = '';
+ if (empty($this->instance->pageid)) { // sticky
+ if (!empty($COURSE)) {
+ $this->instance->pageid = $COURSE->id;
+ }
+ }
+
if (empty($this->instance)) {
return $this->content = '';
} else if ($this->instance->pageid == SITEID) {
if ($page->blocks_default_position() == $position &&
$page->user_is_editing() &&
- ($managecourseblocks || $editmymoodle || $myownblogpage)) {
+ ($managecourseblocks || $editmymoodle || $myownblogpage || defined('ADMIN_STICKYBLOCKS'))) {
blocks_print_adminblock($page, $pageblocks);
}