Index: trunk/extensions/WikiLove/WikiLove.hooks.php |
— | — | @@ -54,8 +54,8 @@ |
55 | 55 | return true; |
56 | 56 | } |
57 | 57 | |
58 | | - $title = self::getUserTalkPage( $skin->getTitle() ); |
59 | | - if ( !is_null( $title ) ) { |
| 58 | + $title = $skin->getTitle(); |
| 59 | + if ( $title->getNamespace() == 3 ) { |
60 | 60 | $out->addModules( 'ext.wikiLove.icon' ); |
61 | 61 | $out->addModules( 'ext.wikiLove.init' ); |
62 | 62 | self::$recipient = $title->getText(); |
— | — | @@ -108,7 +108,8 @@ |
109 | 109 | return true; |
110 | 110 | } |
111 | 111 | |
112 | | - if ( !is_null( self::getUserTalkPage( $skin->getTitle() ) ) ) { |
| 112 | + $title = $skin->getTitle(); |
| 113 | + if ( $title->getNamespace() == 3 ) { |
113 | 114 | $views['wikilove'] = array( |
114 | 115 | 'text' => wfMsg( 'wikilove-tab-text' ), |
115 | 116 | 'href' => '#', |