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.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/inc/parser/renderer.php b/inc/parser/renderer.php
index 7002fd0cb..7df369478 100644
--- a/inc/parser/renderer.php
+++ b/inc/parser/renderer.php
@@ -20,6 +20,8 @@ class Doku_Renderer extends DokuWiki_Plugin {
'toc' => true, // render the TOC?
);
+ var $doc = '';
+
// keep some config options
var $acronyms = array();
var $smileys = array();
@@ -60,7 +62,7 @@ class Doku_Renderer extends DokuWiki_Plugin {
//handle plugin rendering
function plugin($name,$data){
- $plugin =& plugin_load('syntax',$name);
+ $plugin = plugin_load('syntax',$name);
if($plugin != null){
$plugin->render($this->getFormat(),$this,$data);
}
@@ -75,7 +77,7 @@ class Doku_Renderer extends DokuWiki_Plugin {
foreach ( $instructions as $instruction ) {
// execute the callback against ourself
if (method_exists($this,$instruction[0])) {
- call_user_func_array(array($this, $instruction[0]),$instruction[1]);
+ call_user_func_array(array($this, $instruction[0]), $instruction[1] ? $instruction[1] : array());
}
}
}
@@ -272,9 +274,10 @@ class Doku_Renderer extends DokuWiki_Plugin {
list($name,$hash) = explode('#',$name,2);
if($hash) return $hash;
- $name = strtr($name,';',':');
if($conf['useslash']){
- $name = strtr($name,'/',':');
+ $name = strtr($name,';/',';:');
+ }else{
+ $name = strtr($name,';',':');
}
return noNSorNS($name);