Permalink
Browse files

MDL-28210 messaging: all includes but config.php must use $CFG-based …

…abosolute paths
  • Loading branch information...
1 parent 9cf58ab commit e0dfb65718d466aa5dfa5c11466bcfe1a478634e @stronk7 stronk7 committed Jul 12, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 message/discussion.php
View
@@ -25,7 +25,7 @@
*/
require(dirname(dirname(__FILE__)) . '/config.php');
- require_once(dirname(__FILE__) . '/lib.php');
+ require_once($CFG->dirroot . '/message/lib.php');
//the same URL params as in 1.9
$userid = required_param('id', PARAM_INT);
@@ -37,4 +37,4 @@
}
$url = new moodle_url('/message/index.php', $params);
redirect($url);
-?>
+?>

0 comments on commit e0dfb65

Please sign in to comment.