MDL-17694: very small stickyblocks improvements (Merged from MOODLE_19_STABLE)

This commit is contained in:
mjollnir_
2008-12-19 09:49:33 +00:00
parent 0e4e1a43f1
commit ee1efe0b0f
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -19,6 +19,12 @@ class block_admin extends block_list {
$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) {
+1 -1
View File
@@ -367,7 +367,7 @@ function blocks_print_group(&$page, &$pageblocks, $position) {
if ($page->blocks_default_position() == $position &&
$page->user_is_editing() &&
($managecourseblocks || $editmymoodle || $myownblogpage)) {
($managecourseblocks || $editmymoodle || $myownblogpage || defined('ADMIN_STICKYBLOCKS'))) {
blocks_print_adminblock($page, $pageblocks);
}