Fixed: Now titles with spaces are not treated as non-exisiting anymore.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Wed, 29 Jan 2014 18:21:29 +0000 (18:21 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Wed, 29 Jan 2014 18:21:29 +0000 (18:21 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/mediawiki_extensions/wrreport/trunk@1896 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrreport.body.php

index e646978d1d21a25617b34cbdb1b46bbd3f85667f..fe93f763cb86e211936005fd411013cf83f7fb7c 100644 (file)
@@ -959,7 +959,8 @@ class WrReport {
 
                                // <rodelbahn>
                                if ($tagname == 'rodelbahn') {
-                                       $where['page_title'] = trim($entry);
+                                       $page_title = Title::newFromText(trim($entry));
+                                       $where['page_title'] = $page_title->getDBkey();
                                }
 
                                // under contruction