diff --git a/inc/class.page.php b/inc/class.page.php --- a/inc/class.page.php +++ b/inc/class.page.php @@ -40,6 +40,10 @@ class page /* the current school. See get_school(). */ private $school; + /** + * \param $ntitle + * Must be a valid HTML string (i.e., escaped with htmlentities()). + */ public function __construct($ntitle, $nscripts = array(), $immediate = TRUE) { global $ga_trackers; @@ -91,14 +95,14 @@ class page . " \n"; } - self::session_start(); + self::session_start(); + /* everything that needs sessions started to work: */ + + $this->school = school_load_guess(); + if($immediate && $ntitle != "NOHEAD") $this->head(); - - /* everything that needs sessions started to work: */ - - $this->school = school_load_guess(); } /** @@ -171,7 +175,8 @@ class page Submit Feedback
© '. date('Y').' Nathan Gelderloos
- Ethan Zonca + Ethan Zonca
+ Nathan Phillip Brink