Fixed a typo.
This commit is contained in:
parent
c30c898c4e
commit
c2ef8736b8
@ -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.";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user