From c2ef8736b8fd0c410457fb27c38ae5adc7e2590d Mon Sep 17 00:00:00 2001 From: "green-ponies (jgen)" Date: Sun, 4 Sep 2011 14:19:06 -0400 Subject: [PATCH] Fixed a typo. --- core/page.class.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/core/page.class.php b/core/page.class.php index b1940cd3..c2af3868 100644 --- a/core/page.class.php +++ b/core/page.class.php @@ -167,13 +167,11 @@ class Page { public function display() { global $page; - add_http_header("Content-type: {$this->type}", 1); - add_http_header("X-Powered-By: SCore-".SCORE_VERSION, 2); + $this->add_http_header("Content-type: {$this->type}", 1); + $this->add_http_header("X-Powered-By: SCore-".SCORE_VERSION, 2); if (!headers_sent()) { - foreach($this->http_headers as $head){ - header($head); - } + foreach($this->http_headers as $head)( header($head); ) } else { print "Error: Headers have already been sent to the client."; }