r96274 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96273‎ | r96274 | r96275 >
Date:10:55, 5 September 2011
Author:catrope
Status:ok
Tags:
Comment:
Followup r96180: remove unused global $wgCanonicalServer
Modified paths:
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -1044,7 +1044,6 @@
10451045 * @return string The URL
10461046 */
10471047 public function getCanonicalURL( $query = '', $variant = false ) {
1048 - global $wgCanonicalServer;
10491048 $url = wfExpandUrl( $this->getLocalURL( $query, $variant ) . $this->getFragmentForURL(), PROTO_CANONICAL );
10501049 wfRunHooks( 'GetCanonicalURL', array( &$this, &$url, $query, $variant ) );
10511050 return $url;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r96180Use wfExpandUrl+PROTO_CANONICAL inside of getCanonicalURL instead of just pre...dantman13:17, 3 September 2011

Status & tagging log