Index: trunk/extensions/SemanticForms/includes/SF_GlobalFunctions.php |
— | — | @@ -10,13 +10,12 @@ |
11 | 11 | if ( !defined( 'MEDIAWIKI' ) ) die(); |
12 | 12 | |
13 | 13 | /** |
14 | | - * Do the actual intialization of the extension. This is just a delayed init that makes sure |
15 | | - * MediaWiki is set up properly before we add our stuff. |
| 14 | + * This is a delayed init that makes sure that MediaWiki is set up |
| 15 | + * properly before we add our stuff. |
16 | 16 | */ |
17 | 17 | function sfgSetupExtension() { |
18 | | - // this global variable is needed so that other extensions (such |
19 | | - // as Semantic Google Maps) can hook into it to add their own input |
20 | | - // types |
| 18 | + // This global variable is needed so that other extensions can hook |
| 19 | + // into it to add their own input types. |
21 | 20 | global $sfgFormPrinter; |
22 | 21 | $sfgFormPrinter = new StubObject( 'sfgFormPrinter', 'SFFormPrinter' ); |
23 | 22 | } |
— | — | @@ -74,28 +73,3 @@ |
75 | 74 | |
76 | 75 | $sfgContLang = new $cont_lang_class(); |
77 | 76 | } |
78 | | - |
79 | | -/** |
80 | | - * Initialize the global language object for user language. This |
81 | | - * must happen after the content language was initialised, since |
82 | | - * this language is used as a fallback. |
83 | | - */ |
84 | | -function sffInitUserLanguage( $langcode ) { |
85 | | - global $sfgIP, $sfgLang; |
86 | | - |
87 | | - if ( !empty( $sfgLang ) ) { return; } |
88 | | - |
89 | | - $sfLangClass = 'SF_Language' . str_replace( '-', '_', ucfirst( $langcode ) ); |
90 | | - |
91 | | - if ( file_exists( $sfgIP . '/languages/' . $sfLangClass . '.php' ) ) { |
92 | | - include_once( $sfgIP . '/languages/' . $sfLangClass . '.php' ); |
93 | | - } |
94 | | - |
95 | | - // fallback if language not supported |
96 | | - if ( !class_exists( $sfLangClass ) ) { |
97 | | - global $sfgContLang; |
98 | | - $sfgLang = $sfgContLang; |
99 | | - } else { |
100 | | - $sfgLang = new $sfLangClass(); |
101 | | - } |
102 | | -} |