Release plat/al core v1.1.13
[platal.git] / include / wiki.engine.inc.php
index 26ea365..b7f323b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2008 Polytechnique.org                              *
+ *  Copyright (C) 2003-2011 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -68,7 +68,6 @@ if (Env::v('action') || !$cache_exists) {
     require_once($globals->spoolroot . '/wiki/pmwiki.php');
 
     $wikiAll = ob_get_clean();
-    pl_clear_errors();
 
     // the pmwiki skin we are using (almost empty) has these keywords:
     $i = strpos($wikiAll, "<!--/HeaderText-->");
@@ -85,7 +84,6 @@ if ($feed) {
     $wikiAll = preg_replace('!<author>.*?\..*?\.(\d{4})\|(.*?)</author>!u', '<author>$2 (X$1)</author>', $wikiAll);
     $wikiAll = str_replace('<link>./', '<link>' . $globals->baseurl . '/' . $platal->ns, $wikiAll);
     echo $wikiAll;
-    pl_clear_errors();
     exit;
 } elseif (Env::v('action')) {
     $page->assign('pl_extra_header', substr($wikiAll, 0, $i));
@@ -133,5 +131,5 @@ if (!Env::v('action')) {
 
 $page->run();
 
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8:
 ?>