Fix for bug 2241:
I hope this time I got everything changed to the new Page interface! I 'm really sorry for messing up and breaking new installations... :( Also moved the only two functions of the API outside the page_base class.
This commit is contained in:
@@ -296,7 +296,7 @@ class block_base {
|
||||
$title = $this->str->show;
|
||||
}
|
||||
|
||||
$page = page_base::create_object($this->instance->pagetype, $this->instance->pageid);
|
||||
$page = page_create_object($this->instance->pagetype, $this->instance->pageid);
|
||||
$script = $page->url_get_full(array('instanceid' => $this->instance->id, 'sesskey' => $USER->sesskey));
|
||||
|
||||
$movebuttons .= '<a style="margin-right: 6px; margin-left: 2px;" title="'. $title .'" href="'.$script.'&blockaction=toggle">' .
|
||||
|
||||
Reference in New Issue
Block a user