MDL-21233 fixed recent regression

This commit is contained in:
Petr Skoda 2010-01-17 11:01:31 +00:00
parent 5509254c25
commit bc0663abfb

View file

@ -897,7 +897,7 @@ class block_manager {
// it is shortened because some web servers (e.g. IIS by default) give // it is shortened because some web servers (e.g. IIS by default) give
// a 'security' error if you try to pass a full URL as a GET parameter in another URL. // a 'security' error if you try to pass a full URL as a GET parameter in another URL.
$return = $this->out(false); $return = $this->page->url->out(false);
$return = str_replace($CFG->wwwroot . '/', '', $return); $return = str_replace($CFG->wwwroot . '/', '', $return);
$controls[] = array('url' => $CFG->wwwroot . '/' . $CFG->admin . $controls[] = array('url' => $CFG->wwwroot . '/' . $CFG->admin .