From: Ævar Arnfjörð Bjarmason Date: Wed, 22 Jun 2005 00:43:50 +0000 (+0000) Subject: * Using wfSuppressWarnings() to supress undefined index warnings when a X-Git-Tag: 1.5.0beta1~101 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=11b0c6e02212adde2fcf6c46d130c687dbcc96e9;p=lhc%2Fweb%2Fwiklou.git * Using wfSuppressWarnings() to supress undefined index warnings when a linktrail doesn't exist such as for Arabic. * Removed 'sitesettings', obsolete. --- 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; }