moodle_page: MDL-12212 completely remove the old tag and admin page classes

This commit is contained in:
tjhunt
2009-05-06 09:11:07 +00:00
parent 5ed70539f9
commit f8b80dbd95
8 changed files with 110 additions and 165 deletions
+3 -1
View File
@@ -461,7 +461,9 @@ class block_base {
if (($this->instance->pagetype == $PAGE->pagetype) and $this->instance->pageid == $PAGE->id) {
$page = $PAGE;
} else {
$page = page_create_object($this->instance->pagetype, $this->instance->pageid);
$page = new moodle_page();
$page->set_pagetype($this->instance->pagetype);
$page->pageid = $this->instance->pageid;
}
$script = $page->url->out(array('instanceid' => $this->instance->id, 'sesskey' => sesskey()));