http://www.mediawiki.org/wiki/Special:Code/MediaWiki/65309
Revision: 65309
Author: raymond
Date: 2010-04-20 12:54:12 +0000 (Tue, 20 Apr 2010)
Log Message:
-----------
Backport r65293: Define $ntl at the beginning to avoid PHP Notice: Undefined
variable: ntl in /www/w/includes/SkinTemplate.php
Modified Paths:
--------------
branches/REL1_16/phase3/includes/SkinTemplate.php
Modified: branches/REL1_16/phase3/includes/SkinTemplate.php
===================================================================
--- branches/REL1_16/phase3/includes/SkinTemplate.php 2010-04-20 12:37:46 UTC
(rev 65308)
+++ branches/REL1_16/phase3/includes/SkinTemplate.php 2010-04-20 12:54:12 UTC
(rev 65309)
@@ -326,6 +326,7 @@
}
$newtalks = $wgUser->getNewMessageLinks();
+ $ntl = '';
if( count( $newtalks ) == 1 && $newtalks[0]['wiki'] ===
wfWikiID() ) {
$usertitle = $this->mUser->getUserPage();
@@ -367,8 +368,6 @@
$parts = implode( $sep, $msgs );
$ntl = wfMsgHtml( 'youhavenewmessagesmulti', $parts );
$out->setSquidMaxage( 0 );
- } else {
- $ntl = '';
}
wfProfileOut( __METHOD__ . '-stuff2' );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs