Index: trunk/phase3/includes/Title.php |
— | — | @@ -1044,7 +1044,6 @@ |
1045 | 1045 | * @return string The URL |
1046 | 1046 | */ |
1047 | 1047 | public function getCanonicalURL( $query = '', $variant = false ) { |
1048 | | - global $wgCanonicalServer; |
1049 | 1048 | $url = wfExpandUrl( $this->getLocalURL( $query, $variant ) . $this->getFragmentForURL(), PROTO_CANONICAL ); |
1050 | 1049 | wfRunHooks( 'GetCanonicalURL', array( &$this, &$url, $query, $variant ) ); |
1051 | 1050 | return $url; |