Index: trunk/phase3/includes/Title.php |
— | — | @@ -767,7 +767,7 @@ |
768 | 768 | |
769 | 769 | /** |
770 | 770 | * Return the prefixed title with spaces _without_ the interwiki prefix |
771 | | - * |
| 771 | + * |
772 | 772 | * @return \type{\string} the title, prefixed by the namespace but not by the interwiki prefix, with spaces |
773 | 773 | */ |
774 | 774 | public function getSemiPrefixedText() { |
— | — | @@ -776,7 +776,7 @@ |
777 | 777 | $s = str_replace( '_', ' ', $s ); |
778 | 778 | $this->mSemiPrefixedText = $s; |
779 | 779 | } |
780 | | - return $this->mSemiPrefixedText; |
| 780 | + return $this->mSemiPrefixedText; |
781 | 781 | } |
782 | 782 | |
783 | 783 | /** |
— | — | @@ -1007,7 +1007,7 @@ |
1008 | 1008 | public function escapeFullURL( $query = '' ) { |
1009 | 1009 | return htmlspecialchars( $this->getFullURL( $query ) ); |
1010 | 1010 | } |
1011 | | - |
| 1011 | + |
1012 | 1012 | /** |
1013 | 1013 | * HTML-escaped version of getCanonicalURL() |
1014 | 1014 | */ |
— | — | @@ -1019,7 +1019,7 @@ |
1020 | 1020 | * Get the URL form for an internal link. |
1021 | 1021 | * - Used in various Squid-related code, in case we have a different |
1022 | 1022 | * internal hostname for the server from the exposed one. |
1023 | | - * |
| 1023 | + * |
1024 | 1024 | * This uses $wgInternalServer to qualify the path, or $wgServer |
1025 | 1025 | * if $wgInternalServer is not set. If the server variable used is |
1026 | 1026 | * protocol-relative, the URL will be expanded to http:// |
— | — | @@ -1044,9 +1044,9 @@ |
1045 | 1045 | * Get the URL for a canonical link, for use in things like IRC and |
1046 | 1046 | * e-mail notifications. Uses $wgCanonicalServer and the |
1047 | 1047 | * GetCanonicalURL hook. |
1048 | | - * |
| 1048 | + * |
1049 | 1049 | * NOTE: Unlike getInternalURL(), the canonical URL includes the fragment |
1050 | | - * |
| 1050 | + * |
1051 | 1051 | * @param $query string An optional query string |
1052 | 1052 | * @param $variant string Language variant of URL (for sr, zh, ...) |
1053 | 1053 | * @return string The URL |
— | — | @@ -1797,7 +1797,7 @@ |
1798 | 1798 | // Interwiki title or immovable namespace. Hooks don't get to override here |
1799 | 1799 | return false; |
1800 | 1800 | } |
1801 | | - |
| 1801 | + |
1802 | 1802 | $result = true; |
1803 | 1803 | wfRunHooks( 'TitleIsMovable', array( $this, &$result ) ); |
1804 | 1804 | return $result; |
— | — | @@ -2826,7 +2826,7 @@ |
2827 | 2827 | : $dbkey; |
2828 | 2828 | |
2829 | 2829 | // Any remaining initial :s are illegal. |
2830 | | - if ( $dbkey !== '' && ':' == $dbkey { 0 } ) { |
| 2830 | + if ( $dbkey !== '' && ':' == $dbkey[0] ) { |
2831 | 2831 | return false; |
2832 | 2832 | } |
2833 | 2833 | |
— | — | @@ -3392,7 +3392,7 @@ |
3393 | 3393 | array( 'rc_timestamp' => $rcts, 'rc_namespace' => $newns, 'rc_title' => $newdbk, 'rc_new' => 1 ), |
3394 | 3394 | __METHOD__ |
3395 | 3395 | ); |
3396 | | - |
| 3396 | + |
3397 | 3397 | if ( $wgEnableInterwikiTemplatesTracking && $wgGlobalDatabase ) { |
3398 | 3398 | $dbw2 = wfGetDB( DB_MASTER, array(), $wgGlobalDatabase ); |
3399 | 3399 | $dbw2->delete( 'globaltemplatelinks', |