r59350 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r59349‎ | r59350 | r59351 >
Date:10:22, 23 November 2009
Author:werdna
Status:deferred
Tags:
Comment:
LiquidThreads: only customise new messages prompt if the new messages are on a LiquidThreads page.
Modified paths:
  • /trunk/extensions/LiquidThreads/classes/Hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/classes/Hooks.php
@@ -84,6 +84,11 @@
8585
8686 static function setNewtalkHTML( $skintemplate, $tpl ) {
8787 global $wgUser, $wgTitle, $wgOut;
 88+
 89+ if ( ! LqtDispatch::isLqtPage( $wgUser->getTalkPage() ) ) {
 90+ return true;
 91+ }
 92+
8893 wfLoadExtensionMessages( 'LiquidThreads' );
8994 $newmsg_t = SpecialPage::getTitleFor( 'NewMessages' );
9095 $watchlist_t = SpecialPage::getTitleFor( 'Watchlist' );

Status & tagging log