core MDL-19799 Upgraded deprecated calls and minor documentation improvement

This commit is contained in:
samhemelryk
2009-09-30 06:14:58 +00:00
parent 521fb444ee
commit ceebb2ec5f
3 changed files with 9 additions and 3 deletions
+2
View File
@@ -27,6 +27,8 @@ if (!file_exists($CFG->themedir .'/'. $preview)) {
$preview = 'standard';
}
$PAGE->set_url(new moodle_url($CFG->wwwroot.'/theme/preview.php', array('preview'=>$preview)));
require_login();
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));