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