lhc/web/wiklou.git
14 years agoReversion/followup to r59300 as per Tims comment
Sam Reed [Tue, 12 Jan 2010 07:24:25 +0000 (07:24 +0000)]
Reversion/followup to r59300 as per Tims comment

14 years agoFurther logic cleanup on getPreferredVariant & memoization of functions where possible.
Mark A. Hershberger [Tue, 12 Jan 2010 05:31:46 +0000 (05:31 +0000)]
Further logic cleanup on getPreferredVariant & memoization of functions where possible.

14 years agoReverted r59548 (reopens bug 21086).
Tim Starling [Tue, 12 Jan 2010 05:20:31 +0000 (05:20 +0000)]
Reverted r59548 (reopens bug 21086).

wfWikiID() is used as a way to identify and connect to a given database in LoadBalancer and various extensions, that's why it must contain the database name and table prefix. Perhaps its use as a public identifier should be optional, but in that case the public identifier needs to be customised, not the return value of wfWikiID().

14 years agofollow up r60924 Make sure the test has a unique, descriptive name.
Mark A. Hershberger [Tue, 12 Jan 2010 00:14:08 +0000 (00:14 +0000)]
follow up r60924 Make sure the test has a unique, descriptive name.

14 years agoLocalisation updates for core messages from translatewiki.net
Siebrand Mazeland [Mon, 11 Jan 2010 23:05:02 +0000 (23:05 +0000)]
Localisation updates for core messages from translatewiki.net
* add Capiznon (cps)

14 years agoRefactored duplication into revisionDeleteLink()
Aaron Schulz [Mon, 11 Jan 2010 21:35:31 +0000 (21:35 +0000)]
Refactored duplication into revisionDeleteLink()

14 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Mon, 11 Jan 2010 19:00:59 +0000 (19:00 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-01-11 18:30 UTC)

14 years agostylize.php on API code
Aryeh Gregor [Mon, 11 Jan 2010 15:55:52 +0000 (15:55 +0000)]
stylize.php on API code

"I wouldn't object to stylizing the API code to bring it in line with
the rest of MW on principle, but I'm not gonna bother myself." --Roan
<http://www.mediawiki.org/wiki/Special:Code/MediaWiki/60657#c5108>

If you're seeing this commit in blames, tell your blame tool to ignore
whitespace, e.g., git blame -w or svn blame -x -w.

14 years agoFollow-up r60927: Change message names in maintenance/language/messageTypes.inc too
Raimond Spekking [Mon, 11 Jan 2010 12:56:14 +0000 (12:56 +0000)]
Follow-up r60927: Change message names in maintenance/language/messageTypes.inc too

14 years agoFollowup r58980: Moved logic for addsection-editintro/preload from SkinTemplate to...
Bryan Tong Minh [Mon, 11 Jan 2010 11:47:50 +0000 (11:47 +0000)]
Followup r58980: Moved logic for addsection-editintro/preload from SkinTemplate to EditPage.

Message names changed from talk-addsection-* to addsection-*.
Messages now contain the preload/editnotice themselves instead of the title of the page that contains them.

14 years agoUpdate the Chinese conversion tables.
Philip Tzou [Mon, 11 Jan 2010 08:01:56 +0000 (08:01 +0000)]
Update the Chinese conversion tables.

14 years agoAdd test for bug where variant was persisting when it shouldn't
Mark A. Hershberger [Mon, 11 Jan 2010 06:17:50 +0000 (06:17 +0000)]
Add test for bug where variant was persisting when it shouldn't

14 years agocleaned up getPreferredVariant() (MUCH easier to follow the logic), found a bug or two
Mark A. Hershberger [Mon, 11 Jan 2010 05:53:39 +0000 (05:53 +0000)]
cleaned up getPreferredVariant() (MUCH easier to follow the logic), found a bug or two

14 years agotrailing whitespace fixup before I fix(??) a bug.
Mark A. Hershberger [Mon, 11 Jan 2010 04:23:41 +0000 (04:23 +0000)]
trailing whitespace fixup before I fix(??) a bug.

