From f46093a10c862c090052025b72d9e5b604f4f599 Mon Sep 17 00:00:00 2001
From: Adrian Lang <lang@cosmocode.de>
Date: Thu, 17 Jun 2010 16:39:24 +0200
Subject: [PATCH] Make normal wikilinks work again

---
 inc/parser/xhtml.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index 0ee04e5a1..f9a33fef0 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -562,7 +562,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
 
         $params = array();
 
-        if (preg_match('/^([^?]*)\?([^?]+)$/', $id, $matches) !== false) {
+        if (preg_match('/^([^?]*)\?([^?]+)$/', $id, $matches)) {
             $id = $matches[1];
             preg_match_all('/(?<=[&^])([^=]+)=([^=]*)(?:&|$)/', $matches[2],
                            $matches, PREG_SET_ORDER);
-- 
GitLab