Changeset - f2ad2e40082f
[Not reviewed]
default
0 2 0
Nathan Brink (binki) - 15 years ago 2011-02-09 23:59:21
ohnobinki@ohnopublishing.net
Fix require_once (include) calls which had broken paths depending on the CWD of the calling script.
2 files changed with 6 insertions and 5 deletions:
0 comments (0 inline, 0 general)
inc/class.schedule.php
Show inline comments
 
@@ -26,15 +26,16 @@
 
// all the possible permutations.
 
//**************************************************
 

	
 
include_once('inc/class.course.inc');
 
include_once 'class.section.php';
 
include_once 'inc/class.page.php';
 
$incdir = dirname(__FILE__) . DIRECTORY_SEPARATOR;
 
include_once $incdir . 'class.course.inc';
 
include_once $incdir . 'class.section.php';
 
include_once $incdir . 'class.page.php';
 

	
 
/*
 
 * Load a Classes -> Course converter class for the sake of the
 
 * Schedule::__wakeup() magic function.
 
 */
 
require_once('inc/class.classes_convert.inc');
 
require_once $incdir . 'class.classes_convert.inc';
 

	
 
class Schedule
 
{
inc/class.section.php
Show inline comments
 
@@ -24,7 +24,7 @@
 
// Represents a section of a class.
 
//--------------------------------------------------
 

	
 
require_once('inc/class.section_meeting.inc');
 
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'class.section_meeting.inc';
 
   
 
class Section
 
{
0 comments (0 inline, 0 general)