Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Full paths on includes, to help some machines

  • Loading branch information...
commit b2e0d6b6a27892b4d3f9a4e48d91fdfb1eb23abd 1 parent 75c4504
moodler authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 index.php
View
10 index.php
@@ -12,11 +12,11 @@
define('BLOCK_R_MIN_WIDTH', 160);
define('BLOCK_R_MAX_WIDTH', 210);
- require_once("config.php");
- require_once("course/lib.php");
- require_once('lib/blocklib.php');
- require_once("mod/resource/lib.php");
- require_once("mod/forum/lib.php");
+ require_once('config.php');
+ require_once($CFG->dirroot.'course/lib.php');
+ require_once($CFG->dirroot.'lib/blocklib.php');
+ require_once($CFG->dirroot.'mod/resource/lib.php');
+ require_once($CFG->dirroot.'mod/forum/lib.php');
if (! $site = get_site()) {
redirect("$CFG->wwwroot/$CFG->admin/index.php");
Please sign in to comment.
Something went wrong with that request. Please try again.