Chad has uploaded a new change for review. https://gerrit.wikimedia.org/r/262837
Change subject: WebRequest::appendQuery*() functions no longer take $onlyquery ...................................................................... WebRequest::appendQuery*() functions no longer take $onlyquery Deprecated since 1.25, unused anywhere Change-Id: I52224635cfeaf4748abeaa07b0c92e7f452fa93f --- M includes/WebRequest.php M includes/diff/DifferenceEngine.php M includes/skins/SkinTemplate.php 3 files changed, 6 insertions(+), 15 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/37/262837/1 diff --git a/includes/WebRequest.php b/includes/WebRequest.php index 7e22404..7b76592 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -729,33 +729,24 @@ /** * @param string $key * @param string $value - * @param bool $onlyquery [deprecated] * @return string */ - public function appendQueryValue( $key, $value, $onlyquery = true ) { - return $this->appendQueryArray( array( $key => $value ), $onlyquery ); + public function appendQueryValue( $key, $value ) { + return $this->appendQueryArray( array( $key => $value ) ); } /** * Appends or replaces value of query variables. * * @param array $array Array of values to replace/add to query - * @param bool $onlyquery Whether to only return the query string - * and not the complete URL [deprecated] * @return string */ - public function appendQueryArray( $array, $onlyquery = true ) { - global $wgTitle; + public function appendQueryArray( $array ) { $newquery = $this->getQueryValues(); unset( $newquery['title'] ); $newquery = array_merge( $newquery, $array ); - $query = wfArrayToCgi( $newquery ); - if ( !$onlyquery ) { - wfDeprecated( __METHOD__, '1.25' ); - return $wgTitle->getLocalURL( $query ); - } - return $query; + return wfArrayToCgi( $newquery ); } /** diff --git a/includes/diff/DifferenceEngine.php b/includes/diff/DifferenceEngine.php index 5e37663..d588d51 100644 --- a/includes/diff/DifferenceEngine.php +++ b/includes/diff/DifferenceEngine.php @@ -433,7 +433,7 @@ array( $msg ) ); } else { # Give explanation and add a link to view the diff... - $query = $this->getRequest()->appendQueryValue( 'unhide', '1', true ); + $query = $this->getRequest()->appendQueryValue( 'unhide', '1' ); $link = $this->getTitle()->getFullURL( $query ); $msg = $suppressed ? 'rev-suppressed-unhide-diff' : 'rev-deleted-unhide-diff'; $out->wrapWikiMsg( diff --git a/includes/skins/SkinTemplate.php b/includes/skins/SkinTemplate.php index c0e5556..2ecbafb 100644 --- a/includes/skins/SkinTemplate.php +++ b/includes/skins/SkinTemplate.php @@ -1204,7 +1204,7 @@ $nav_urls['print'] = array( 'text' => $this->msg( 'printableversion' )->text(), 'href' => $this->getTitle()->getLocalURL( - $request->appendQueryValue( 'printable', 'yes', true ) ) + $request->appendQueryValue( 'printable', 'yes' ) ) ); } -- To view, visit https://gerrit.wikimedia.org/r/262837 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I52224635cfeaf4748abeaa07b0c92e7f452fa93f Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Chad <ch...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits