Index: trunk/phase3/includes/Title.php |
— | — | @@ -845,13 +845,7 @@ |
846 | 846 | } else { |
847 | 847 | $url = str_replace( '$1', $dbkey, $wgArticlePath ); |
848 | 848 | } |
849 | | - if( $query ){ |
850 | | - if( strpos( $url, '&' ) ){ |
851 | | - $url .= '&' . $query; |
852 | | - }else{ |
853 | | - $url .= '?' . $query; |
854 | | - } |
855 | | - } |
| 849 | + $url = wfAppendQuery( $url, $query ); |
856 | 850 | } else { |
857 | 851 | global $wgActionPaths; |
858 | 852 | $url = false; |