People keep sticking raw user_text fields into LinkBatch::add(), so let's go ahead...
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 3 Dec 2007 16:19:47 +0000 (16:19 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 3 Dec 2007 16:19:47 +0000 (16:19 +0000)
includes/LinkBatch.php

index 20bcd3d..db1114c 100644 (file)
@@ -34,7 +34,7 @@ class LinkBatch {
                        $this->data[$ns] = array();
                }
 
-               $this->data[$ns][$dbkey] = 1;
+               $this->data[$ns][str_replace( ' ', '_', $dbkey )] = 1;
        }
 
        /**