From f5a6ea597cf0ca374d4decc9b1504e4885773463 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Tue, 20 Apr 2010 08:14:47 +0000 Subject: [PATCH] Follow-up r64078: Define $ntl at the beginning to avoid PHP Notice: Undefined variable: ntl in /www/w/includes/Skin.php on line 2238 Seen on translatewiki today --- includes/Skin.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/Skin.php b/includes/Skin.php index 9e2981d677..8c327e4386 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -2189,6 +2189,7 @@ CSS; function getNewtalks() { global $wgUser, $wgOut; $newtalks = $wgUser->getNewMessageLinks(); + $ntl = ''; if( count( $newtalks ) == 1 && $newtalks[0]['wiki'] === wfWikiID() ) { $userTitle = $this->mUser->getUserPage(); @@ -2232,8 +2233,6 @@ CSS; $parts = implode( $sep, $msgs ); $ntl = wfMsgHtml( 'youhavenewmessagesmulti', $parts ); $wgOut->setSquidMaxage( 0 ); - } else { - $ntl = ''; } return $ntl; } -- 2.20.1