Index: trunk/extensions/FlagPage/FlagPage.hooks.php |
— | — | @@ -4,11 +4,10 @@ |
5 | 5 | function __construct( ) { } |
6 | 6 | |
7 | 7 | function insertTab( $skin, &$content_actions ) { |
8 | | - global $wgTitle; |
9 | | - if ( !$wgTitle->exists() ) { |
10 | | - return false; |
| 8 | + if ( !$skin->getTitle()->exists() ) { |
| 9 | + return true; |
11 | 10 | } |
12 | | - $linkParam = "page=" . $wgTitle->getPrefixedURL(); |
| 11 | + $linkParam = "page=" . $skin->getTitle()->getPrefixedURL(); |
13 | 12 | |
14 | 13 | $special = SpecialPage::getTitleFor( 'FlagPage' ); |
15 | 14 | $content_actions['flagpage'] = array( |
— | — | @@ -22,7 +21,7 @@ |
23 | 22 | // the old '$content_actions' array is thankfully just a |
24 | 23 | // sub-array of this one |
25 | 24 | // copied from Extension:ApprovedRevs (r74381). Author: yaron |
26 | | - self::insertTab( $skin, $links['views'] ); |
| 25 | + self::insertTab( $sktemplate, $links['views'] ); |
27 | 26 | return true; |
28 | 27 | } |
29 | 28 | } |