aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/parser/xhtml.php
diff options
context:
space:
mode:
authorPhy <git@phy25.com>2019-09-15 23:39:21 -0400
committerPhy <git@phy25.com>2019-10-20 15:49:21 -0400
commit768be5a379b67ee2adf4b56b980421f77ad7447c (patch)
treef14a1c24e911992b06f64fcaf5089c6ecc91d0c8 /inc/parser/xhtml.php
parentabde598049eec6f3cef64248e410e3f96bf797eb (diff)
downloaddokuwiki-768be5a379b67ee2adf4b56b980421f77ad7447c.tar.gz
dokuwiki-768be5a379b67ee2adf4b56b980421f77ad7447c.zip
Add "default" keyword support for interwiki links
Thank you @selfthinker for the suggestion! If nothing is found in default, it will still fall back to "". Test is added as well. Meantime I fixed a problem that Scrutinizer complained about.
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r--inc/parser/xhtml.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index f448d8a25..b1931d6f0 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -1647,7 +1647,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
if(!$render) {
// if the picture is not supposed to be rendered
// return the title of the picture
- if(!$title) {
+ if($title === null || $title === "") {
// just show the sourcename
$title = $this->_xmlEntities(\dokuwiki\Utf8\PhpString::basename(noNS($src)));
}