14 years agoI was wrong on the last item: no bug. But the two above do demonstrate a bug.
Mark A. Hershberger [Mon, 11 Jan 2010 04:15:16 +0000 (04:15 +0000)]
I was wrong on the last item: no bug.  But the two above do demonstrate a bug.

14 years agofollow up r60916 - Use getType instead of instanceOf as suggested by Simetrical
Mark A. Hershberger [Mon, 11 Jan 2010 04:00:03 +0000 (04:00 +0000)]
follow up r60916 - Use getType instead of instanceOf as suggested by Simetrical

14 years agoMake tests work, note skipped tests, update autoloader for FakeMemcachedClient, take...
Mark A. Hershberger [Mon, 11 Jan 2010 03:47:04 +0000 (03:47 +0000)]
Make tests work, note skipped tests, update autoloader for FakeMemcachedClient, take care of strange variable scoping issues in autoloaded Namespace.php.

14 years agofix up db tests so they work withs DBs besides just MySQL. Make tests run under...
Mark A. Hershberger [Mon, 11 Jan 2010 02:49:02 +0000 (02:49 +0000)]
fix up db tests so they work withs DBs besides just MySQL.  Make tests run under E_STRICT.

14 years agoRemove code commented out by r58597
Tim Starling [Mon, 11 Jan 2010 00:55:21 +0000 (00:55 +0000)]
Remove code commented out by r58597

14 years agoUse string interpolation, not .
Aryeh Gregor [Sun, 10 Jan 2010 23:24:47 +0000 (23:24 +0000)]
Use string interpolation, not .

Prompted by r60731, although that didn't actually add the concatenation
(which should have had more spaces, too).

14 years ago* Added new doxygen group "ExternalUser"
Alexandre Emsenhuber [Sun, 10 Jan 2010 21:39:47 +0000 (21:39 +0000)]
* Added new doxygen group "ExternalUser"
* Fixed some doxygen warnings

14 years agoLocalization update for he, and whitespace fix in en.
Rotem Liss [Sun, 10 Jan 2010 20:36:07 +0000 (20:36 +0000)]
Localization update for he, and whitespace fix in en.

14 years agocleanup to wikibits.js with the help of JSLint. added missing braces, some spacing...
Jack Phoenix [Sun, 10 Jan 2010 20:23:48 +0000 (20:23 +0000)]
cleanup to wikibits.js with the help of JSLint. added missing braces, some spacing, changed double quotes to single in some places, added missing semicolons and fixed some comparisons

14 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Sun, 10 Jan 2010 19:10:58 +0000 (19:10 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-01-10 18:30 UTC)

14 years ago__FUNCTION__ -> __METHOD__
Alexandre Emsenhuber [Sun, 10 Jan 2010 18:36:26 +0000 (18:36 +0000)]
__FUNCTION__ -> __METHOD__

14 years agoWorkaround for SQLite's inability to perform multi-row replacements
Max Semenik [Sun, 10 Jan 2010 17:27:46 +0000 (17:27 +0000)]
Workaround for SQLite's inability to perform multi-row replacements

14 years ago(bug 22053) Update date formatting for Tatar (tt-latn and tt-cyrl)
Siebrand Mazeland [Sun, 10 Jan 2010 13:43:00 +0000 (13:43 +0000)]
(bug 22053) Update date formatting for Tatar (tt-latn and tt-cyrl)

14 years ago* Send new password e-mail in users preference language
Raimond Spekking [Sun, 10 Jan 2010 10:40:12 +0000 (10:40 +0000)]
* Send new password e-mail in users preference language

14 years agoAdd $wgExtensionAssetsPath, to decouple js/css/etc serving from $wgScriptPath
Domas Mituzas [Sun, 10 Jan 2010 10:19:25 +0000 (10:19 +0000)]
Add $wgExtensionAssetsPath, to decouple js/css/etc serving from $wgScriptPath

14 years agoCleared SearchSqlite from some mysqlisms from r58322
Max Semenik [Sun, 10 Jan 2010 10:02:55 +0000 (10:02 +0000)]
Cleared SearchSqlite from some mysqlisms from r58322

14 years agoLocalisation updates Cantonese, Chinese and Literary Chinese
Shinjiman [Sun, 10 Jan 2010 00:32:50 +0000 (00:32 +0000)]
Localisation updates Cantonese, Chinese and Literary Chinese

