Tweak to r45324, use wfAppendQuery() instead.
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 2 Jan 2009 16:54:58 +0000 (16:54 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 2 Jan 2009 16:54:58 +0000 (16:54 +0000)
includes/Title.php

index 035314a..6dd164b 100644 (file)
@@ -761,8 +761,7 @@ class Title {
                                                if( isset( $matches[4] ) ) $query .= $matches[4];
                                                $url = str_replace( '$1', $dbkey, $wgActionPaths[$action] );
                                                if( $query != '' ) {
-                                                       $url .= ( strpos( $wgActionPaths[$action], '?' ) 
-                                                                               === false ? '?' : '&' ) . $query;
+                                                       $url .= wfAppendQuery( $url, $query );
                                                }
                                        }
                                }