Index: trunk/extensions/ShortUrl/ShortUrl.utils.php |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | exit( 1 ); |
15 | 15 | } |
16 | 16 | |
17 | | -/** |
| 17 | +/** |
18 | 18 | * Utility functions for encoding and decoding short URLs |
19 | 19 | */ |
20 | 20 | class ShortUrlUtils { |
— | — | @@ -83,10 +83,10 @@ |
84 | 84 | } |
85 | 85 | |
86 | 86 | /** |
87 | | - * @param $title Title |
| 87 | + * @param $title Title |
88 | 88 | * @return Boolean: true if a short URL needs to be displayed |
89 | 89 | */ |
90 | 90 | public static function needsShortUrl( $title ) { |
91 | | - return $title->exists() && !$title->equals( Title::newMainPage() ); |
| 91 | + return $title->exists() && !$title->isMainPage(); |
92 | 92 | } |
93 | 93 | } |