14 years ago* Document a bit
Alexandre Emsenhuber [Sat, 9 Jan 2010 21:59:40 +0000 (21:59 +0000)]
* Document a bit
* Add new doxygen group "Feed"
* Fix some doxygen warnings

14 years agoUpdate for r60876
Aaron Schulz [Sat, 9 Jan 2010 20:19:56 +0000 (20:19 +0000)]
Update for r60876

14 years agobug 21411 'Add a new message rev-suppressed-no-diff for diff without entry in public...
Aaron Schulz [Sat, 9 Jan 2010 20:18:41 +0000 (20:18 +0000)]
bug 21411 'Add a new message rev-suppressed-no-diff for diff without entry in public log'

14 years agoFix use of an array for no apparent reason.
Bryan Tong Minh [Sat, 9 Jan 2010 20:17:54 +0000 (20:17 +0000)]
Fix use of an array for no apparent reason.
SpecialUpload::getExistsWarning now no longer encapsulates its results in <li>
Further minor cleanup

14 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Sat, 9 Jan 2010 19:27:24 +0000 (19:27 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-01-09 19:00 UTC)

14 years agoRevert 60864: "Use wfClientAcceptsGzip() in wfGzipHandler." Causes PHP Notice: Undef...
Siebrand Mazeland [Sat, 9 Jan 2010 19:14:43 +0000 (19:14 +0000)]
Revert 60864: "Use wfClientAcceptsGzip() in wfGzipHandler." Causes PHP Notice:  Undefined index:  HTTP_ACCEPT_ENCODING in GlobalFunctions.php on line 1175

14 years ago(bug 22034) Use wfClientAcceptsGzip() in wfGzipHandler. Patch by Platonides.
Siebrand Mazeland [Sat, 9 Jan 2010 18:10:11 +0000 (18:10 +0000)]
(bug 22034) Use wfClientAcceptsGzip() in wfGzipHandler. Patch by Platonides.

wfGzipHandler should use wfClientAcceptsGzip() instead of reimplementing it. Patch does this and removes the $wgUseGzip check on wfClientAcceptsGzip() since HTMLFileCache (the only wfClientAcceptsGzip() user) already checked that before calling it. This way $wgUseGzip stays applying only for file cache, and $wgDisableOutputCompression for output handler.

14 years ago* (bug 9794) User rights log entries for foreign user now links to the foreign user...
Alexandre Emsenhuber [Sat, 9 Jan 2010 15:23:27 +0000 (15:23 +0000)]
* (bug 9794) User rights log entries for foreign user now links to the foreign user's page if possible

14 years agoSeverely refactored the SearchResultSet descendants system, consolidating most od...
Max Semenik [Sat, 9 Jan 2010 14:30:55 +0000 (14:30 +0000)]
Severely refactored the SearchResultSet descendants system, consolidating most od the code into one class. Ping r58322.

14 years ago* removed jquery.ui stuff from "core" moved into the base_sets of UsabilityInitiative
Michael Dale [Fri, 8 Jan 2010 23:13:51 +0000 (23:13 +0000)]
* removed jquery.ui stuff from "core" moved into the base_sets of UsabilityInitiative
* "core scripts" of mwEmbed do not include jquery ui
* So jquery.ui should be stored in a local extension folder until we merge in "js2" ( which includes jquery.ui )

* sill need to commit updated min files *

14 years ago* renamed mw.addOnloadHook to mw.ready
Michael Dale [Fri, 8 Jan 2010 22:46:11 +0000 (22:46 +0000)]
* renamed mw.addOnloadHook to mw.ready
** more consistent with mwEmbed 'extending' jquery conventions

14 years ago* Document a bit
Alexandre Emsenhuber [Fri, 8 Jan 2010 21:35:25 +0000 (21:35 +0000)]
* Document a bit
* Fix some doxygen warnings

14 years ago* (bug 22051) Returing false in SpecialContributionsBeforeMainOutput hook now stops...
Alexandre Emsenhuber [Fri, 8 Jan 2010 21:00:39 +0000 (21:00 +0000)]
* (bug 22051) Returing false in SpecialContributionsBeforeMainOutput hook now stops normal output
And while I was at it:
* SpecialContributionsBeforeMainOutput was broken (throwing call_user_func_array() expects parameter 2 to be an array, NULL/integer given) since $id was not passed in array()
* Removed some trailing whitespaces in RELEASE-NOTES

