aboutsummaryrefslogtreecommitdiffstats
path: root/includes/StubObject.php
Commit message (Collapse)AuthorAgeFilesLines
...
* * Added UserGetLanguageObject hook to change the language used in $wgLangAlexandre Emsenhuber2011-03-061-0/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/83405
* (bug 27094) fix path traversal vulnerabilityTim Starling2011-02-011-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/81335
* Move wfCreateObject to MWFunction::newObj. This uses the ReflectionClass toX!2011-01-031-1/+1
| | | | | | | | | instantiate a variable-length constructor in php 5.1.3 and up, and falls back to the old, ugly, manual method that was in the old wfCreateObject function. The instances in the core have been replaced. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/79504
* More unused variablesSam Reed2010-11-301-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/77495
* Remove $wgContLanguageCode usage in core.Platonides2010-09-071-5/+5
| | | | | | | | | | | | | sed -i 's/$wgContLanguageCode/$wgLanguageCode/g' These are now the same, always. Per and since r15827. $wgLanguageCode wins due to being the one set by LocalSettings. $wgContLanguageCode definition at includes/Setup.php kept for now. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/72561
* Get rid of StubUser. Constructing a user object isn't quite as intensive as ↵Chad Horohoe2010-08-121-27/+0
| | | | | | | it once was. It actually takes more time using the StubUser (construction + unstub on first call) than just initializing User::newFromSession() from the start. Either way, the real overhead starts when you start calling methods (for the nitpicky, the optimization was only about 20µs. The real gain here was eliminating a StubObject) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/70970
* Fixed some doxygen warningsAlexandre Emsenhuber2010-03-281-13/+13
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/64308
* Fixes for r51204: removed useless $wgVariant and StubUserVariant. In ↵Tim Starling2009-09-021-47/+0
| | | | | | | Skin::makeGlobalVariablesScript(), use $wgContLang->getPreferredVariant() instead, which is the variant used in the relevant server-side code. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/55746
* (bug 20090) BCP 47 issuesNiklas Laxström2009-08-141-0/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/55022
* If an object has already been unstubbed (i.e. we have a copy of the ↵Andrew Garrett2009-08-061-1/+5
| | | | | | | StubObject, which has since been unstubbed but the copy not updated), then return the already-unstubbed object instead of unstubbing it again Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/54524
* * (bug 10837) Introducing the StubUserVariant class to determine the variant ↵Shinjiman2009-05-301-1/+40
| | | | | | | variable instead of using this to overrules the user language preference. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/51204
* Bugfis, making ?uselang=qqq an invalid language code, seePurodha B Blissenbach2009-02-111-1/+1
| | | | | | | https://bugzilla.wikimedia.org/show_bug.cgi?id=17445 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/47138
* Minor tweak in debug output. Makes much more readible (and per most other ↵Chad Horohoe2008-11-041-1/+1
| | | | | | | debug statements that mention the calling method), since -> gets turned to -> in the debug comments. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/43184
* Fix regreesion in r37662, disabled conversion when interface language ↵Robert Stojnić2008-07-151-1/+1
| | | | | | | variant is different that main wiki language variant. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/37703
* * (bug 10837) Language variants overrides languages other than the variant ↵Robert Stojnić2008-07-141-1/+1
| | | | | | | | | main language. Explicitely forbid conversion when interface language is different than the main content language. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/37662
* DB schema change.Tim Starling2008-05-141-1/+0
| | | | | | | | | | | | | | In CentralAuth (and related changes interface changes in Newuserlog and the core): * Moved the AutoAuthenticate hook to User::loadFromSession(), to defer processing for longer and avoid unstub loops * Undeprecated User::setID() * Added partial support for new user log registration and IP-based blocking of automatically created accounts. Still needs the same support implemented in Special:Userlogin. * Fixed all inappropriate uses of the term "DB name", changing them to "wiki" or "wiki ID". Renamed the relevant database fields. * Refactored central session and cache support Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/34772
* * remove end of line whitespaceSiebrand Mazeland2008-04-141-11/+11
| | | | | | | | * remove empty lines at end of file * remove "?>" where still present Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/33276
* Typo, thanks to nikerabbit for reporting it :)Alexandre Emsenhuber2008-04-081-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/32978
* Document a bit.Alexandre Emsenhuber2008-04-081-7/+67
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/32975
* Revert r31022 -- breaks commons upload hack.Tim Starling2008-02-221-2/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/31183
* * (bug 13010) Invalid language codes should fallback to default wiki ↵Victor Vasiliev2008-02-171-1/+2
| | | | | | | | | language not English Patch by Alexandre Emsenhuber Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/31022
* * Reverting r28802 until I can figure what is going onNiklas Laxström2007-12-241-10/+7
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/28824
* * Use variant only if interface language === content languageNiklas Laxström2007-12-231-8/+11
| | | | | | | * (bug 10837) Interface "variant" overruling "language" preference Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/28802
* Remove ?>'s from files. They're pointless, and just asking for people to ↵Aryeh Gregor2007-06-291-1/+1
| | | | | | | mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/23531
* Fix language code validation regex to allow be-x-old.Tim Starling2007-04-021-1/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20947
* Fix r19896 for bug 8944 (pressing 'u' in vim before committing is a bad idea).Antoine Musso2007-02-121-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19897
* Fix #8944: The deprecated is_a() function is used in StubObjects.phpAntoine Musso2007-02-121-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19896
* User::getOption now accept a default value to override default user valuesAntoine Musso2006-12-141-3/+1
| | | | | | | | | this makes it consistent with WebRequest::get* methods. Corrected code in various places accordingly. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/18334
* * Enable category names to be written in variants (use single linkbatch for ↵Robert Stojnić2006-12-111-1/+1
| | | | | | | | | 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) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/18272
* Fix bug #7605. For logged-in users use the selected variant(if any) insted ↵Robert Stojnić2006-10-221-0/+9
| | | | | | | the one from user settings. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/17173
* Pass by reference, allow AutoAuthenticate to create a new object and assign ↵Tim Starling2006-10-171-1/+1
| | | | | | | it to $user. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/17069
* Converted User to use lazy initialisation. This is to avoid unstub loops, ↵Tim Starling2006-10-141-2/+1
| | | | | | | and also for performance. Interfaces and semantics have been largely preserved, except for a minor change involving setLoaded(). Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/17004
* * (bug 6929) Restore AutoAuthenticate hookBrion Vibber2006-10-101-0/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/16911
* StubObject.php: use getVal() instead of getText() to check for uselang parameterDaniel Kinzler2006-08-221-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/16161
* erghhhhDomas Mituzas2006-08-021-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/15922
* Move SO::_getCaller() to Profiler::getCaller()Domas Mituzas2006-08-021-15/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/15920
* $wgLanguageCode no longer indicates the user language, for that use ↵Tim Starling2006-07-261-10/+9
| | | | | | | $wgLang->getCode(). This is necessary because determination of the language code is deferred. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/15827
* Merged localisation-work branch:Tim Starling2006-07-261-0/+144
* 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. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/15823