<commit_before><?php
	
	require_once(TOOLKIT . '/class.htmlpage.php');
	
	Class AdministrationPage extends HTMLPage{
		
		const PAGE_ALERT_NOTICE = 1;
		const PAGE_ALERT_ERROR = 2;
		
		var $_navigation;
		var $_Parent;
		var $_alert;
		var $_context;
		
		function __construct(&$parent){
			parent::__construct();
			
			$this->Html->setElementStyle('html');
			
			$this->_Parent = $parent;
			$this->_navigation = array();
			$this->_alert = NULL;
			
		}
		
		function setPageType($type){
			$this->addStylesheetToHead(URL . '/symphony/assets/' . ($type == 'table' ? 'tables' : 'forms') . '.css', 'screen', 30);
		}
		
		function setTitle($val, $position=10){
			return $this->addElementToHead(new XMLElement('title', $val), $position);
		}
		
		function build($context = NULL){
			
			$this->_context = $context;
			
			if(!$this->canAccessPage()){
				$this->_Parent->customError(E_USER_ERROR, __('Access Denied'), __('You are not authorised to access this page.'));
				exit();
			}
			
			$this->Html->setDTD('<!DOCTYPE html>');
			$this->Html->setAttribute('lang', __LANG__);
			$this->addElementToHead(new XMLElement('meta', NULL, array('http-equiv' => 'Content-Type', 'content' => 'text/html; charset=UTF-8')), 0);
			$this->addElementToHead(new XMLElement('link', NULL, array('rel' => 'icon', 'href' => URL.'/symphony/assets/images/bookmark.png', 'type' => 'image/png')), 20); 
			$this->addElementToHead(new XMLElement('!--[if IE]><link rel="stylesheet" href="'.URL.'/symphony/assets/legacy.css" type="text/css"><![endif]--'), 40);			<commit_msg>Fixed bug where page title would not be displayed when custom stylesheets where applied.<commit_after><?php
	
	require_once(TOOLKIT . '/class.htmlpage.php');
	
	Class AdministrationPage extends HTMLPage{
		
		const PAGE_ALERT_NOTICE = 1;
		const PAGE_ALERT_ERROR = 2;
		
		var $_navigation;
		var $_Parent;
		var $_alert;
		var $_context;
		
		function __construct(&$parent){
			parent::__construct();
			
			$this->Html->setElementStyle('html');
			
			$this->_Parent = $parent;
			$this->_navigation = array();
			$this->_alert = NULL;
			
		}
		
		function setPageType($type){
			$this->addStylesheetToHead(URL . '/symphony/assets/' . ($type == 'table' ? 'tables' : 'forms') . '.css', 'screen', 30);
		}
		
		function setTitle($val, $position=null) {
			return $this->addElementToHead(new XMLElement('title', $val), $position);
		}
		
		function build($context = NULL){
			
			$this->_context = $context;
			
			if(!$this->canAccessPage()){
				$this->_Parent->customError(E_USER_ERROR, __('Access Denied'), __('You are not authorised to access this page.'));
				exit();
			}
			
			$this->Html->setDTD('<!DOCTYPE html>');
			$this->Html->setAttribute('lang', __LANG__);
			$this->addElementToHead(new XMLElement('meta', NULL, array('http-equiv' => 'Content-Type', 'content' => 'text/html; charset=UTF-8')), 0);
			$this->addElementToHead(new XMLElement('link', NULL, array('rel' => 'icon', 'href' => URL.'/symphony/assets/images/bookmark.png', 'type' => 'image/png')), 20); 
			$this->addElementToHead(new XMLElement('!--[if IE]><link rel="stylesheet" href="'.URL.'/symphony/assets/legacy.css" type="text/css"><![endif]--'), 40);			
{'fraction_non_alphanumeric': 0.19618272841051315, 'fraction_numerical': 0.00688360450563204, 'mean_word_length': 4.139871382636656, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7314305', 'n_tokens_mistral': 1252, 'n_tokens_neox': 1054, 'n_words': 209}