14 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Fri, 8 Jan 2010 16:34:34 +0000 (16:34 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-01-08 16:00 UTC)

14 years agofollow-up 60833
Mark A. Hershberger [Fri, 8 Jan 2010 08:55:00 +0000 (08:55 +0000)]
follow-up 60833
because I'm an idiot.

14 years agofollow up r60829
Mark A. Hershberger [Fri, 8 Jan 2010 08:49:01 +0000 (08:49 +0000)]
follow up r60829
Gah — really need to get E_STRICT working in my test environment.

14 years agofollow up r60763
Mark A. Hershberger [Fri, 8 Jan 2010 08:22:19 +0000 (08:22 +0000)]
follow up r60763
Recover the -{T| }- rule.  Add the ability to test for it to the parserTests and add a test for it.  Add a couple of disabled tests that I think demonstrate bugs in the LanguageTranslator

14 years agoEscaped Oracle Text reserved words
Jure Kajzer [Fri, 8 Jan 2010 07:52:51 +0000 (07:52 +0000)]
Escaped Oracle Text reserved words

14 years agoPrevented delete call in replace function if conditions empty. Removed some old comme...
Jure Kajzer [Fri, 8 Jan 2010 07:23:43 +0000 (07:23 +0000)]
Prevented delete call in replace function if conditions empty. Removed some old commented code.

14 years agoFollow up r60798 & r60785
Mark A. Hershberger [Fri, 8 Jan 2010 03:34:04 +0000 (03:34 +0000)]
Follow up r60798 & r60785
Re-introduce specialpageattributes and add an explanation in the comments why it should be different than userlangattributes.  Also add comments explaining exactly what is going with the special attributes and why.  Clean up warnings.

14 years agoBlacklist PHP 5.3.1 due to __call() regression.
Tim Starling [Fri, 8 Jan 2010 02:08:28 +0000 (02:08 +0000)]
Blacklist PHP 5.3.1 due to __call() regression.

14 years ago* Fixed the issue of all date functions throwing E_STRICT on their first call due...
Tim Starling [Fri, 8 Jan 2010 01:48:53 +0000 (01:48 +0000)]
* Fixed the issue of all date functions throwing E_STRICT on their first call due to the default timezone not being set. Used the same approach as phpMyAdmin: utilise PHP's server timezone detection code (which unconditionally throws E_STRICT) with warnings disabled, and store the result with date_default_timezone_set() to avoid future notices. Avoids the need for warning suppression to be dotted all over the codebase, like r58559.
* (bug 2658) Don't use the TZ environment variable at all. Setting it throws an error in some restricted setups. But using it in PHP 5.1+ doesn't make sense anyway, since you'll get the E_STRICT notice described above whenever PHP tries to access it, because Derick hates environment variables. Use date_default_timezone_set().
* If $wgLocaltimezone is null, use the server's timezone as the default for signatures. This was always the behaviour documented in DefaultSettings.php but has not been the actual behaviour for some time: instead, UTC was used by default.

14 years ago$fname -> __METHOD__
Chad Horohoe [Fri, 8 Jan 2010 01:39:14 +0000 (01:39 +0000)]
$fname -> __METHOD__

14 years agoFor r60757: implement Database::getType() explicitly in each subclass, to make Roan...
Tim Starling [Fri, 8 Jan 2010 00:31:24 +0000 (00:31 +0000)]
For r60757: implement Database::getType() explicitly in each subclass, to make Roan happy.

14 years agoReverted r58313, pointless, does not fix the bug.
Tim Starling [Thu, 7 Jan 2010 23:36:08 +0000 (23:36 +0000)]
Reverted r58313, pointless, does not fix the bug.

14 years ago* fix for bug 20512 ( in both trunk and js2-work branch )
Michael Dale [Thu, 7 Jan 2010 21:57:33 +0000 (21:57 +0000)]
* fix for bug 20512 ( in both trunk and js2-work branch )
** Add 'proxy' option to Http $opts array
** Setting 'proxy' option to "false" will bypass the proxy
* Updated MWSearch_body.php to use new "false" option

