http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90817
Revision: 90817
Author: kaldari
Date: 2011-06-26 04:31:55 +0000 (Sun, 26 Jun 2011)
Log Message:
-----------
I think having the WikiLove tab on user pages is going to cause much confusion,
I would rather limit it to user talk pages for the initial launch
Modified Paths:
--------------
trunk/extensions/WikiLove/WikiLove.hooks.php
Modified: trunk/extensions/WikiLove/WikiLove.hooks.php
===================================================================
--- trunk/extensions/WikiLove/WikiLove.hooks.php 2011-06-26 04:12:05 UTC
(rev 90816)
+++ trunk/extensions/WikiLove/WikiLove.hooks.php 2011-06-26 04:31:55 UTC
(rev 90817)
@@ -54,8 +54,8 @@
return true;
}
- $title = self::getUserTalkPage( $skin->getTitle() );
- if ( !is_null( $title ) ) {
+ $title = $skin->getTitle();
+ if ( $title->getNamespace() == 3 ) {
$out->addModules( 'ext.wikiLove.icon' );
$out->addModules( 'ext.wikiLove.init' );
self::$recipient = $title->getText();
@@ -108,7 +108,8 @@
return true;
}
- if ( !is_null( self::getUserTalkPage( $skin->getTitle() ) ) ) {
+ $title = $skin->getTitle();
+ if ( $title->getNamespace() == 3 ) {
$views['wikilove'] = array(
'text' => wfMsg( 'wikilove-tab-text' ),
'href' => '#',
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs