lhc/web/wiklou.git
11 years ago(bug 45017) Check whether this request is a POST before allowing a query module to...
Alex Monk [Fri, 15 Feb 2013 20:54:00 +0000 (20:54 +0000)]
(bug 45017) Check whether this request is a POST before allowing a query module to run, if required by the query module

Change-Id: Ie08fd3a887390e2ead6f6d6fe1e16fa8f8617a2c

11 years agoUpdate code formatting
Siebrand Mazeland [Wed, 13 Feb 2013 18:38:32 +0000 (19:38 +0100)]
Update code formatting

Change-Id: I8741b5b979e55f38a666961a16c387586a92410e

11 years agoUpdate formatting
Siebrand Mazeland [Thu, 14 Feb 2013 13:10:38 +0000 (14:10 +0100)]
Update formatting

4 of n.

Change-Id: I23e2409ce9eff14c3434154d236de83c93a92440

11 years agoFix parentheses
Siebrand Mazeland [Thu, 14 Feb 2013 13:08:51 +0000 (14:08 +0100)]
Fix parentheses

Change-Id: I6e7d99796635ed8f4ec462ae8661069b8518e5c5

11 years agoUpdate formatting
Siebrand Mazeland [Thu, 14 Feb 2013 11:56:23 +0000 (12:56 +0100)]
Update formatting

3 of n.

Change-Id: I62ad009018c54da6cf081c334e44eb98a3c72695

11 years agoUpdate formatting
Siebrand Mazeland [Thu, 14 Feb 2013 11:36:35 +0000 (12:36 +0100)]
Update formatting

2 of n.

Change-Id: I5406673e99ed53e4e330ed47f022a17177544daa

11 years agoUpdate formatting
Siebrand Mazeland [Thu, 14 Feb 2013 11:22:13 +0000 (12:22 +0100)]
Update formatting

1 of n.

Change-Id: I852729f08bbb0c5e39c2db44362ccdc7f59dcc08

11 years agoMerge "InfoAction: Heading ID should not include # character."
IAlex [Thu, 14 Feb 2013 10:18:42 +0000 (10:18 +0000)]
Merge "InfoAction: Heading ID should not include # character."

11 years agoInfoAction: Heading ID should not include # character.
Timo Tijhof [Thu, 14 Feb 2013 09:55:36 +0000 (10:55 +0100)]
InfoAction: Heading ID should not include # character.

It was using Parser::guessSectionNameFromWikiText, which expects
a string of wikitext (e.g. "== Foo ==") and extracts the heading
text, and from that it generates an ID, and from that it
generates an anchor link.

The extraction and anchor link are wrong and caused the output
to be <h2 id="#Foo"> instead of <h2 id="Foo">.

Follows up I702f2f13.

Bug: 44989
Change-Id: I81f67ae1ac86ed709c69f1bced970b2cbb5138db

11 years ago(bug 44862) Fixed waitForSlave.php constructor.
Tyler Anthony Romeo [Mon, 11 Feb 2013 03:19:35 +0000 (22:19 -0500)]
(bug 44862) Fixed waitForSlave.php constructor.

The Maintenance constructor sets up $IP, so all
maintenance scripts must call the parent constructor.
This fixes waitForSlave.php, which used to not do that.

Change-Id: I7a2a50845805894d87bcae9de9289cae10f1f31f

11 years agoUpdate plural rules from CLDR, and correct Armenian plural rules
Santhosh Thottingal [Thu, 14 Feb 2013 05:49:55 +0000 (11:19 +0530)]
Update plural rules from CLDR, and correct Armenian plural rules

* Upgrade to revision 8007, Contains minor change - Armenian(hy) is added
* Remove MW custom plural logic from LanguageHy.php
* Add qunit test case
* Correct phpunit testcase