14 years agoRemoved a couple of ancient @bug's
Max Semenik [Thu, 7 Jan 2010 21:54:39 +0000 (21:54 +0000)]
Removed a couple of ancient @bug's

14 years ago* Added some basic doc for the DoubleRedirectJob class
Alexandre Emsenhuber [Thu, 7 Jan 2010 21:44:06 +0000 (21:44 +0000)]
* Added some basic doc for the DoubleRedirectJob class
* Fixed some doxygen warnings

14 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Thu, 7 Jan 2010 19:37:48 +0000 (19:37 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-01-07 19:00 UTC)

14 years agoIn r60786 mah added 'specialpageattributes' to the skin, only in the case of the...
Trevor Parscal [Thu, 7 Jan 2010 18:59:07 +0000 (18:59 +0000)]
In r60786 mah added 'specialpageattributes' to the skin, only in the case of the title being a special page, and filled it with the same information as 'userlangattributes'. Then added some uses of 'specialpageattributes' to all three SkinTemplate based skins, which were using that data on all pages - resulting in an error. This corrects this problem.

14 years agoFix the undefined variable and undefined property notices caused by r60763.
Philip Tzou [Thu, 7 Jan 2010 18:02:33 +0000 (18:02 +0000)]
Fix the undefined variable and undefined property notices caused by r60763.

14 years agofollow-up r60764. compatible fix.
Philip Tzou [Thu, 7 Jan 2010 17:48:52 +0000 (17:48 +0000)]
follow-up r60764. compatible fix.

14 years agoMake LTR wgLang do the right thing on RTL wgContLang wikis. See bug 6100 and dupes...
Mark A. Hershberger [Thu, 7 Jan 2010 09:32:09 +0000 (09:32 +0000)]
Make LTR wgLang do the right thing on RTL wgContLang wikis.  See bug 6100 and dupes like bug 4047, bug 19228, bug 9137, etc.

14 years agofollow-up r60765
Mark A. Hershberger [Thu, 7 Jan 2010 05:02:35 +0000 (05:02 +0000)]
follow-up r60765

14 years agofollow-up r60763 and r58275. Parser tests now pass.
Mark A. Hershberger [Thu, 7 Jan 2010 05:00:19 +0000 (05:00 +0000)]
follow-up r60763 and r58275.  Parser tests now pass.

14 years agofollow-up r60763 and r58275. Parser tests now pass.
Mark A. Hershberger [Thu, 7 Jan 2010 04:53:15 +0000 (04:53 +0000)]
follow-up r60763 and r58275.  Parser tests now pass.

14 years agofollow-up r60743.
Philip Tzou [Thu, 7 Jan 2010 04:50:32 +0000 (04:50 +0000)]
follow-up r60743.
1. Changed the conditions, not only for LuceneSearch, but also more commonly to others.
2. Reduced code duplication.

14 years agoRefactor LanguageConversion so that title conversion isn't so flimsy. Pull MagicWord...
Mark A. Hershberger [Thu, 7 Jan 2010 04:13:14 +0000 (04:13 +0000)]
Refactor LanguageConversion so that title conversion isn't so flimsy. Pull MagicWord detection into Parser->doDoubleUnderscore() && remove ParserConvert.

14 years agoFollow up r60759: forgot to commit hook change
Aaron Schulz [Thu, 7 Jan 2010 01:21:02 +0000 (01:21 +0000)]
Follow up r60759: forgot to commit hook change

14 years agoAdd a Database::getType() function so that we can get rid of $wgDBtype in favour...
Tim Starling [Thu, 7 Jan 2010 00:22:18 +0000 (00:22 +0000)]
Add a Database::getType() function so that we can get rid of $wgDBtype in favour of OOP goodness.

14 years agoFixed CSS error
Aaron Schulz [Wed, 6 Jan 2010 23:22:55 +0000 (23:22 +0000)]
Fixed CSS error

