Skip to content

Commit

Permalink
MDL-27171 messages: meet require_once usage gudelines
Browse files Browse the repository at this point in the history
Signed-off-by: Ruslan Kabalin <[email protected]>
  • Loading branch information
Ruslan Kabalin committed May 31, 2011
1 parent a4de1d8 commit 60bbe76
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions admin/message.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
* @copyright 2011 Lancaster University Network Services Limited
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(dirname(__FILE__)) . '/config.php');
require_once(dirname(dirname(__FILE__)) . '/message/lib.php');
require_once(dirname(__FILE__) . '/../config.php');
require_once($CFG->dirroot . '/message/lib.php');
require_once($CFG->libdir.'/adminlib.php');

// This is an admin page
Expand Down
4 changes: 2 additions & 2 deletions message/defaultoutputs.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
* @copyright 2011 Lancaster University Network Services Limited
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
require_once(dirname(dirname(__FILE__)) . '/config.php');
require_once(dirname(dirname(__FILE__)) . '/message/lib.php');
require_once(dirname(__FILE__) . '/../config.php');
require_once($CFG->dirroot . '/message/lib.php');
require_once($CFG->libdir.'/adminlib.php');

// This is an admin page
Expand Down
4 changes: 2 additions & 2 deletions message/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* @package message
*/

require_once(dirname(dirname(__FILE__)) . '/config.php');
require_once(dirname(dirname(__FILE__)) . '/message/lib.php');
require_once(dirname(__FILE__) . '/../config.php');
require_once($CFG->dirroot . '/message/lib.php');

$userid = optional_param('id', $USER->id, PARAM_INT); // user id
$course = optional_param('course', SITEID, PARAM_INT); // course id (defaults to Site)
Expand Down

0 comments on commit 60bbe76

Please sign in to comment.