Index: trunk/extensions/ShortUrl/ShortUrl.php |
— | — | @@ -19,10 +19,10 @@ |
20 | 20 | * Configuration variables |
21 | 21 | * Prefix to use for the shortened URL. mod_rewrite (or equivalent) needs to be setup |
22 | 22 | * to produce a shorter URL |
23 | | - * Default is 'null' which just uses the (not so short) URL that all Special Pages get |
| 23 | + * Default is false which just uses the (not so short) URL that all Special Pages get |
24 | 24 | * Eg: http://en.wikipedia.org/wiki/Special:ShortUrl/5234 |
25 | 25 | */ |
26 | | -$wgShortUrlPrefix = null; |
| 26 | +$wgShortUrlPrefix = false; |
27 | 27 | |
28 | 28 | // Extension credits that will show up on Special:Version |
29 | 29 | $wgExtensionCredits['specialpage'][] = array( |
Index: trunk/extensions/ShortUrl/ShortUrl.hooks.php |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | public static function addToolboxLink( &$tpl ) { |
23 | 23 | global $wgOut, $wgShortUrlPrefix; |
24 | 24 | |
25 | | - if ( $wgShortUrlPrefix === null ) { |
| 25 | + if ( !is_string( $wgShortUrlPrefix ) ) { |
26 | 26 | $urlPrefix = SpecialPage::getTitleFor( 'ShortUrl' )->getCanonicalUrl() . '/'; |
27 | 27 | } else { |
28 | 28 | $urlPrefix = $wgShortUrlPrefix; |