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
+2 -3
View File
@@ -566,7 +566,6 @@ function upgrade_plugins_blocks($startcallback, $endcallback) {
// Finally, if we are in the first_install of BLOCKS setup frontpage and admin page blocks
if ($first_install) {
require_once($CFG->dirroot.'/'.$CFG->admin.'/pagelib.php');
//Iterate over each course - there should be only site course here now
if ($courses = $DB->get_records('course')) {
foreach ($courses as $course) {
@@ -575,8 +574,8 @@ function upgrade_plugins_blocks($startcallback, $endcallback) {
}
}
page_map_class(PAGE_ADMIN, 'page_admin');
$page = page_create_object(PAGE_ADMIN, 0); // there must be some id number
$page = new moodle_page();
$page->set_pagetype('admin');
blocks_repopulate_page($page);
}
}