Change-Id: If78436fa1597e6f3b7f050c5eede4521018904c0

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Wed, 13 Feb 2013 21:14:10 +0000 (21:14 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "(bug 43211) Remove unneeded noprint classes after CSS change."
jenkins-bot [Wed, 13 Feb 2013 20:56:46 +0000 (20:56 +0000)]
Merge "(bug 43211) Remove unneeded noprint classes after CSS change."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 13 Feb 2013 20:06:22 +0000 (20:06 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ib48503b82580090a87d4cb0b91c342eed971ea15

11 years agoTreat a null result of Job::run() like "true".
Aaron Schulz [Wed, 13 Feb 2013 18:56:22 +0000 (10:56 -0800)]
Treat a null result of Job::run() like "true".

Change-Id: Ie5b725b9d8aad9d6b1869242e82b13306b61478f

11 years agoStart yelling if a job's run() does not return bool
Siebrand Mazeland [Wed, 13 Feb 2013 18:49:44 +0000 (19:49 +0100)]
Start yelling if a job's run() does not return bool

Change-Id: Ia31be9cc5bac1427225c993911a1f77e8654f778

11 years agoMerge "(bug 44775) Don't pre-fill username when creating."
CSteipp [Wed, 13 Feb 2013 18:28:47 +0000 (18:28 +0000)]
Merge "(bug 44775) Don't pre-fill username when creating."

11 years agoMerge "Set $wgUseTidy = false on TextContentTest"
jenkins-bot [Wed, 13 Feb 2013 11:48:27 +0000 (11:48 +0000)]
Merge "Set $wgUseTidy = false on TextContentTest"

11 years agoMerge "phpcs: Pass DefaultSettings.php"
jenkins-bot [Wed, 13 Feb 2013 08:35:59 +0000 (08:35 +0000)]
Merge "phpcs: Pass DefaultSettings.php"

11 years agophpcs: Pass DefaultSettings.php
Timo Tijhof [Fri, 8 Feb 2013 10:28:08 +0000 (02:28 -0800)]
phpcs: Pass DefaultSettings.php

See:
 mediawiki/tools/codesniffer.git:/MediaWiki/rules.xml

Also fixed typo '=>' in comment that should be '='.

Change-Id: Icf2579deda0c77a6794a5c40a7200fcc07fb9dab

11 years agoMerge "Revert "phpcs: Convert var to public in SpecialUserlogin.php""
Krinkle [Wed, 13 Feb 2013 06:22:54 +0000 (06:22 +0000)]
Merge "Revert "phpcs: Convert var to public in SpecialUserlogin.php""

11 years agoRevert "phpcs: Convert var to public in SpecialUserlogin.php"
Krinkle [Wed, 13 Feb 2013 06:19:24 +0000 (06:19 +0000)]
Revert "phpcs: Convert var to public in SpecialUserlogin.php"

This reverts commit 343382e4b783d528d7b1a3153681463c4c6a4597

Change-Id: I5609ab996a178d58a532d6a0bfc3d952d0629c1c

11 years agoMerge "$.suggestions: make it possible to re-show suggestions"
jenkins-bot [Wed, 13 Feb 2013 05:58:30 +0000 (05:58 +0000)]
Merge "$.suggestions: make it possible to re-show suggestions"

11 years agoSet $wgUseTidy = false on TextContentTest
Platonides [Tue, 12 Feb 2013 14:43:43 +0000 (15:43 +0100)]
Set $wgUseTidy = false on TextContentTest

If $wgUseTidy = true on LocalSettings, although this test
runs fine standalone, when batched with other database tests
it can fail with:
 --- Expected
 +++ Actual
 @@ @@
 -'<p>hello <i>world</i>
 -</p>'
 +'<p>hello <i>world</i></p>'

Change-Id: Id143abf45def7bb686f00584d3f7838dc7396ad7

11 years agoMerge "QUnit testrunner: Fix extend call"
jenkins-bot [Wed, 13 Feb 2013 05:51:05 +0000 (05:51 +0000)]
Merge "QUnit testrunner: Fix extend call"

11 years agoQUnit testrunner: Fix extend call
Matthew Flaschen [Tue, 12 Feb 2013 21:06:58 +0000 (16:06 -0500)]
QUnit testrunner: Fix extend call

* deep only has an effect as the first argument.

http://api.jquery.com/jQuery.extend/#jQuery-extend-deep-target-object1-objectN

Change-Id: I7d20f0b2f4ea63b7e8ce102d786df8d6ae008725

11 years agoMerge "Added --all option and other features to purgeList.php"
Tim Starling [Wed, 13 Feb 2013 05:01:14 +0000 (05:01 +0000)]
Merge "Added --all option and other features to purgeList.php"

11 years agoAdded --all option and other features to purgeList.php
Tim Starling [Mon, 7 Jan 2013 04:00:37 +0000 (15:00 +1100)]
Added --all option and other features to purgeList.php

Added --all, --delay and --verbose options to purgeList.php. Rewrote the
implementation of the --namespace feature. For bug 43466.

Change-Id: I560bffb7b7d765e408687522580ccee22dffd1e2

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 12 Feb 2013 20:15:09 +0000 (20:15 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I561b5585db67ccd3bdf5a0d1a10af2586daaf235

11 years agoMerge "Fixed unmatched begin/commit in SiteStatsUpdate."
Reedy [Tue, 12 Feb 2013 17:44:36 +0000 (17:44 +0000)]
Merge "Fixed unmatched begin/commit in SiteStatsUpdate."

11 years agoMerge "Bug 40167 - Filename cannot be empty in SwiftFileBackend"
jenkins-bot [Tue, 12 Feb 2013 17:43:10 +0000 (17:43 +0000)]
Merge "Bug 40167 - Filename cannot be empty in SwiftFileBackend"

11 years agoBreak long line.
Aaron Schulz [Tue, 12 Feb 2013 17:34:10 +0000 (09:34 -0800)]
Break long line.

Change-Id: I1422eb3eee369c18858f31a66df1e3904e098958

11 years agoBug 40167 - Filename cannot be empty in SwiftFileBackend
Reedy [Tue, 12 Feb 2013 15:42:36 +0000 (15:42 +0000)]
Bug 40167 - Filename cannot be empty in SwiftFileBackend

As we're evaluating the output, we can just suppress these
warnings

Change-Id: I5b0af085d163824a7406b675eb0decc617ef4b4c

11 years agoMerge "Use and forward returntoquery parameter in Special:ChangePassword"
jenkins-bot [Tue, 12 Feb 2013 14:02:55 +0000 (14:02 +0000)]
Merge "Use and forward returntoquery parameter in Special:ChangePassword"

11 years ago(bug 44459) Implement mw.message.text():
Matthew Flaschen [Tue, 12 Feb 2013 04:16:08 +0000 (23:16 -0500)]
(bug 44459) Implement mw.message.text():

* Change default message format in mediawiki.js from plain to text (this includes behavior of mw.msg shorthand).
* Code changes are primarily in jqueryMsg, with minor supporting changes in mediawiki.
* Organize tests by public entrypoint (mediawiki or mediawiki.jqueryMsg).
* Additional tests and assertions for all public entry points, for new and existing behavior.
* Convenience test assertion methods
* Add explanatory comments for new and existing code.
* Add setting to jqueryMsg for format, defaulting to parse, to preserve existing behavior for direct callers to jqueryMsg's public API.
* Since there are now two ways of constructing the abstract syntax tree, add a new parameter to the cache's key scheme.
* Minor formatting

Change-Id: I0d220692262356a12e2f1c0ce30cf6f090428332

11 years ago(bug 44775) Don't pre-fill username when creating.
S Page [Fri, 8 Feb 2013 02:55:54 +0000 (18:55 -0800)]
(bug 44775) Don't pre-fill username when creating.

In "Create account" (signup) mode, never auto-populate the username.
Pre-filling with the name of the user who last logged in is wrong (bug
44775), and if a logged-in user is creating a new account then
pre-filling with her own username isn't helpful.

Change-Id: I1bb641b2186a8c8dc92be0c7b5de2e9069dd31ed

11 years agoAvoid Jenkins' CodeSniffer warnings for Userlogin
S Page [Tue, 12 Feb 2013 03:23:37 +0000 (19:23 -0800)]
Avoid Jenkins' CodeSniffer warnings for Userlogin

Change property declarations from "var" to "public". This eliminates the
 46 | ERROR | The var keyword must not be used to declare a property
warnings from Jenkins CI, e.g.
https://integration.mediawiki.org/ci/job/mediawiki-core-phpcs-HEAD/1565/console

http://php.net/manual/en/language.oop5.properties.php says
  "If you declare a property using var instead of one of public,
protected, or private, then PHP 5 will treat the property as if it had
been declared as public."
, so this should be a no-op.

Change-Id: I754ccea018f95421bfe3f7b04e3ab3a6d9b407e3

11 years agoFixed unmatched begin/commit in SiteStatsUpdate.
Aaron Schulz [Tue, 12 Feb 2013 00:53:25 +0000 (16:53 -0800)]
Fixed unmatched begin/commit in SiteStatsUpdate.

Change-Id: Iaea0334571a283a72d9a070508d6175cd5b8d9bf

11 years ago[Database] Log transaction mismatch errors to the DB log.
Aaron Schulz [Mon, 11 Feb 2013 21:53:40 +0000 (13:53 -0800)]
[Database] Log transaction mismatch errors to the DB log.

Change-Id: Ic681cb98e13d7769b849ddc132b71596b2b25abe

11 years agoMerge "misc style issues"
jenkins-bot [Mon, 11 Feb 2013 21:14:30 +0000 (21:14 +0000)]
Merge "misc style issues"

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Mon, 11 Feb 2013 20:30:05 +0000 (20:30 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 11 Feb 2013 20:08:29 +0000 (20:08 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I5ef2e442b10c6801878006055210cbaf923cfdc2

11 years agoMerge "Set timeout for Sites object in memcached."
jenkins-bot [Mon, 11 Feb 2013 19:57:06 +0000 (19:57 +0000)]
Merge "Set timeout for Sites object in memcached."

11 years agoMerge "[ExternalStore] Made ExternalStoreMwstore use private containers."
jenkins-bot [Mon, 11 Feb 2013 19:41:47 +0000 (19:41 +0000)]
Merge "[ExternalStore] Made ExternalStoreMwstore use private containers."

11 years agoSet timeout for Sites object in memcached.
daniel [Mon, 11 Feb 2013 19:40:12 +0000 (20:40 +0100)]
Set timeout for Sites object in memcached.

Change-Id: I8964a03c5989b368e0da07b42db463cf6e732fb3

11 years agoFixed some comments and removed redundant constant.
Aaron Schulz [Fri, 8 Feb 2013 18:09:41 +0000 (10:09 -0800)]
Fixed some comments and removed redundant constant.

* Also normalized params in RedisConnectionPool to avoid fragmentation.

Change-Id: I803dae52262b974836817d2091725f044faf7022

11 years ago$.suggestions: make it possible to re-show suggestions
MatmaRex [Sat, 9 Feb 2013 18:53:19 +0000 (19:53 +0100)]
$.suggestions: make it possible to re-show suggestions

This patch makes it possible to re-show suggestions after they were
hidden (by pressing Escape) by simply pressing the down arrow. This
seems to have been the intended behavior to begin with (given how
update() is called on down-arrow press when the suggestions list is
hidden), but someone borked the implementation.

To reproduce the behavior:
* type something in and wait for the suggestions to appear
* press Escape, hiding the suggestion list
* press down arrow to fetch and show it again

Change-Id: Ic8aa162d2f0701d93329de855bd8b7dbdb99f979

11 years agoUse and forward returntoquery parameter in Special:ChangePassword
Alexandre Emsenhuber [Mon, 4 Feb 2013 21:14:41 +0000 (22:14 +0100)]
Use and forward returntoquery parameter in Special:ChangePassword

Refactored the generation of hidden fields so that the returnto
and returntoquery only get added to the output if they actually
were provided in the request.

Change-Id: I144f04bec2fdd0947b5d206684d9c63a3d868168

11 years agoMerge "(Bug 27559) Preserve tab selection after submit in [[Special:Preferences]]"
jenkins-bot [Mon, 11 Feb 2013 09:08:36 +0000 (09:08 +0000)]
Merge "(Bug 27559) Preserve tab selection after submit in [[Special:Preferences]]"

11 years agoRussian grammar updates
Amir E. Aharoni [Mon, 11 Feb 2013 05:09:41 +0000 (10:39 +0530)]
Russian grammar updates

* Replace == with ===
* Add support for the prepositional case
* Add support for Wikidata
* Add tests

Change-Id: Ic02bfb9ce88e93775036f3d15921cedca602237c

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 10 Feb 2013 21:19:11 +0000 (21:19 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I67554613a39b7116692d29cc6dbb7170a99aee4d

11 years agoMerge "Rename Image namespace to File for 'be' locale"
jenkins-bot [Sun, 10 Feb 2013 18:33:41 +0000 (18:33 +0000)]
Merge "Rename Image namespace to File for 'be' locale"

11 years agoMerge "Correct check whether the e-mail field was filled in Special:Userlogin/signup"
jenkins-bot [Sun, 10 Feb 2013 17:17:16 +0000 (17:17 +0000)]
Merge "Correct check whether the e-mail field was filled in Special:Userlogin/signup"

11 years agoMerge "Add some missing readonly checks:"
IAlex [Sun, 10 Feb 2013 13:16:50 +0000 (13:16 +0000)]
Merge "Add some missing readonly checks:"

11 years agoMerge "remove not needed return and break"
jenkins-bot [Sun, 10 Feb 2013 13:02:07 +0000 (13:02 +0000)]
Merge "remove not needed return and break"

11 years agoMerge "remove space before semicolon"
IAlex [Sun, 10 Feb 2013 12:51:02 +0000 (12:51 +0000)]
Merge "remove space before semicolon"

11 years agoMerge "fix some spacing"
IAlex [Sun, 10 Feb 2013 12:47:01 +0000 (12:47 +0000)]
Merge "fix some spacing"

11 years agoAvoid undefined offset for $wgImageLimits
umherirrender [Sat, 2 Feb 2013 13:48:33 +0000 (14:48 +0100)]
Avoid undefined offset for $wgImageLimits

This can happen, when customized $wgImageLimits, but not
the option in $wgDefaultOptions

Notice:  Undefined offset: 2 in \includes\ImagePage.php on line 364

Change-Id: I1dbcde8782f239279602f509e5987606af8db241

11 years agoMerge "(bug 44805) Set correct number separators for Northern Sami"
jenkins-bot [Sun, 10 Feb 2013 09:36:31 +0000 (09:36 +0000)]
Merge "(bug 44805) Set correct number separators for Northern Sami"

11 years ago(bug 44805) Set correct number separators for Northern Sami
Niklas Laxström [Sun, 10 Feb 2013 05:42:48 +0000 (05:42 +0000)]
(bug 44805) Set correct number separators for Northern Sami

Change-Id: I9e2624df3060cc4ffe4cff8a32491ca23aaad4c0

11 years agoremove not needed return and break
umherirrender [Sat, 9 Feb 2013 22:55:46 +0000 (23:55 +0100)]
remove not needed return and break

break after throw is not executed

return; at end of function is not needed

Change-Id: I7c1c1799f78da11b7607a753d4f215c4547f0428

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 9 Feb 2013 22:27:35 +0000 (22:27 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ice78f3fea074fa90f5d10ab09ede953c08a7ecc2

11 years agofix some spacing
umherirrender [Sat, 9 Feb 2013 22:03:53 +0000 (23:03 +0100)]
fix some spacing

Added/removed spaces after opening/before closing parentheses

Added a space after a comma

Removed unneeded parentheses in condition

Change-Id: I306091347ccaaf11dee0cdfda3019cb0c12be51b

11 years agoMerge "Added deprecation comment to constant that when used throws deprecation exception"
jenkins-bot [Sat, 9 Feb 2013 21:47:23 +0000 (21:47 +0000)]
Merge "Added deprecation comment to constant that when used throws deprecation exception"

11 years agoremove space before semicolon
umherirrender [Sat, 9 Feb 2013 21:44:24 +0000 (22:44 +0100)]
remove space before semicolon

Change-Id: Ic0d890f5e27cec017c7f7910a67d53b2edf82079

11 years agoMerge "Add ArchivedFile::selectFields() and use it"
jenkins-bot [Sat, 9 Feb 2013 21:40:04 +0000 (21:40 +0000)]
Merge "Add ArchivedFile::selectFields() and use it"

11 years agoMerge "Use OldLocalFile::selectFields()"
jenkins-bot [Sat, 9 Feb 2013 21:38:10 +0000 (21:38 +0000)]
Merge "Use OldLocalFile::selectFields()"

11 years agoTRUE, FALSE and NULL must be lowercase
umherirrender [Sat, 9 Feb 2013 20:10:44 +0000 (21:10 +0100)]
TRUE, FALSE and NULL must be lowercase

From phpcs

Change-Id: I09672012be28ae3985702e314442db00d154de24

11 years agoAttribtue -> Attribute
Alex Monk [Sat, 9 Feb 2013 19:10:43 +0000 (19:10 +0000)]
Attribtue -> Attribute

Change-Id: I9eca55a96be3ae1cdedf5045db40510b918f3549

11 years agoMerge "Title.php: replace some '*' with explicit fields in selects"
jenkins-bot [Sat, 9 Feb 2013 18:16:49 +0000 (18:16 +0000)]
Merge "Title.php: replace some '*' with explicit fields in selects"

11 years agoTitle.php: replace some '*' with explicit fields in selects
umherirrender [Sat, 9 Feb 2013 14:03:23 +0000 (15:03 +0100)]
Title.php: replace some '*' with explicit fields in selects

It is good practice to select only fields which are used later

Change-Id: Ie0075f2c2bbc4408f8d9b8967669d8c729b31914

11 years agoAdd some missing readonly checks:
umherirrender [Sat, 9 Feb 2013 17:58:56 +0000 (18:58 +0100)]
Add some missing readonly checks:

* Do not allow working on Special:EditWatchlist
* Do not reset all notification markers
* Do not delete expired restrictions

Change-Id: I7a990c0a80b9c7a6340465dd082a110dafea8f14

11 years agoMerge "The right casing is IcuCollation"
jenkins-bot [Sat, 9 Feb 2013 15:50:08 +0000 (15:50 +0000)]
Merge "The right casing is IcuCollation"

11 years agoThe right casing is IcuCollation
Platonides [Sat, 9 Feb 2013 15:20:06 +0000 (16:20 +0100)]
The right casing is IcuCollation

Follow-up to e8c0c2ad.

Change-Id: Ic2240a7e09abe607c87df64fd688b908fb8aa580

11 years agoUse OldLocalFile::selectFields()
umherirrender [Sat, 9 Feb 2013 15:12:09 +0000 (16:12 +0100)]
Use OldLocalFile::selectFields()

It is good practice to specifiy the fields in a select

Change-Id: I3faa568ed6311a585da9161eccd8da3d065da250

11 years agoAdd ArchivedFile::selectFields() and use it
umherirrender [Sat, 9 Feb 2013 14:59:13 +0000 (15:59 +0100)]
Add ArchivedFile::selectFields() and use it

Change-Id: Ia19d7bc1eb2bf77f1aca9d3891cebf57e45c030b

11 years agoMerge "generateId -> mw.user.generateRandomSessionId"
jenkins-bot [Sat, 9 Feb 2013 13:26:26 +0000 (13:26 +0000)]
Merge "generateId -> mw.user.generateRandomSessionId"

11 years agoMerge "(bug 44459) Ensure jqueryMsg treats plain messages as plain, with tests."
jenkins-bot [Sat, 9 Feb 2013 01:30:37 +0000 (01:30 +0000)]
Merge "(bug 44459) Ensure jqueryMsg treats plain messages as plain, with tests."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 8 Feb 2013 21:19:37 +0000 (21:19 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I6d87223cdc826c2194259026ee53366f7fca6a34

11 years agoMerge "(bug 43801) add a getter for ICU version to ICUCollation"
Brian Wolff [Fri, 8 Feb 2013 21:04:21 +0000 (21:04 +0000)]
Merge "(bug 43801) add a getter for ICU version to ICUCollation"

11 years ago(bug 43801) add a getter for ICU version to ICUCollation
MatmaRex [Fri, 18 Jan 2013 21:36:32 +0000 (22:36 +0100)]
(bug 43801) add a getter for ICU version to ICUCollation

It will be necessary to be able to use correct version of Unicode
data files.

The constant INTL_ICU_VERSION this getter returns isn't really
documented. It is available since PHP 5.3.7 (see PHP bug 54561),
the getter will fail gracefully on older PHPs. It should be possible to
determine the ICU version on these by grepping the output of phpinfo(),
but I don't think such a minor improvement is worth such a huge hack.

Change-Id: I85353559439bfddee7c5ba90894d30dd8ef0e0e8

11 years agoAPI PageSet allows generator for non-query modules
Yuri Astrakhan [Fri, 8 Feb 2013 20:39:40 +0000 (15:39 -0500)]
API PageSet allows generator for non-query modules

* PageSet can now be used in any action to process titles/pageids/revids
or any generator, redirects resolution, and converttitle functionality.
* action=purge proper usage of MustBePosted()
* Add supports for all pageset capabilities - generators, redirects, converttitles to
  action=purge and action=setnotificationtimestamp
* BREAKING CHANGE: ApiPageSet constructor now has two params instead of three, with only the
  first one keeping its meaning. ApiPageSet is now derived from ApiBase.
* BREAKING CHANGE: ApiQuery::newGenerator() and executeGeneratorModule() were deleted.

Change-Id: I7a3d7b6eb015d21ec1a9b9d9c6af9d97663f3f9a

11 years agoMerge "apitests leaks wgUser"
IAlex [Fri, 8 Feb 2013 19:33:56 +0000 (19:33 +0000)]
Merge "apitests leaks wgUser"

11 years agoAdd null lock manager to parser tests to support code that uses it by default.
Matthew Flaschen [Fri, 8 Feb 2013 18:23:36 +0000 (13:23 -0500)]
Add null lock manager to parser tests to support code that uses it by default.

Change-Id: I938bd1b64a1b1ff241555f157c0ba737d72ee48d

11 years agoapitests leaks wgUser
umherirrender [Fri, 8 Feb 2013 17:57:16 +0000 (18:57 +0100)]
apitests leaks wgUser

1) ParserTests::testParserTest with data set #468 ('pre-save transform:
Signature expansion', '* ~~~
* <noinclude>~~~</noinclude>
* <includeonly>~~~</includeonly>
* <onlyinclude>~~~</onlyinclude>', '*
[[Special:Contributions/127.0.0.1|127.0.0.1]]
* <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
*
<includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
*
<onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>',
'pst', '')
pre-save transform: Signature expansion
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'* [[Special:Contributions/127.0.0.1|127.0.0.1]]
-* <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
-*
<includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
-*
<onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>'
+'* [[User:Apitestsysop|Apitestsysop]] ([[User talk:Apitestsysop|talk]])
+* <noinclude>[[User:Apitestsysop|Apitestsysop]] ([[User
talk:Apitestsysop|talk]])</noinclude>
+* <includeonly>[[User:Apitestsysop|Apitestsysop]] ([[User
talk:Apitestsysop|talk]])</includeonly>
+* <onlyinclude>[[User:Apitestsysop|Apitestsysop]] ([[User
talk:Apitestsysop|talk]])</onlyinclude>'

Change-Id: Ia72f9242deb5c6109d38b56dd46ef92fa6386278

11 years agoMerge "fix logic introduced in addNewAccountInternal"
jenkins-bot [Fri, 8 Feb 2013 17:19:33 +0000 (17:19 +0000)]
Merge "fix logic introduced in addNewAccountInternal"

11 years agoMerge "Reformatted to satisfy PHP_CodeSniffer"
jenkins-bot [Fri, 8 Feb 2013 16:01:32 +0000 (16:01 +0000)]
Merge "Reformatted to satisfy PHP_CodeSniffer"

11 years agoCorrect check whether the e-mail field was filled in Special:Userlogin/signup
Alexandre Emsenhuber [Fri, 8 Feb 2013 13:07:40 +0000 (14:07 +0100)]
Correct check whether the e-mail field was filled in Special:Userlogin/signup

Use a strict comparison with '' instead of empty(), otherwise this allows user
to give "0" as an e-mail address.

Also use strval() if in any case null or something like that would be passed.

Change-Id: Ide7d35c52a04d05b43ae9fd37f7586bb4a67d4ed

11 years agoAdd languages anp, ks, mai and pi to the line-height fix
Amir E. Aharoni [Fri, 8 Feb 2013 11:22:48 +0000 (16:52 +0530)]
Add languages anp, ks, mai and pi to the line-height fix

More Devanagari-based languages found in Names.php.

Change-Id: Icab488bb509a3fa59d8d5a07c566504bda76e740

11 years agoAdd languages ne and new to the line-height adjustment
Amir E. Aharoni [Fri, 8 Feb 2013 11:01:37 +0000 (16:31 +0530)]
Add languages ne and new to the line-height adjustment

They are written in Devanagari, like hi, mr and others in the list.

Change-Id: I9704490ed3d8047427be0d8c71f62aea305fc964

11 years agoMerge "API tests to verify basic query functionality (list & props)"
jenkins-bot [Fri, 8 Feb 2013 09:45:44 +0000 (09:45 +0000)]
Merge "API tests to verify basic query functionality (list & props)"

11 years agofix logic introduced in addNewAccountInternal
S Page [Fri, 8 Feb 2013 07:46:27 +0000 (23:46 -0800)]
fix logic introduced in addNewAccountInternal

Jenkins' PHP codesniffer complains about the whitespace at line 318.
I'm pretty sure gerrit 17952 (commit 69ea4400) introduced bad logic.
Part of the if statement boils down to
    userExists( userName ||  authenticate( userName, password) )
if userName is falsy then it calls userExists on the boolean return
value of authenticate().  I think this change puts it back to the way it
was.

Change-Id: If334464ffa993490abe8919591a18a4c3935bcfb

11 years agoMerge "Expand $wgLanguageCode documentation"
IAlex [Fri, 8 Feb 2013 07:14:40 +0000 (07:14 +0000)]
Merge "Expand $wgLanguageCode documentation"

11 years agoReformatted to satisfy PHP_CodeSniffer
Siebrand Mazeland [Tue, 22 Jan 2013 18:19:24 +0000 (19:19 +0100)]
Reformatted to satisfy PHP_CodeSniffer

* Removed inline tabs.
* Removed pretty formatting of key-value pairs.
* Other miscellaneous formatting fixes.

Change-Id: I86170714dc22a8654027a8351e8d28226e822183

11 years agoAPI tests to verify basic query functionality (list & props)
Yuri Astrakhan [Fri, 8 Feb 2013 06:45:19 +0000 (01:45 -0500)]
API tests to verify basic query functionality (list & props)

* Several tests to verify query with prop=, list=, and generator
* Moved query related tests to query\ dir
* Added a generic ApiTestCase::editPage() to simplify page creation
* Fixed minor warnings complained by jenkins/phpcs

Change-Id: I5e3984d797178ae03f048792c7bac8e6a881aa41

11 years agoReplace AJAX by search in 'mwsuggest-disable'
Siebrand Mazeland [Fri, 8 Feb 2013 06:25:52 +0000 (07:25 +0100)]
Replace AJAX by search in 'mwsuggest-disable'

AJAX is jargon that is most probbly not understood by the average user.
Brought up by Tgr in
https://translatewiki.net/wiki/Thread:Support/MediaWiki:Mwsuggest-disable_is_too_technical

Change-Id: I736d0c16dab50b3e313652c3b9b2680fa104ad32

11 years agoMerge "Weaken the recursion guard on RequestContext::getLanguage()"
Tim Starling [Fri, 8 Feb 2013 05:41:46 +0000 (05:41 +0000)]
Merge "Weaken the recursion guard on RequestContext::getLanguage()"

11 years agoWeaken the recursion guard on RequestContext::getLanguage()
Tim Starling [Fri, 8 Feb 2013 05:38:41 +0000 (16:38 +1100)]
Weaken the recursion guard on RequestContext::getLanguage()

Just log and soldier on, since for some reason we are seeing a lot of
these exceptions at the moment, with multiple root causes. Based on Matt
Walker's I49dbc2d7. Updates Idc11b547. See bug 44754.

Change-Id: I2e8c062741c1b2ec2acd68dc76d3fb6efb113571

11 years agoMerge "[JobQueue] Added a JobQueueRedis class."
Tim Starling [Fri, 8 Feb 2013 05:01:34 +0000 (05:01 +0000)]
Merge "[JobQueue] Added a JobQueueRedis class."

11 years agoExpand $wgLanguageCode documentation
Niklas Laxström [Fri, 8 Feb 2013 04:47:55 +0000 (04:47 +0000)]
Expand $wgLanguageCode documentation

Includes warning for bug 44747

Change-Id: Ib18c988731afcbe94703bb4e2ca47effa58e2904