diff --git a/core/page.php b/core/page.php index cd64a3c8..298925f9 100644 --- a/core/page.php +++ b/core/page.php @@ -67,6 +67,14 @@ class Page $this->type = $type; } + public function __construct() + { + if (@$_GET["flash"]) { + $this->flash[] = $_GET['flash']; + unset($_GET["flash"]); + } + } + //@} // ============================================== @@ -271,10 +279,6 @@ class Page { global $page, $user; - if (@$_GET["flash"]) { - $this->flash[] = $_GET['flash']; - } - header("HTTP/1.0 {$this->code} Shimmie"); header("Content-type: " . $this->type); header("X-Powered-By: SCore-" . SCORE_VERSION);