diff options
author | Andreas Böhler <dev@aboehler.at> | 2015-07-31 08:24:51 +0200 |
---|---|---|
committer | Andreas Böhler <dev@aboehler.at> | 2015-07-31 08:24:51 +0200 |
commit | 49cef4fdcf4c8c1eba59bc3a00aff004599f4a58 (patch) | |
tree | 692488ebc43ab1ed8b2896bc94c39e6a0c8c57a3 | |
parent | 32792fc0525b91da1375fdc969e2db55be644752 (diff) | |
download | rpg-49cef4fdcf4c8c1eba59bc3a00aff004599f4a58.tar.gz rpg-49cef4fdcf4c8c1eba59bc3a00aff004599f4a58.tar.bz2 |
Add 'returnonly' option even if no valid url is given
-rw-r--r-- | inc/parser/xhtml.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index c544d9e32..c92892a35 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -914,7 +914,11 @@ class Doku_Renderer_xhtml extends Doku_Renderer { // is there still an URL? if(!$url) { - $this->doc .= $name; + if($returnonly) { + return $name; + } else { + $this->doc .= $name; + } return; } |