Permalink
Browse files

MDL-27171 messages: use moodle_url in admin_page_ messaging classes

Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
  • Loading branch information...
Ruslan Kabalin
Ruslan Kabalin committed May 27, 2011
1 parent ebe0c00 commit 65c941a698cacf680185592c8a9be803719c83a2
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/adminlib.php
View
@@ -4924,7 +4924,7 @@ class admin_page_managemessageoutputs extends admin_externalpage {
*/
public function __construct() {
global $CFG;
- parent::__construct('managemessageoutputs', get_string('managemessageoutputs', 'message'), "$CFG->wwwroot/$CFG->admin/message.php");
+ parent::__construct('managemessageoutputs', get_string('managemessageoutputs', 'message'), new moodle_url('/admin/message.php'));
}
/**
@@ -4980,7 +4980,7 @@ class admin_page_defaultmessageoutputs extends admin_page_managemessageoutputs {
*/
public function __construct() {
global $CFG;
- admin_externalpage::__construct('defaultmessageoutputs', get_string('defaultmessageoutputs', 'message'), "$CFG->wwwroot/message/defaultoutputs.php");
+ admin_externalpage::__construct('defaultmessageoutputs', get_string('defaultmessageoutputs', 'message'), new moodle_url('/message/defaultoutputs.php'));
}
}

0 comments on commit 65c941a

Please sign in to comment.