Fixed: Now titles with spaces are not treated as non-exisiting anymore.
[philipp/winterrodeln/mediawiki_extensions/wrreport.git] / wrreport.body.php
index e646978d1d21a25617b34cbdb1b46bbd3f85667f..fe93f763cb86e211936005fd411013cf83f7fb7c 100644 (file)
@@ -959,7 +959,8 @@ class WrReport {
 
                                // <rodelbahn>
                                if ($tagname == 'rodelbahn') {
 
                                // <rodelbahn>
                                if ($tagname == 'rodelbahn') {
-                                       $where['page_title'] = trim($entry);
+                                       $page_title = Title::newFromText(trim($entry));
+                                       $where['page_title'] = $page_title->getDBkey();
                                }
 
                                // under contruction
                                }
 
                                // under contruction