From f269f47c71bd5ff24dd31cb0dc4a686f4328593b Mon Sep 17 00:00:00 2001 From: Brett Bieber <brett.bieber@gmail.com> Date: Fri, 7 Sep 2012 10:11:22 -0500 Subject: [PATCH] Do not rely on ./ being in the include path --- www/course.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/course.php b/www/course.php index 272f860..ebf26ce 100644 --- a/www/course.php +++ b/www/course.php @@ -1,6 +1,6 @@ <?php -require_once '../config.inc.php'; +require_once __DIR__ . '/../config.inc.php'; require_once 'UNL/Catalog.php'; $catalog = new UNL_Catalog(); @@ -67,4 +67,4 @@ switch ($format) { echo $catalog->p->maincontentarea; break; } -?> \ No newline at end of file +?> -- GitLab