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:
defacer
2004-11-29 04:19:05 +00:00
parent a9e91540df
commit 9b12850043
10 changed files with 64 additions and 67 deletions
+1 -1
View File
@@ -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.'&amp;blockaction=toggle">' .