MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions

This commit is contained in:
Petr Skoda
2010-01-16 15:39:56 +00:00
parent 5192a212f8
commit a685593466
424 changed files with 955 additions and 906 deletions
+1 -2
View File
@@ -5197,8 +5197,7 @@ function admin_externalpage_setup($section, $extrabutton = '',
if (!$actualurl) {
$actualurl = $extpage->url;
}
$PAGE->set_url(str_replace($CFG->wwwroot . '/', '', $actualurl),
array_merge($extraurlparams, array('section' => $section)));
$PAGE->set_url($actualurl, array_merge($extraurlparams, array('section' => $section)));
if (strpos($PAGE->pagetype, 'admin-') !== 0) {
$PAGE->set_pagetype('admin-' . $PAGE->pagetype);
}