summaryrefslogtreecommitdiff
path: root/inc/parser/renderer.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/parser/renderer.php')
-rw-r--r--inc/parser/renderer.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/inc/parser/renderer.php b/inc/parser/renderer.php
index 01a1fbfec..0c3c56c56 100644
--- a/inc/parser/renderer.php
+++ b/inc/parser/renderer.php
@@ -6,8 +6,6 @@
* @author Andreas Gohr <andi@splitbrain.org>
*/
if(!defined('DOKU_INC')) die('meh.');
-require_once DOKU_INC . 'inc/plugin.php';
-require_once DOKU_INC . 'inc/pluginutils.php';
/**
* An empty renderer, produces no output
@@ -277,7 +275,7 @@ class Doku_Renderer extends DokuWiki_Plugin {
global $conf;
//if there is a hash we use the ancor name only
- list($name, $hash) = explode('#', $name, 2);
+ @list($name, $hash) = explode('#', $name, 2);
if($hash) return $hash;
if($conf['useslash']) {
@@ -303,7 +301,7 @@ class Doku_Renderer extends DokuWiki_Plugin {
}
//split into hash and url part
- list($reference, $hash) = explode('#', $reference, 2);
+ @list($reference, $hash) = explode('#', $reference, 2);
//replace placeholder
if(preg_match('#\{(URL|NAME|SCHEME|HOST|PORT|PATH|QUERY)\}#', $url)) {