Small change to headers for efficiency.
These two headers are always sent and do not need to be added to the header queue. (wastes time)
This commit is contained in:
		
							parent
							
								
									6e7789c40b
								
							
						
					
					
						commit
						864e823447
					
				@ -167,8 +167,8 @@ class Page {
 | 
				
			|||||||
	public function display() {
 | 
						public function display() {
 | 
				
			||||||
		global $page;
 | 
							global $page;
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		$this->add_http_header("Content-type: {$this->type}", 1);
 | 
							header("Content-type: ".$this->type);
 | 
				
			||||||
		$this->add_http_header("X-Powered-By: SCore-".SCORE_VERSION, 2);
 | 
							header("X-Powered-By: SCore-".SCORE_VERSION);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (!headers_sent()) {
 | 
							if (!headers_sent()) {
 | 
				
			||||||
			foreach($this->http_headers as $head){ header($head); }
 | 
								foreach($this->http_headers as $head){ header($head); }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user