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