14 years ago"apprfiltercascade - Filter protections based on cascadingness (ignored when apprtype...
Sam Reed [Wed, 6 Jan 2010 23:21:46 +0000 (23:21 +0000)]
"apprfiltercascade - Filter protections based on cascadingness (ignored when apprtype isn't set)
                   One value: cascading, noncascading, all"

So it can't be both. Change 2nd if to else if

14 years agoAdd comment about unused parameters to constructor too + coding style
Niklas Laxström [Wed, 6 Jan 2010 22:19:48 +0000 (22:19 +0000)]
Add comment about unused parameters to constructor too + coding style

14 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Wed, 6 Jan 2010 21:52:51 +0000 (21:52 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-01-06 19:00 UTC)

14 years agoMinor followup to r60744, fix for comment 2
Sam Reed [Wed, 6 Jan 2010 21:27:25 +0000 (21:27 +0000)]
Minor followup to r60744, fix for comment 2

14 years agoChange or to ||.
Philip Tzou [Wed, 6 Jan 2010 20:17:01 +0000 (20:17 +0000)]
Change or to ||.

14 years agoAttempt at normalistion of comparison styles - empty string on left and right hand...
Sam Reed [Wed, 6 Jan 2010 19:59:42 +0000 (19:59 +0000)]
Attempt at normalistion of comparison styles - empty string on left and right hand side normalised to it being on the rhs

Before this change, there were (? being regex 0 or 1)

"" ===? 1
'' ===? 24
"" !==? 8
'' !==? 32

== "" 14
== '' 344
!= "" 9
!== "" 4
!= '' 151
!== '' 85

