summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Böhler <dev@aboehler.at>2015-07-31 08:24:51 +0200
committerAndreas Böhler <dev@aboehler.at>2015-07-31 08:24:51 +0200
commit49cef4fdcf4c8c1eba59bc3a00aff004599f4a58 (patch)
tree692488ebc43ab1ed8b2896bc94c39e6a0c8c57a3
parent32792fc0525b91da1375fdc969e2db55be644752 (diff)
downloadrpg-49cef4fdcf4c8c1eba59bc3a00aff004599f4a58.tar.gz
rpg-49cef4fdcf4c8c1eba59bc3a00aff004599f4a58.tar.bz2
Add 'returnonly' option even if no valid url is given
-rw-r--r--inc/parser/xhtml.php6
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;
}