r10523 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10522‎ | r10523 | r10524 >
Date:12:47, 15 August 2005
Author:hashar
Status:old
Tags:
Comment:
removing getmessages()
Modified paths:
  • /trunk/phase3/maintenance/languages.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/languages.inc
@@ -6,7 +6,7 @@
77 * file multiple time :(((
88 */
99 require_once('commandLine.inc');
10 -require_once('languages/Language.php');
 10+
1111 class languages {
1212 /** Contain the list of languages available */
1313 var $list = array();
@@ -45,17 +45,4 @@
4646
4747 function getList() { return $this->list; }
4848 }
49 -
50 -function getMessages($langcode) {
51 - global $wgAllMessagesEn, $wgSkinNamesEn, $wgNamespaceNamesEn, $wgBookstoreListEn,$wgMagicWordsEn,$wgUserTogglesEn;
52 -
53 - $arr = 'wgAllMessages'.$langcode;
54 - global $$arr;
55 -
56 - if(!isset($$arr)) {
57 - require_once( 'languages/Language'.$langcode.'.php' );
58 - }
59 - return $$arr;
60 -}
61 -
6249 ?>

Status & tagging log