r9556 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r9555‎ | r9556 | r9557 >
Date:00:43, 22 June 2005
Author:avar
Status:old
Tags:
Comment:
* Using wfSuppressWarnings() to supress undefined index warnings when a
linktrail doesn't exist such as for Arabic.
* Removed 'sitesettings', obsolete.
Modified paths:
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/Language.php
@@ -1789,8 +1789,6 @@
17901790 'newimages' => 'New images gallery',
17911791 'noimages' => 'Nothing to see.',
17921792
1793 -'sitesettings' => 'Site Settings',
1794 -
17951793 # short names for language variants used for language conversion links.
17961794 # to disable showing a particular link, set it to 'disable', e.g.
17971795 # 'variantname-zh-sg' => 'disable',
@@ -2879,7 +2877,9 @@
28802878 * @access public
28812879 */
28822880 function linkTrail() {
 2881+ wfSuppressWarnings(); // In case there is no trail for the content language (like for Arabic)
28832882 $trail = $this->getMessage( 'linktrail' );
 2883+ wfRestoreWarnings();
28842884 if( empty( $trail ) ) $trail = Language::linkTrail();
28852885 return $trail;
28862886 }

Status & tagging log