summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2013-10-16 22:09:09 +0100
committerChristopher Smith <chris@jalakai.co.uk>2013-10-16 22:09:09 +0100
commit5e40b274af54284ae63341c87534fbbc1e1cea44 (patch)
tree885d511ab831521d3d0f805c93df423099cc7b6c /inc
parent53bfcb5964deda22607f47981b51d17e0f48d7ca (diff)
downloadrpg-5e40b274af54284ae63341c87534fbbc1e1cea44.tar.gz
rpg-5e40b274af54284ae63341c87534fbbc1e1cea44.tar.bz2
refactor to avoid php notice and match structure of rest of p_get_renderer()
Diffstat (limited to 'inc')
-rw-r--r--inc/parserutils.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/parserutils.php b/inc/parserutils.php
index 21ae756c4..b67daaabb 100644
--- a/inc/parserutils.php
+++ b/inc/parserutils.php
@@ -625,7 +625,8 @@ function & p_get_renderer($mode) {
$rclass = "Doku_Renderer_$rname";
if( class_exists($rclass) ) {
- return new $rclass();
+ $Renderer = new $rclass();
+ return $Renderer;
}
// try default renderer first: