Aaron Schulz [Sat, 22 Sep 2012 08:14:35 +0000 (01:14 -0700)]
Limit bad transactions warnings to those involving possible writes.
Change-Id: I3f1dd5fd34c5554619936471a2c9687a8f501006
Nikerabbit [Fri, 21 Sep 2012 23:43:04 +0000 (23:43 +0000)]
Merge "Document that setSubtitle() and addSubtitle() need safe HTML"
Siebrand [Fri, 21 Sep 2012 23:10:40 +0000 (23:10 +0000)]
Merge "Convert width HTML attribute in tables into inline CSS"
Catrope [Fri, 21 Sep 2012 22:51:05 +0000 (22:51 +0000)]
Merge "Don't send COMMIT if not in a transaction."
Siebrand [Fri, 21 Sep 2012 22:45:42 +0000 (22:45 +0000)]
Merge "Remove all custom plural rules and use CLDR plural rule system"
Siebrand Mazeland [Fri, 21 Sep 2012 22:30:28 +0000 (15:30 -0700)]
Document that setSubtitle() and addSubtitle() need safe HTML
Change-Id: Id5431fc20fb9e9cc755e6a3c393146888a5b666e
Aaron [Fri, 21 Sep 2012 22:27:10 +0000 (15:27 -0700)]
Don't send COMMIT if not in a transaction.
Change-Id: Ifffbf703b15cd875feda1514d3c0d488b8665b66
Translation updater bot [Fri, 21 Sep 2012 20:48:08 +0000 (20:48 +0000)]
Localisation updates from translatewiki.net.
Change-Id: I5debd374244a7a7047b1197d75bc335cd11780cf
Alexandre Emsenhuber [Fri, 21 Sep 2012 20:38:58 +0000 (22:38 +0200)]
Convert width HTML attribute in tables into inline CSS
Change-Id: If992be00e55fdbdc9521f773a5db4eef97e7f3ed
jeroendedauw [Fri, 21 Sep 2012 19:00:34 +0000 (21:00 +0200)]
Added @since tags
Change-Id: Ibfaa5efcb40f4087c4333e9f83b717fc1877b9a5
Siebrand [Fri, 21 Sep 2012 18:46:55 +0000 (18:46 +0000)]
Merge "Improve documentation of maintenance scripts."
Subramanya Sastry [Fri, 21 Sep 2012 17:22:30 +0000 (12:22 -0500)]
P-wrapping tests to spec. existing behavior to assist Parsoid.
* Block tags on a line change paragraph wrapping behavior for
that line and previous lines. Added tests that captures how
the PHP parser currently deals with it so that Parsoid can
emulate this correctly.
Change-Id: I0bcddd2a6d64502d80f4a8155bcd1425bd5db7be
umherirrender [Fri, 21 Sep 2012 13:16:29 +0000 (15:16 +0200)]
Do not use Checkboxes for user without deletelogentry in log
When a user has only deletedhistory and not deletelogentry he should not
see checkboxes, because the button at the begin of the page is missing
and than the checkbox is useless. Use links instead, as the history page
does.
Change-Id: Icae8267dcf3032437eae08372ddbe5769bed7a86
Alexandre Emsenhuber [Thu, 20 Sep 2012 20:49:55 +0000 (22:49 +0200)]
Improve documentation of maintenance scripts.
Change-Id: Id86d06d3c22a69f7e378bf6e75b5c78ef8b47c51
Krinkle [Fri, 21 Sep 2012 03:11:19 +0000 (03:11 +0000)]
Merge "(bug 40415) Add missing dependencies for some modules"
helder.wiki [Fri, 21 Sep 2012 00:37:48 +0000 (21:37 -0300)]
(bug 40415) Add missing dependencies for some modules
* "mediawiki.user" depends on "user.options" and "user.tokens"
* "mediawiki.action.view.dblClickEdit" depends on "mediawiki.page.startup"
Change-Id: I5ef5e4ab68ff1a472d2aebcea474e3fd76e510fe
Krinkle [Fri, 21 Sep 2012 01:19:15 +0000 (01:19 +0000)]
Merge "LivePreview: bind a delegated click event for #wpPreview/Diff"
Aaron [Thu, 20 Sep 2012 19:24:14 +0000 (12:24 -0700)]
[FileBackend] Fallback to $wgMemc for swift auth caching in cli mode.
Change-Id: I4338c68a18f1424b0d0ec4fe3fcf77c79ba774c8
Santhosh Thottingal [Sat, 15 Sep 2012 03:53:45 +0000 (20:53 -0700)]
Remove all custom plural rules and use CLDR plural rule system
We have a data driven plural rule evaluation system in core now.
See I1aa3b081
Added more tests
(This was I4451fc7d and reverted because javascript references
were not removed from Resources.php)
Change-Id: I57c3c238c0717664384da50aa2cbfa74369d7a55
Aaron [Thu, 20 Sep 2012 16:59:09 +0000 (16:59 +0000)]
Merge "Worked around hash path inconsistency to unbreak stash file thumbs."
Siebrand [Thu, 20 Sep 2012 16:55:29 +0000 (16:55 +0000)]
Merge "zhtable: Add tradphrase: 準軍事"
Liangent [Thu, 20 Sep 2012 14:49:24 +0000 (22:49 +0800)]
zhtable: Add tradphrase: 準軍事
Change-Id: I61968fea5089b7c5b159ba12ef8ea4a71b5b9d83
Hashar [Thu, 20 Sep 2012 10:02:32 +0000 (10:02 +0000)]
Merge "(bug 40380) inexistent language files are loaded"
Hashar [Thu, 20 Sep 2012 10:00:36 +0000 (10:00 +0000)]
(bug 40380) inexistent language files are loaded
Revert "Remove all custom plural rules and use CLDR plural rule system"
This reverts commit
c575d2ff7bfee4049998a4d43676fd8f2250582c
Apparently the files are still shipped by the resources loader and causes at least the UploadWizard to be malfunctioning when used in the context of Wiki Loves Monument campaign.
Tim Starling [Thu, 20 Sep 2012 06:04:54 +0000 (16:04 +1000)]
More documentation for node count limit
Change-Id: I6b35ee3ee6b9f8a84e997bbf09aa72c807caf71e
Tim Starling [Thu, 20 Sep 2012 04:39:32 +0000 (14:39 +1000)]
Log page titles that are more than 10% of the node count limit
Change-Id: I6824d305efd73de95ad15c65d3421886c2f86aa9
Aaron Schulz [Thu, 20 Sep 2012 04:18:19 +0000 (21:18 -0700)]
Don't send empty Vary headers.
Change-Id: I0b6bd7ab24323782302c28cf1438dce62f5b8c5a
Aaron Schulz [Thu, 20 Sep 2012 04:06:20 +0000 (04:06 +0000)]
Merge "Trigger warning for bad use of transactions."
daniel [Mon, 27 Aug 2012 09:55:15 +0000 (11:55 +0200)]
Trigger warning for bad use of transactions.
Mediawiki currently does not support nested transactions, which means that
starting a transaction while another is in progress will silently commit
the previous transaction, causing lots of potential inconsistency.
This change introduces checks that will log a warning whenever begin() is
used while a transaction is already in progress, and whenever commit() or
rollback() are used without a transaction being in progress.
NOTE: this exposes several places in the code where transactions have inadvertedly
be nested, or unmatched calls to begin() resp commit() are used. With
$wgDevelopmentWarnings enabled or I36583fb0 merged, this may cause tests to fail.
The following changes fix the issues in question: I80faf2ed, Ia225251e, Iff394f97,
and I20d90fed.
Change-Id: I8c0426e12b78edbd758b1f087c35dabd64498624
Aaron [Thu, 20 Sep 2012 00:45:39 +0000 (17:45 -0700)]
Worked around hash path inconsistency to unbreak stash file thumbs.
Change-Id: I567467b75a600841440b36352d5675866d3fca2b
Nikerabbit [Thu, 20 Sep 2012 00:08:07 +0000 (00:08 +0000)]
Merge "Fix docs."
Siebrand Mazeland [Thu, 20 Sep 2012 00:05:44 +0000 (17:05 -0700)]
Fix docs.
Change-Id: Ib6a5e5440c40ed6dab95affa7ed8ebe8acc13299
Translation updater bot [Wed, 19 Sep 2012 20:37:19 +0000 (20:37 +0000)]
Localisation updates from translatewiki.net.
Change-Id: I8aefb49b7778a482655e0006f7e943f1e540d08e
ArielGlenn [Wed, 19 Sep 2012 18:28:20 +0000 (18:28 +0000)]
Merge "[FileBackend] Avoid stat call in getFileContents() for swift."
Siebrand [Wed, 19 Sep 2012 17:24:37 +0000 (17:24 +0000)]
Merge "(bug 11056) Closing bracket skipped in emailed links"
ArielGlenn [Wed, 19 Sep 2012 17:12:23 +0000 (17:12 +0000)]
Merge "(bug 39975) Fixed thumb_handler.php handling of /temp thumb urls."
IAlex [Wed, 19 Sep 2012 16:57:17 +0000 (16:57 +0000)]
Merge "Rationale for using MD5 hash"
Tim Starling [Wed, 19 Sep 2012 05:25:31 +0000 (15:25 +1000)]
Rationale for using MD5 hash
Just documenting some benchmark work I did.
Change-Id: Ic24edc5b857e06a8bfe83d70f2da0d7f4690c6af
Federico Leva [Wed, 19 Sep 2012 14:33:19 +0000 (16:33 +0200)]
(bug 11056) Closing bracket skipped in emailed links
Fixing password reminders, reported on TWN.
Adding <> as already done for enotif and translationnotif.
Directly in the parameter as requested by Siebrand on I5aac9a75.
Change-Id: Ib796d28b73ae61e472113dd062e487fbdb8bf1bb
Federico Leva [Wed, 19 Sep 2012 10:43:22 +0000 (12:43 +0200)]
(bug 33328) prefs-searchoptions - wrong wording
Change-Id: I89db0a93807aa3df0a77e675ce1b17115bae3931
Siebrand [Wed, 19 Sep 2012 07:01:52 +0000 (07:01 +0000)]
Merge "Updated plural rules from CLDR 22"
Siebrand [Wed, 19 Sep 2012 06:56:46 +0000 (06:56 +0000)]
Merge "(bug 40098) Don't parse the section's name in the summary when creating a new section"
Siebrand [Wed, 19 Sep 2012 06:54:53 +0000 (06:54 +0000)]
Merge "Forward the User object from WikiPage to Revision."
Siebrand [Wed, 19 Sep 2012 01:43:23 +0000 (01:43 +0000)]
Merge "add dir='ltr' to non-localized debug toolbar stuff"
Siebrand [Wed, 19 Sep 2012 00:04:54 +0000 (00:04 +0000)]
Merge "(bug 32052) Improve "noarticletext-nopermission" message"
Aaron [Tue, 18 Sep 2012 23:04:13 +0000 (16:04 -0700)]
[FileBackend] Factored out setConcurrencyFlags() function.
* This moves some options code from FileBackend to FileBackendStore,
where it belongs. This also allows for reuse by other operations.
Change-Id: Ic9a7d36a6e4bc6b815a7d68926105401f65c53fb
Federico Leva [Tue, 18 Sep 2012 21:20:12 +0000 (23:20 +0200)]
(bug 32052) Improve "noarticletext-nopermission" message
Specifying explicitly that user has no permission.
Better at the end because it's not the most important thing and for consistency.
Wording stolen from 'movenotallowed' and so on.
Change-Id: I81abd21ee646332dd455a48076515cf0a683fd9c
Alexandre Emsenhuber [Tue, 18 Sep 2012 20:44:58 +0000 (22:44 +0200)]
Forward the User object from WikiPage to Revision.
This affects the following methods of WikiPage:
- getText()
- getUser()
- getCreator()
- getUserText()
- getComment()
These are wrapper to methods in the Revision class
that accept an optional User object as second parameter
in the case FOR_THIS_USER is passed as first parameter.
Change-Id: I81a2470378bc1134dd144743d376ba31f4fe13d1
madman [Tue, 18 Sep 2012 00:10:48 +0000 (00:10 +0000)]
(bug 40046) MediaWiki's info action should link first revision of a page
Change-Id: I9cf13eafc7a18db27391cfc160f780cd73d88b87
Translation updater bot [Tue, 18 Sep 2012 19:07:43 +0000 (19:07 +0000)]
Localisation updates from translatewiki.net.
Change-Id: Ib3e345d8717343355fb0d093f8d8c3fe7d9b92ed
Aaron Schulz [Thu, 13 Sep 2012 04:42:53 +0000 (21:42 -0700)]
(bug 39975) Fixed thumb_handler.php handling of /temp thumb urls.
This basically makes the 'rel404' param for temp thumbanils not
start with "/temp" anymore so that they don't count as bogus.
Change-Id: I88c2c50b5372c7b95108d26ba16ddcd91fdb1154
Krinkle [Tue, 18 Sep 2012 15:09:00 +0000 (15:09 +0000)]
Merge "(bug 40306) Only convert align to float for table."
Alexandre Emsenhuber [Sun, 2 Sep 2012 20:28:13 +0000 (22:28 +0200)]
Remove some debug output when opening a new database connection
Simplified the messages to avoid duplicates.
Change-Id: Ibcccc98bc18bdd0e0b876d9ad97f281c643eeabf
Antoine Musso [Mon, 17 Sep 2012 20:16:34 +0000 (22:16 +0200)]
(bug 40306) Only convert align to float for table.
Align should be converted to text-align for all the elements specified
in $presentationalAttribs mapping. Table however is an exception, it
applies to alignment of the block (instead of the content).
Follow up I108cbd10 /
27a4d74bd7.
Change-Id: Iee17d4ef1a6a9b46d88a330cfc9179bccfe93247
Aaron Schulz [Tue, 18 Sep 2012 05:45:31 +0000 (05:45 +0000)]
Merge "(bug 40302) Lock user table with LOCK TABLES"
Aaron Schulz [Tue, 18 Sep 2012 05:32:58 +0000 (22:32 -0700)]
[FileBackend] Avoid stat call in getFileContents() for swift.
* Also removed unused "nostat" flag in addMissingMetadata().
Change-Id: I5f4d827d916b9ca97b9ffd6943c73b6b2faae724
IAlex [Tue, 18 Sep 2012 04:32:30 +0000 (04:32 +0000)]
Merge "Use number input type for year in dateMenu"
Santhosh Thottingal [Mon, 17 Sep 2012 21:36:23 +0000 (14:36 -0700)]
Updated CLDRPluralRuleParser from upstream
* A minor fix for an implied global variable
See https://github.com/santhoshtr/CLDRPluralRuleParser/commit/
42fdda60370b130c4f544992d70278a100983508
Change-Id: Ib842145a2a8b4e1821d49edbdc729b7b58b1cf46
robin [Mon, 17 Sep 2012 00:52:55 +0000 (02:52 +0200)]
Use number input type for year in dateMenu
Use the HTML5 number input type for the year input field in the dateMenu (used on e.g. history pages), since a year is always a number :)
(There was once a year type proposed, but that didn't make it into HTML5)
Patchset 2: use Html::input instead of Xml::input (and change the other Xml's to self::)
Change-Id: If9ad28566abfc02a164367d7cdd6992939169c0a
Translation updater bot [Mon, 17 Sep 2012 19:35:39 +0000 (19:35 +0000)]
Localisation updates from translatewiki.net.
Change-Id: I94d426ae00b4ac3d523f5485bd1e94866df12db6
Reedy [Mon, 17 Sep 2012 18:17:11 +0000 (19:17 +0100)]
(bug 40302) Lock user table with LOCK TABLES
Change-Id: I26905c29e004a4c7df82fd38aab908287daf193e
Alexandre Emsenhuber [Mon, 17 Sep 2012 18:14:27 +0000 (20:14 +0200)]
Use Revision::isCurrent() in ApiParse.
We have a loaded Revision object so we may use that
method as well.
Change-Id: Ie8bb871f8874871d7df3111d39ba23a01769cd34
aude [Mon, 17 Sep 2012 15:14:09 +0000 (15:14 +0000)]
add dir='ltr' to non-localized debug toolbar stuff
It might be nice to localize this stuff; until then,
it is rather annoying to look at broken parentheses
when using MediaWiki and the toolbar in a RTL language.
Removed text-align: left, so it won't be flipped.
Added an explicit label for Peak memory - it's clearer and it helps
with LTR layout (the units are localized and confuse the display).
Added lang="en" dir="ltr" to the main containter, which is
the right thing until it's properly localized.
Change-Id: I1d0ef6d12eefac0ff28277e4cc2dbc62acd9eee2
Niklas Laxström [Fri, 14 Sep 2012 16:33:36 +0000 (16:33 +0000)]
Updated plural rules from CLDR 22
Change-Id: I0325635a8e0fa3d5defbcbc3a0f4746ed4ab14c1
Siebrand [Mon, 17 Sep 2012 16:48:32 +0000 (16:48 +0000)]
Merge "(bug 40251) Added more languages to plural override"
Siebrand [Mon, 17 Sep 2012 16:48:05 +0000 (16:48 +0000)]
Merge "Removed some language files no longer needed"
Siebrand [Mon, 17 Sep 2012 16:47:01 +0000 (16:47 +0000)]
Merge "Fix spelling in nan date formats"
IAlex [Mon, 17 Sep 2012 16:02:57 +0000 (16:02 +0000)]
Merge "Use email input type on SpecialChangeEmail"
robin [Mon, 17 Sep 2012 01:27:50 +0000 (03:27 +0200)]
Maintenance in Html::openElement regarding input types
Followup to c22000
Remove unset() for 'search' type, it will now simply be unset through the regular checking (removed it in the validTypes for that, but it is still in validTypes in HTML5 mode).
Update / remove outdated code comments.
Change-Id: I452462b81360b67b76dd8baa732d52113b6aafe6
robin [Mon, 17 Sep 2012 00:38:20 +0000 (02:38 +0200)]
Use email input type on SpecialChangeEmail
Change the input type for the e-mail input field to HTML5 'email' ('input' should have been 'text' anyway').
Change-Id: Idb1195e3f56b6b43d3b86d38747a4113d04053b5
Translation updater bot [Sun, 16 Sep 2012 19:49:54 +0000 (19:49 +0000)]
Localisation updates from translatewiki.net.
Change-Id: Ib713d5ca9ae274ada2b391b520516182c61007e2
Santhosh Thottingal [Sat, 15 Sep 2012 03:20:04 +0000 (20:20 -0700)]
Add support for plural rules for decimal numbers
* Update CLDRPluralRuleParser from upstream
* Use parseFloat instead of parseInt in mediawiki.jqueryMsg
* Add qunit tests
Change-Id: I0b44df6c9e299142925a557f6dc41d749d381a02
Liangent [Sun, 10 Jun 2012 15:35:15 +0000 (23:35 +0800)]
(bug 37453) Move $wgDisable(Lang|Title)Conversion to ParserOptions
This allows easier fix of bug 37453, and patch to fix it is
included in this changeset.
Change-Id: I9096534639394755d0a296dea7380e7b938befef
Niklas Laxström [Sun, 16 Sep 2012 18:06:52 +0000 (18:06 +0000)]
Removed some language files no longer needed
Only have plural defined which is same as in cldr
Change-Id: I0bacb38397af14bf413dcf4a9df0b9f3fbe4110b
IAlex [Sun, 16 Sep 2012 18:06:24 +0000 (18:06 +0000)]
Merge "Fixed warning spam in SqlBagOStuff."
Aaron Schulz [Sun, 16 Sep 2012 18:02:56 +0000 (18:02 +0000)]
Merge "Use WikiPage::makeParserOptions() where possible."
IAlex [Sun, 16 Sep 2012 18:00:37 +0000 (18:00 +0000)]
Merge "Migrate hsb plural rules to cldr format"
IAlex [Sun, 16 Sep 2012 17:58:13 +0000 (17:58 +0000)]
Merge "(bug 40257) action=info no longer shows subpages where disabled"
Aaron Schulz [Sun, 16 Sep 2012 17:56:52 +0000 (10:56 -0700)]
Fixed warning spam in SqlBagOStuff.
Change-Id: Iac573980596349deab757eac859d9e28dc2963b6
Niklas Laxström [Sun, 16 Sep 2012 17:53:10 +0000 (17:53 +0000)]
Migrate hsb plural rules to cldr format
Change-Id: I9d1c34d8e63767a6abc4f98c09caf65d5056433a
IAlex [Sun, 16 Sep 2012 17:48:20 +0000 (17:48 +0000)]
Merge "Fix strict error in UploadStashFile"
IAlex [Sun, 16 Sep 2012 17:47:51 +0000 (17:47 +0000)]
Merge "Update 'protectedinterface' and 'editinginterface'"
Reedy [Sun, 16 Sep 2012 17:18:27 +0000 (18:18 +0100)]
Fix strict error in UploadStashFile
Strict standards: Declaration of UploadStashFile::thumbName() should be compatible with that of File::thumbName() in /var/www/wiki/mediawiki/core/includes/upload/UploadStash.php on line 498
Call Stack:
0.0004 645672 1. {main}() /var/www/wiki/mediawiki/core/index.php:0
0.0756
5904264 2. MediaWiki->run() /var/www/wiki/mediawiki/core/index.php:59
0.0756
5904264 3. MediaWiki->main() /var/www/wiki/mediawiki/core/includes/Wiki.php:446
0.0797
6328272 4. MediaWiki->performRequest() /var/www/wiki/mediawiki/core/includes/Wiki.php:536
0.0960
7042800 5. SpecialPageFactory::executePath() /var/www/wiki/mediawiki/core/includes/Wiki.php:290
0.1041
8003528 6. SpecialPage->run() /var/www/wiki/mediawiki/core/includes/SpecialPageFactory.php:494
0.1041
8003528 7. SpecialSpecialpages->execute() /var/www/wiki/mediawiki/core/includes/SpecialPage.php:611
0.2082
17300016 8. SpecialSpecialpages->getPageGroups() /var/www/wiki/mediawiki/core/includes/specials/SpecialSpecialpages.php:42
0.2083
17300016 9. SpecialPageFactory::getUsablePages() /var/www/wiki/mediawiki/core/includes/specials/SpecialSpecialpages.php:54
0.4498
30176624 10. SpecialPageFactory::getPage() /var/www/wiki/mediawiki/core/includes/SpecialPageFactory.php:372
0.4527
30373096 11. SpecialUploadStash->__construct() /var/www/wiki/mediawiki/core/includes/SpecialPageFactory.php:344
0.4861
33604352 12. FileRepo->getUploadStash() /var/www/wiki/mediawiki/core/includes/specials/SpecialUploadStash.php:52
0.4861
33604832 13. AutoLoader::autoload() /var/www/wiki/mediawiki/core/includes/AutoLoader.php:0
0.4898
33952264 14. require('/var/www/wiki/mediawiki/core/includes/upload/UploadStash.php') /var/www/wiki/mediawiki/core/includes/AutoLoader.php:1150
Change-Id: Iee2aae16df804f42cbae9c21c870781a08ad3850
Siebrand [Sun, 16 Sep 2012 17:03:11 +0000 (17:03 +0000)]
Merge "For languages without plural forms, use them from fallback language"
Siebrand [Sun, 16 Sep 2012 17:01:03 +0000 (17:01 +0000)]
Merge "Remove all custom plural rules and use CLDR plural rule system"
Federico Leva [Sun, 16 Sep 2012 13:45:32 +0000 (15:45 +0200)]
Update 'protectedinterface' and 'editinginterface'
They still lived in 2008.
* Link domain only as in 'allmessagestext': hardcoded setlang is not a good idea nowadays.
* "Consider using" didn't reflect reality.
* Clarify local vs. general; 'allmessagestext' still has a slightly different flavour.
* Copy sysop-only warning to 'protectedinterface' as well: normal users need it even more.
Change-Id: Ie588e683215a714fc8df6b898f4447862e7bd00c
Andrew Garrett [Sat, 15 Sep 2012 14:14:27 +0000 (16:14 +0200)]
LivePreview: bind a delegated click event for #wpPreview/Diff
This makes it work with edit forms added to the page after it is loaded,
e.g. by an extension (like LiquidThreads).
Change-Id: Ia9673a754c871baea82bb28ded7b19e2608d9d03
Aaron Schulz [Sun, 16 Sep 2012 08:03:36 +0000 (08:03 +0000)]
Merge "Tweaked various FileBackend docs."
Aaron Schulz [Sun, 16 Sep 2012 06:38:34 +0000 (23:38 -0700)]
Tweaked various FileBackend docs.
Change-Id: Ie64fa644802b393ecbbb4db4b026bc45511de2ac
Aaron Schulz [Sun, 16 Sep 2012 04:36:10 +0000 (04:36 +0000)]
Merge "Generated node count limit"
Nikerabbit [Sun, 16 Sep 2012 02:14:37 +0000 (02:14 +0000)]
Merge "Fix and update i18n QUnit test breakages"
Timo Tijhof [Fri, 14 Sep 2012 02:57:57 +0000 (04:57 +0200)]
Fix and update i18n QUnit test breakages
* mediawiki.language.test:
Was broken for a while because the setup/teardown set
language.data instead of language.data.values so each test
resulted in:
> TypeError: Cannot read property 'en' of undefined
Also stored the copy in the QUnit module context instead
of in the shared scope.
* mediawiki.cldr.test: Update QUnit pattern.
- Removed redundant Initial check
- '--' from test name
- test()'s expect count argument
- Superfluous comments, its just assert.equal it should go
without saying at this point through the unit tests what
the 2nd and 3rd are.
* mediawiki.cldr.test:
Fixed trailing comma in commented out code and whitespace
warnings.
Change-Id: I95de3bb551efd7993cfcfba4a5cc3f310e7d6805
Tim Starling [Sat, 15 Sep 2012 21:51:58 +0000 (14:51 -0700)]
Generated node count limit
To prevent large template DOM caches from sending servers into swap,
throw an exception when more than some number of DOM elements are
parsed. Unfortunately, it wasn't possible to return a normal error
message, because it broke PST and extractSections and corrupted the
article text. It's safer to refuse to save the edit, and we don't
have decent ways to do that short of throwing an exception.
Ideally we would like to have an upstream patch that hooks libxml to
allocate memory from PHP's request pool, then a fatal error would be
raised instead of swapping.
Change-Id: I4cb4f6fd313e1e0940b56cc5e586afd1bea9267a
Santhosh Thottingal [Sat, 15 Sep 2012 19:49:44 +0000 (12:49 -0700)]
For languages without plural forms, use them from fallback language
* Fixes Bug 40251 and this is alternate for I403a29e2
* This brings back the old mediawiki behavior for languages without
defined plural rules
* Add a test for hu, which had issue as per Bug 40251
Change-Id: I345c305134a62d43c9dfedc5243981d0e77e326d
Translation updater bot [Sat, 15 Sep 2012 19:48:04 +0000 (19:48 +0000)]
Localisation updates from translatewiki.net.
Change-Id: I934f969266263faeb63856ad11bab40df46940a5
Santhosh Thottingal [Sat, 15 Sep 2012 03:53:45 +0000 (20:53 -0700)]
Remove all custom plural rules and use CLDR plural rule system
We have a data driven plural rule evaluation system in core now.
See I1aa3b081
Added more tests
Change-Id: I4451fc7d434d9d29bb6ea36f0c0698fbe8dc4ff4
Marius Hoch [Sat, 15 Sep 2012 00:02:16 +0000 (02:02 +0200)]
(bug 40257) action=info no longer shows subpages where disabled
action=info no longer shows the number of sub pages if sub pages
are disabled in the current namespace (using $wgNamespacesWithSubpages).
Change-Id: Ide68fd89d7220ca6cd4fdf5d170e839c091bcb92
Aaron Schulz [Sat, 15 Sep 2012 18:04:44 +0000 (18:04 +0000)]
Merge "LockManger documentation cleanups."
Aaron Schulz [Sat, 15 Sep 2012 17:58:56 +0000 (10:58 -0700)]
LockManger documentation cleanups.
Change-Id: I472306586bd28a4e863afabc0e48d707850761a4
Niklas Laxström [Sat, 15 Sep 2012 16:55:02 +0000 (16:55 +0000)]
Fix spelling in nan date formats
http://translatewiki.net/wiki/Thread:Portal_talk:Nan/Misspelt_word_in_date_format
Change-Id: I41f31e7139fc297d4166e74488332b7ceb57a6c3