comparison includes/class.skeleton.php @ 26:710fe2fd2ff7

Suppression des attributs dans Template::NS, rendant le blog conforme XHTML
author Franck Deroche <webmaster@defr.org>
date Thu, 01 Nov 2007 06:07:01 -0700
parents 86a6793f1408
children 4cea8b128fdd
comparison
equal deleted inserted replaced
25:8cbb4f4d890b 26:710fe2fd2ff7
8 private $calendarYear; 8 private $calendarYear;
9 private $useXML; 9 private $useXML;
10 10
11 public function __construct() { 11 public function __construct() {
12 parent::__construct('main.xml'); 12 parent::__construct('main.xml');
13 parent::shouldStripAttributesInTemplateNS(true);
13 $this->styleSheets = array(); 14 $this->styleSheets = array();
14 $this->addDefaultSheets(); 15 $this->addDefaultSheets();
15 $this->blogPosts = array(); 16 $this->blogPosts = array();
16 $this->useXML = empty($_SERVER['HTTP_ACCEPT']) || 17 $this->useXML = empty($_SERVER['HTTP_ACCEPT']) ||
17 stristr($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml'); 18 stristr($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml');