From 11b0c6e02212adde2fcf6c46d130c687dbcc96e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Wed, 22 Jun 2005 00:43:50 +0000 Subject: [PATCH] * Using wfSuppressWarnings() to supress undefined index warnings when a linktrail doesn't exist such as for Arabic. * Removed 'sitesettings', obsolete. --- languages/Language.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/languages/Language.php b/languages/Language.php index 4273517d51..f19a5ca8e3 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -1789,8 +1789,6 @@ ta[\'ca-nstab-category\'] = new Array(\'c\',\'View the category page\'); 'newimages' => 'New images gallery', 'noimages' => 'Nothing to see.', -'sitesettings' => 'Site Settings', - # short names for language variants used for language conversion links. # to disable showing a particular link, set it to 'disable', e.g. # 'variantname-zh-sg' => 'disable', @@ -2879,7 +2877,9 @@ class Language { * @access public */ function linkTrail() { + wfSuppressWarnings(); // In case there is no trail for the content language (like for Arabic) $trail = $this->getMessage( 'linktrail' ); + wfRestoreWarnings(); if( empty( $trail ) ) $trail = Language::linkTrail(); return $trail; } -- 2.20.1