Fixed a typo.

This commit is contained in:
green-ponies (jgen) 2011-09-04 14:19:06 -04:00
parent c30c898c4e
commit c2ef8736b8

View File

@ -167,13 +167,11 @@ class Page {
public function display() { public function display() {
global $page; global $page;
add_http_header("Content-type: {$this->type}", 1); $this->add_http_header("Content-type: {$this->type}", 1);
add_http_header("X-Powered-By: SCore-".SCORE_VERSION, 2); $this->add_http_header("X-Powered-By: SCore-".SCORE_VERSION, 2);
if (!headers_sent()) { if (!headers_sent()) {
foreach($this->http_headers as $head){ foreach($this->http_headers as $head)( header($head); )
header($head);
}
} else { } else {
print "Error: Headers have already been sent to the client."; print "Error: Headers have already been sent to the client.";
} }