Commit graph

14 commits

Author SHA1 Message Date
Tim Starling
dc7a748b8a Fix language code validation regex to allow be-x-old. 2007-04-02 17:49:12 +00:00
Antoine Musso
f78e9c549f Fix r19896 for bug 8944 (pressing 'u' in vim before committing is a bad idea). 2007-02-12 20:22:34 +00:00
Antoine Musso
70a270421a Fix #8944: The deprecated is_a() function is used in StubObjects.php 2007-02-12 20:18:05 +00:00
Antoine Musso
171945efed User::getOption now accept a default value to override default user values
this makes it consistent with WebRequest::get* methods. Corrected code in
various places accordingly.
2006-12-14 20:28:38 +00:00
Robert Stojnić
66999c01a4 * Enable category names to be written in variants (use single linkbatch for both link and category variants)
* introduce armourMath(), use to put -{ }- around math if needed (not needed for zh, but needed for sr, and probably kk)
2006-12-11 23:33:27 +00:00
Robert Stojnić
dd5e44ea63 Fix bug #7605. For logged-in users use the selected variant(if any) insted the one from user settings. 2006-10-22 01:24:39 +00:00
Tim Starling
6ef631c5bc Pass by reference, allow AutoAuthenticate to create a new object and assign it to $user. 2006-10-17 10:38:56 +00:00
Tim Starling
dd785270d7 Converted User to use lazy initialisation. This is to avoid unstub loops, and also for performance. Interfaces and semantics have been largely preserved, except for a minor change involving setLoaded(). 2006-10-14 06:58:19 +00:00
Brion Vibber
c41d4fb0ee * (bug 6929) Restore AutoAuthenticate hook 2006-10-10 21:20:10 +00:00
Daniel Kinzler
8fe37df566 StubObject.php: use getVal() instead of getText() to check for uselang parameter 2006-08-22 12:16:14 +00:00
Domas Mituzas
ca6321d4c6 erghhhh 2006-08-02 18:48:30 +00:00
Domas Mituzas
63307ad99c Move SO::_getCaller() to Profiler::getCaller() 2006-08-02 18:34:01 +00:00
Tim Starling
3e7155b3db $wgLanguageCode no longer indicates the user language, for that use $wgLang->getCode(). This is necessary because determination of the language code is deferred. 2006-07-26 08:26:51 +00:00
Tim Starling
43b2fb56b6 Merged localisation-work branch:
* Made lines from initialiseMessages() appear as list items during installation
* Moved the bulk of the localisation data from the Language*.php files to the Messages*.php files. Deleted most of the Languages*.php files.
* Introduced "stub global" framework to provide deferred initialisation of core modules. 
* Removed placeholder values for $wgTitle and $wgArticle, these variables will now be null during the initialisation process, until they are set by index.php or another entry point.
* Added DBA cache type, for BDB-style caches. 
* Removed custom date format functions, replacing them with a format string in the style of PHP's date(). Used string identifiers instead of integer identifiers, in both the language files and user preferences. Migration should be transparent in most cases.
* Simplified the initialisation API for LoadBalancer objects.
* Removed the broken altencoding feature.
* Moved default user options and toggles from Language to User. Language objects are still able to define default preference overrides and extra user toggles, via a slightly different interface.
* Don't include the date option in the parser cache rendering hash unless $wgUseDynamicDates is enabled.
* Merged LanguageUtf8 with Language. Removed LanguageUtf8.php. 
* Removed inclusion of language files from the bottom of Language.php. This is now consistently done from Language::factory(). 
* Add the name of the executing maintenance script to the debug log. Start the profiler during maintenance scripts.
* Added "serialized" directory, for storing precompiled data in serialized form.
2006-07-26 07:15:39 +00:00