removed useless includes

This commit is contained in:
skodak
2006-09-03 18:49:13 +00:00
parent b1631fef28
commit 08c15b68d7
-2
View File
@@ -363,8 +363,6 @@
//add admin_tree block to site if not already present
if ($admintree = get_record('block', 'name', 'admin_tree')) {
require_once("$CFG->dirroot/$CFG->admin/pagelib.php");
require_once($CFG->libdir.'/blocklib.php');
$page = page_create_object(PAGE_COURSE_VIEW, SITEID);
blocks_execute_action($page, blocks_get_by_page($page), 'add', (int)$admintree->id, false, false);
}