Index: trunk/extensions/FlaggedRevs/presentation/FlaggedPageView.php |
— | — | @@ -1674,12 +1674,15 @@ |
1675 | 1675 | array( ':' , '.' ), array( '%3A', '%' ), // hack: reverse encoding |
1676 | 1676 | substr( $sectionAnchor, 1 ) // remove the '#' |
1677 | 1677 | ); |
1678 | | - $params += array('fromsection' => $section ); |
| 1678 | + $params += array( 'fromsection' => $section ); |
1679 | 1679 | $sectionAnchor = ''; // go to the top of the page to see notice |
1680 | 1680 | } |
1681 | 1681 | } |
1682 | 1682 | } |
1683 | | - $extraQuery = wfAppendQuery( $extraQuery, $params ); |
| 1683 | + if ( $extraQuery !== '' ) { |
| 1684 | + $extraQuery .= '&'; |
| 1685 | + } |
| 1686 | + $extraQuery .= wfArrayToCGI( $params ); // note: EditPage will add initial "&" |
1684 | 1687 | return true; |
1685 | 1688 | } |
1686 | 1689 | |