diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2013-10-16 22:09:09 +0100 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2013-10-16 22:09:09 +0100 |
commit | 5e40b274af54284ae63341c87534fbbc1e1cea44 (patch) | |
tree | 885d511ab831521d3d0f805c93df423099cc7b6c /inc/parserutils.php | |
parent | 53bfcb5964deda22607f47981b51d17e0f48d7ca (diff) | |
download | rpg-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/parserutils.php')
-rw-r--r-- | inc/parserutils.php | 3 |
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: |