Rhs was the much more common, and the preferred style by many developers.. (Was a similar discussion in #mediawiki recently.. After that lolbugreport i think)

Where there is a string (non empty) on the lhs, and variable/method call on the rhs still need normalising

14 years ago1. Add conditions to stripForSearch for LuceneSearch / MWSearch.
Philip Tzou [Wed, 6 Jan 2010 19:51:29 +0000 (19:51 +0000)]
1. Add conditions to stripForSearch for LuceneSearch / MWSearch.
2. Add double-width roman characters conversion support to zh, gan, and yue.

14 years agoFollowup to r60271: pass the delimeter to preg_quote() per CR comment
Roan Kattouw [Wed, 6 Jan 2010 19:24:26 +0000 (19:24 +0000)]
Followup to r60271: pass the delimeter to preg_quote() per CR comment

14 years agoFollow-up to r60721. Broken maintanance/language/rebuildLanguage.php and probably...
Siebrand Mazeland [Wed, 6 Jan 2010 18:59:32 +0000 (18:59 +0000)]
Follow-up to r60721. Broken maintanance/language/rebuildLanguage.php and probably more. Fix by Nikerabbit.

14 years agoFixed insane selectField() usage from r58322
Max Semenik [Wed, 6 Jan 2010 18:52:19 +0000 (18:52 +0000)]
Fixed insane selectField() usage from r58322

14 years agoClean-up for r60598: introduced a global setting for non-existant languages.
Max Semenik [Wed, 6 Jan 2010 16:55:01 +0000 (16:55 +0000)]
Clean-up for r60598: introduced a global setting for non-existant languages.
Needs further integration into Language class, probably even getLanguageNames(), but I don't want
to mess with preferences (which also display bogus language codes, btw) or LocalisationCache yet.

14 years agoFixed variable name typo from r60665. (problems while sending file in previous attemp...
Jure Kajzer [Wed, 6 Jan 2010 14:00:17 +0000 (14:00 +0000)]
Fixed variable name typo from r60665. (problems while sending file in previous attempt r60730)

14 years agoFixed variable name typo from r60665.
Jure Kajzer [Wed, 6 Jan 2010 13:52:58 +0000 (13:52 +0000)]
Fixed variable name typo from r60665.

14 years ago* (bug 20233) ApiLogin::execute() doesn't handle LoginForm :: RESET_PASS
Sam Reed [Wed, 6 Jan 2010 13:45:06 +0000 (13:45 +0000)]
* (bug 20233) ApiLogin::execute() doesn't handle LoginForm :: RESET_PASS

As per Bryans comment, and as per SpecialUserlogin - "The e-mailed temporary password should not be used for actual logins;"

Therefore treat RESET_PASS as WRONG_PASS

14 years agoFollowup to r60697: add a comment to js2stopgap.js pointing out that we patched jQuer...
Roan Kattouw [Wed, 6 Jan 2010 11:49:03 +0000 (11:49 +0000)]
Followup to r60697: add a comment to js2stopgap.js pointing out that we patched jQuery there, and raise $wgStyleVersion

14 years agoPer CR on r58358, refactor obtaining the language code from a filename into Language...
Roan Kattouw [Wed, 6 Jan 2010 10:20:38 +0000 (10:20 +0000)]
Per CR on r58358, refactor obtaining the language code from a filename into Language::getCodeFromFileName() and use it in Language::getLanguageNames() and LocalisationUpdate

14 years agoLocalization update for he.
Rotem Liss [Wed, 6 Jan 2010 09:56:06 +0000 (09:56 +0000)]
Localization update for he.

14 years agoMade Special:Allmessages many times faster for a typical installation, by taking...
Tim Starling [Wed, 6 Jan 2010 05:48:05 +0000 (05:48 +0000)]
Made Special:Allmessages many times faster for a typical installation, by taking advantage of the message name list available from LocalisationCache to avoid unnecessary message loads. Now it only loads messages that are on the current page being displayed.

14 years ago(bug 20837) Don't give a PHP notice when getSubitem() calls loadSubitem() which cause...
Tim Starling [Wed, 6 Jan 2010 04:08:59 +0000 (04:08 +0000)]
(bug 20837) Don't give a PHP notice when getSubitem() calls loadSubitem() which causes the whole item to be loaded. In this case there is no negative cache value stored so we need to use isset(). It was handled already for the case where the item was already loaded at function entry, but not for the case where the item is loaded halfway through loadSubitem().

14 years agoDon't count unions of bracketed selects as being write queries
Tim Starling [Wed, 6 Jan 2010 04:05:49 +0000 (04:05 +0000)]
Don't count unions of bracketed selects as being write queries

14 years agoNew tests for LanguageConverter->getPreferredVariant()
Mark A. Hershberger [Wed, 6 Jan 2010 03:50:59 +0000 (03:50 +0000)]
New tests for LanguageConverter->getPreferredVariant()
Refactor getPreferredVariant, new function getHeaderVariant()
New function (FauxRequest::setHeader()) to help with testing.

14 years agoRandom eol whitespace found while treking through files.
Mark A. Hershberger [Wed, 6 Jan 2010 03:42:30 +0000 (03:42 +0000)]
Random eol whitespace found while treking through files.
Removing unused call to $wgContLang->getFormattedNsText() from addNewUserLogEntry()

14 years agoAdd $maxlag parameter to LoadBalancer::getMaxLag() so it'll actually select the right...
Roan Kattouw [Tue, 5 Jan 2010 23:39:16 +0000 (23:39 +0000)]
Add $maxlag parameter to LoadBalancer::getMaxLag() so it'll actually select the right DB when opening new connections. Looks like an ugly temp fix to me but I have no idea how to do it properly offhand.

14 years agotypo, clarification.
Mark A. Hershberger [Tue, 5 Jan 2010 23:19:04 +0000 (23:19 +0000)]
typo, clarification.

14 years agoRemove unused private "filterPage" function from specials/SpecialExport.php
Sam Reed [Tue, 5 Jan 2010 22:53:00 +0000 (22:53 +0000)]
Remove unused private "filterPage" function from specials/SpecialExport.php

Unused and private

Remove extra whitespace line also

14 years agoUsed trick found at: http://www.n8williams.com/devblog/javascript_and_ajax/jquery...
Trevor Parscal [Tue, 5 Jan 2010 22:52:11 +0000 (22:52 +0000)]
Used trick found at: n8williams.com/devblog/javascript_and_ajax/jquery-dialog-error-in-ie7-runtime-error-invalid-argument to fix a jQuery UI bug.

14 years agoFix some doxygen warnings
Alexandre Emsenhuber [Tue, 5 Jan 2010 21:24:23 +0000 (21:24 +0000)]
Fix some doxygen warnings

14 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Tue, 5 Jan 2010 20:31:26 +0000 (20:31 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-01-05 20:00 UTC)