X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fplatalpage.php;h=b0f5d6a4357bcb5543954598c93bf4598fdb3778;hb=b576bf6007ac6b93d744265712231431f9ddd6cd;hp=63add7e0747c2ce18813ba9c65862034bb1de20a;hpb=bbceafce062e1e542520a6490c277a3eed917060;p=platal.git diff --git a/classes/platalpage.php b/classes/platalpage.php index 63add7e..b0f5d6a 100644 --- a/classes/platalpage.php +++ b/classes/platalpage.php @@ -77,12 +77,13 @@ class PlatalPage extends Smarty session_write_close(); - $this->assign("xorg_errors", $this->_errors); - $this->assign("xorg_failure", $this->_failure); + $this->assign('xorg_errors', $this->_errors); + $this->assign('xorg_failure', $this->_failure); $this->assign('globals', $globals); switch ($this->_page_type) { case NO_SKIN: + error_reporting(0); $this->display($this->_tpl); exit; @@ -94,6 +95,7 @@ class PlatalPage extends Smarty } if (!$globals->debug) { + error_reporting(0); $this->display($skin); exit; } @@ -103,8 +105,9 @@ class PlatalPage extends Smarty } $this->assign('validate', true); + error_reporting(0); $result = $this->fetch($skin); - $ttime .= sprintf('Temps total: %.02fs
', microtime_float() - $TIME_BEGIN); + $ttime = sprintf('Temps total: %.02fs
', microtime_float() - $TIME_BEGIN); $replc = "VALIDATION HTML INACTIVE
"; if ($globals->debug & 2) { @@ -151,6 +154,9 @@ class PlatalPage extends Smarty function kill($msg) { + global $platal; + + $this->assign('platal', $platal); $this->trig($msg); $this->_failure = true; $this->run(); @@ -173,6 +179,14 @@ class PlatalPage extends Smarty } // }}} + // {{{ function setRssLink + + function setRssLink($title, $path) + { + $this->assign('xorg_rss', array('title' => $title, 'href' => $path)); + } + + // }}} } // {{{ function escape_html ()