ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/website/www.git/commit/?id=890e491406ca70393ab58d5051e1ac96d85b9fcf

commit 890e491406ca70393ab58d5051e1ac96d85b9fcf
Author: Andy Williams <a...@andywilliams.me>
Date:   Tue Oct 31 10:30:53 2017 +0000

    Work on pages without languages set
---
 public_html/lib/plugins/codelink/syntax.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/public_html/lib/plugins/codelink/syntax.php 
b/public_html/lib/plugins/codelink/syntax.php
index 5f772d8e..0d6ac1ba 100644
--- a/public_html/lib/plugins/codelink/syntax.php
+++ b/public_html/lib/plugins/codelink/syntax.php
@@ -101,7 +101,8 @@ class syntax_plugin_codelink extends DokuWiki_Syntax_Plugin 
{
             $this->keylanguage = $language;
         } else {
             $symbol = str_replace("()", "", $match);
-            if (!in_array($symbol, 
$this->keydata[$this->keylanguage]['keys'])) {
+            if (!$this->keydata[$this->keylanguage]['keys'] ||
+                    !in_array($symbol, 
$this->keydata[$this->keylanguage]['keys'])) {
                 $data[0] = $match;
                 return $data;
             }

-- 


Reply via email to