lhc/web/wiklou.git
11 years agoRemove completely broken test
Chad Horohoe [Wed, 26 Sep 2012 13:14:13 +0000 (09:14 -0400)]
Remove completely broken test

Change-Id: I6a9897a533b0d57dab9b65d6100e267a73c710ed

11 years agoMerge "Added doc note about getWikiId()."
Aaron Schulz [Wed, 26 Sep 2012 16:48:42 +0000 (16:48 +0000)]
Merge "Added doc note about getWikiId()."

11 years agoAdded doc note about getWikiId().
Aaron Schulz [Wed, 26 Sep 2012 16:45:21 +0000 (09:45 -0700)]
Added doc note about getWikiId().

Change-Id: I9c078baf84e0fead743e5315f698bd287ecf9f13

11 years agoWarn about all nested transactions when testing.
daniel [Wed, 26 Sep 2012 10:38:44 +0000 (12:38 +0200)]
Warn about all nested transactions when testing.

This change causes implicit commits caused by consecutive calls to
Database::begin() without intermediate calls to Database::commit() to
be more easily tracable. The changes introduced are:

* $this->doCommit( $fname ) is now called unconcitionally if there is
  an open transaction. Previously, it was not called if there were no
  write operations performed in that transaction.

* A warning about implicite commits (nested transactions) is now issued
  if write operations were performed OR ther DBO_TRX flag is NOT set. This
  causes any unmatched calls to begin() to trigger an error in CLI mode,
  notably also within unit tests.

* Implicit commits of non-write transactions in DBO_TRX mode can now be
  logged by enabling $wgDebugDBTRansactions.

Besides this, this change improves the documentation of the transaction
control functions.

The rationale is that implicite commits should be more easily tracable
in production and development.

Change-Id: I1e746322c36a7c53b545bfe78e252a13cce44ea1

11 years ago(bug 40352) fixDoubleRedirects.php: Support interwiki redirects
Timo Tijhof [Wed, 19 Sep 2012 13:32:30 +0000 (15:32 +0200)]
(bug 40352) fixDoubleRedirects.php: Support interwiki redirects

While at it, prettified code a bit and added list to output.

Change-Id: I989b5742ad46a9dd8c928a4ff5f76c869924730e

11 years ago(bug 35167) Allow <span dir="ltr|rtl"> in toc items
Amir E. Aharoni [Mon, 3 Sep 2012 08:28:08 +0000 (11:28 +0300)]
(bug 35167) Allow <span dir="ltr|rtl"> in toc items

Added parser tests accordingly.

Change-Id: Ia77f24f53e77b0b9d6112218c93ea15fdefac5de

11 years agoPreemptively add css3's image() to our css sanitizer.
Daniel Friesen [Fri, 21 Sep 2012 16:51:08 +0000 (09:51 -0700)]
Preemptively add css3's image() to our css sanitizer.

- Adding this now even though no browser supports it so that when one does it doesn't become a way to bypass our url() filter.
- Including missing tests for all of our insecure input filters.
- Also make sure that vendor prefixed versions like -webkit-image() are caught because most browsers are probably going to go and implement a vendor prefixed version first.

Change-Id: If73aa98b8accdb7621b0e4ff0615b61d530fa547

11 years agoFixing bug where end limit would not be calculated
mwalker [Mon, 24 Sep 2012 23:35:24 +0000 (16:35 -0700)]
Fixing bug where end limit would not be calculated

In the pager object, if the query was constructed
such that the index was a fully qualified field then
the 'past the end' index reference would not get
computed.

This is because $mIndexField stores the FQ field name
but $mPastTheEndRow is indexed on the non FQ name.
Therefore a warning would be generated due to a non
existent array key.

Change-Id: I52e1cbc8f7dad07de1ba5ba3bdfa2d107dfb4d93

11 years agoMerge "Change case to use the canonical names."
Nikerabbit [Tue, 25 Sep 2012 23:33:49 +0000 (23:33 +0000)]
Merge "Change case to use the canonical names."

11 years agoMerge "Added several template tests to stress Parsoid template RT-ing."
GWicke [Tue, 25 Sep 2012 21:42:08 +0000 (21:42 +0000)]
Merge "Added several template tests to stress Parsoid template RT-ing."

11 years agoAdded several template tests to stress Parsoid template RT-ing.
Subramanya Sastry [Tue, 25 Sep 2012 18:39:44 +0000 (13:39 -0500)]
Added several template tests to stress Parsoid template RT-ing.

Change-Id: I294e5566b00bba260046f403b247d4d5d169b14f

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 25 Sep 2012 19:39:42 +0000 (19:39 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ia4ad3fe20ec69c845fef2b4a63eb25e37fa5eedf

11 years agoMerge "mediawiki.action.edit.preview: New module replacing preview.js"
Trevor Parscal [Tue, 25 Sep 2012 18:49:23 +0000 (18:49 +0000)]
Merge "mediawiki.action.edit.preview: New module replacing preview.js"

11 years agoMerge "(bug 40353) SpecialDoubleRedirect: Fix for interwiki redirects"
Aaron Schulz [Tue, 25 Sep 2012 17:35:47 +0000 (17:35 +0000)]
Merge "(bug 40353) SpecialDoubleRedirect: Fix for interwiki redirects"

11 years agoMerge "improving comment re DateFormatter.php"
Kaldari [Mon, 24 Sep 2012 23:21:19 +0000 (23:21 +0000)]
Merge "improving comment re DateFormatter.php"

11 years agoimproving comment re DateFormatter.php
Kaldari [Mon, 24 Sep 2012 23:19:30 +0000 (16:19 -0700)]
improving comment re DateFormatter.php

Change-Id: Ida5967c69792792b653390752da6536b55fbd0a5

11 years agoMerge "[FileBackend] Added FileBackend::getWikiID() function."
Catrope [Mon, 24 Sep 2012 22:45:00 +0000 (22:45 +0000)]
Merge "[FileBackend] Added FileBackend::getWikiID() function."

11 years ago[FileBackend] Added FileBackend::getWikiID() function.
Aaron [Mon, 24 Sep 2012 22:38:37 +0000 (15:38 -0700)]
[FileBackend] Added FileBackend::getWikiID() function.

Change-Id: Idd9be6c72d494fad37ac62e274c1e115ff97cdec

11 years agoMerge "[FileRepo] Throw an exception if a storage key is invalid."
Demon [Mon, 24 Sep 2012 22:00:38 +0000 (22:00 +0000)]
Merge "[FileRepo] Throw an exception if a storage key is invalid."

11 years agoMerge "Limit bad transactions warnings to those involving possible writes."
Catrope [Mon, 24 Sep 2012 21:57:42 +0000 (21:57 +0000)]
Merge "Limit bad transactions warnings to those involving possible writes."

11 years agoMerge "Replace RLE/LRE/PDF with RLM/LRM."
Nikerabbit [Mon, 24 Sep 2012 21:22:38 +0000 (21:22 +0000)]
Merge "Replace RLE/LRE/PDF with RLM/LRM."

11 years agoAdd an API log
Tim Starling [Wed, 19 Sep 2012 10:07:48 +0000 (20:07 +1000)]
Add an API log

During incident response, it was not possible to tell what API modules
were being requested and by whom, since the action parameter is often
posted. This change logs the API parameters whether they are posted or
sent in the query string.

I did try to get the API parameters from the module, but that turns out
to be difficult. Modules create submodules (generators, page sets) as
local variables, which are created in a procedural style and destroyed
before logging is done, so there is no easy way to query them for
parameter lists after execution completes.

In ApiOptionsTest, use a real ApiMain object like all the other API test
cases, rather than a mock object. Otherwise the test fails.

Change-Id: Idc786007fe61811d1874f29b5ce4762dd97b1847

11 years agoReplace RLE/LRE/PDF with RLM/LRM.
amire80 [Mon, 24 Sep 2012 20:17:27 +0000 (13:17 -0700)]
Replace RLE/LRE/PDF with RLM/LRM.

The main purpose of these control characters is to ensure the correct display
of parentheses in a mixed rtl/ltr environment. Putting RLM/LRM in the end is
enough for doing this and prevents problems with capitalization (like
with Norsk).

Change-Id: I4698bd675802125e42cc9200bd1f7a86be626631

11 years agoMerge "Add a couple more to .gitignore"
Nikerabbit [Mon, 24 Sep 2012 19:20:38 +0000 (19:20 +0000)]
Merge "Add a couple more to .gitignore"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 24 Sep 2012 19:05:01 +0000 (19:05 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ife4cc0ffee41ebb83329e5f6b6f1d018ce6338fc

11 years agoAdd a couple more to .gitignore
Chad Horohoe [Mon, 24 Sep 2012 18:00:00 +0000 (14:00 -0400)]
Add a couple more to .gitignore

Change-Id: Ibe72feb189e8f709c9f0ffd113bfcb926a561e8c

11 years agostylize one line method in includes/specials folder
umherirrender [Mon, 24 Sep 2012 17:44:57 +0000 (19:44 +0200)]
stylize one line method in includes/specials folder

Many of the isExpensive/isSyndicated method not written with new lines,
which are added with this change

Change-Id: I9b3a57035cdc718a8891a2428f9bed777a5f4fce

11 years agoMerge changes I7057c2e0,Id1fc9c87
Siebrand [Mon, 24 Sep 2012 17:34:07 +0000 (17:34 +0000)]
Merge changes I7057c2e0,Id1fc9c87

* changes:
  Remove some PHP 5.2 cruft (we already bailed for < 5.3.2)
  Remove some PHP 5.1 cruft (DateTime has existed since 5.2.0)

11 years agoMerge "Remove special page alias for non existing Special:RevisionMove"
Siebrand [Mon, 24 Sep 2012 17:27:54 +0000 (17:27 +0000)]
Merge "Remove special page alias for non existing Special:RevisionMove"

11 years agoDo not set mIncludable of SpecialPage direct
umherirrender [Mon, 24 Sep 2012 17:16:37 +0000 (19:16 +0200)]
Do not set mIncludable of SpecialPage direct

Override isIncludable instead or use the super class, which does it

Change-Id: If031fafa1eac82d35cf4af9aa1f84a3393d8008a

11 years agoMerge "Clear token cache when resetting session."
Aaron Schulz [Mon, 24 Sep 2012 16:51:35 +0000 (16:51 +0000)]
Merge "Clear token cache when resetting session."

11 years agoRemove some PHP 5.2 cruft (we already bailed for < 5.3.2)
Chad Horohoe [Mon, 24 Sep 2012 14:43:30 +0000 (10:43 -0400)]
Remove some PHP 5.2 cruft (we already bailed for < 5.3.2)

Change-Id: I7057c2e0f389095b9d6191e6fdee0c6ff2f97bd8

11 years agoRemove some PHP 5.1 cruft (DateTime has existed since 5.2.0)
Chad Horohoe [Mon, 24 Sep 2012 14:03:30 +0000 (10:03 -0400)]
Remove some PHP 5.1 cruft (DateTime has existed since 5.2.0)

Change-Id: Id1fc9c874906dcc44abab5b557c8138e6b7ecc50

11 years agoMerge "Fix invalid HTML in design doc"
IAlex [Mon, 24 Sep 2012 13:27:19 +0000 (13:27 +0000)]
Merge "Fix invalid HTML in design doc"

11 years agoSwitch on expected value, since the actual one can obviously be wrong
jeroendedauw [Mon, 24 Sep 2012 13:14:28 +0000 (15:14 +0200)]
Switch on expected value, since the actual one can obviously be wrong

This gets rid of confusing error messages pointing to the provided type being invalid

Change-Id: Id283ef6e8fa6c3f18bc9ef3b740e8ec4bd181e3a

11 years agoClear token cache when resetting session.
daniel [Mon, 24 Sep 2012 13:07:36 +0000 (15:07 +0200)]
Clear token cache when resetting session.

ApiTestCase resets global session data in setup, invalidating any existing cookies.
ApiQueryInfo caches all tokens, these need to be cleared out so tokens are re-generated
to match the fresh session.

Until now, individual tests have been doing that, but there's no not to do this per
default.

Change-Id: Icefa362190c2e7d87d09bda30079255741824f55

11 years agoFix invalid HTML in design doc
Chad Horohoe [Mon, 24 Sep 2012 12:59:31 +0000 (08:59 -0400)]
Fix invalid HTML in design doc

Change-Id: Ibb664c22dc54109b113a51b4385e5564c2b80ce1

11 years agoRemove special page alias for non existing Special:RevisionMove
umherirrender [Mon, 24 Sep 2012 10:58:03 +0000 (12:58 +0200)]
Remove special page alias for non existing Special:RevisionMove

Followup r86155

Change-Id: I4153cfcb3f2da1eecad46956265c3854c654bd3a

11 years agoMerge "Update jStorage from upstream v0.1.7 to v0.3.0"
Krinkle [Mon, 24 Sep 2012 01:39:29 +0000 (01:39 +0000)]
Merge "Update jStorage from upstream v0.1.7 to v0.3.0"

11 years agoUpdate jStorage from upstream v0.1.7 to v0.3.0
Marius Hoch [Sun, 23 Sep 2012 17:58:36 +0000 (19:58 +0200)]
Update jStorage from upstream v0.1.7 to v0.3.0

Upstream:
* src: https://raw.github.com/andris9/jStorage/v0.3.0/jstorage.js
* log:
  https://github.com/andris9/jStorage/compare/v0.1.6.1...v0.3.0

Did not maintain the modifications made as they were not
necessary (only stylistic), and jStorage is already listed in
the .jshintignore file.

Change-Id: I9c92c47ef165157a40412100e9e532bce36fc638

11 years agoSpell the name of Hausa in the Latin script
amire80 [Sun, 23 Sep 2012 22:54:33 +0000 (15:54 -0700)]
Spell the name of Hausa in the Latin script

The actual Wikipedia in this language is written in the Latin script,
so the name in the software must reflect it. If the Arabic variant
will be used, the Arabic name can be added back.

Change-Id: Id2436a40e3cbe83c41e28035abb4ae2e331cd00a

11 years agoMerge "(bug 29374) Enabled $wgVectorUseSimpleSearch by default."
Nikerabbit [Sun, 23 Sep 2012 22:55:34 +0000 (22:55 +0000)]
Merge "(bug 29374) Enabled $wgVectorUseSimpleSearch by default."

11 years agoMerge "Remove pass-by-reference from WikiExporter constructor"
IAlex [Sun, 23 Sep 2012 20:56:50 +0000 (20:56 +0000)]
Merge "Remove pass-by-reference from WikiExporter constructor"

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Sun, 23 Sep 2012 19:09:12 +0000 (19:09 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Don't parse the section summary when creating a page by adding a new section."
Siebrand [Sun, 23 Sep 2012 19:03:38 +0000 (19:03 +0000)]
Merge "Don't parse the section summary when creating a page by adding a new section."

11 years agoMerge "Follow-up Ifd700826 (60d119c), address a fixme in a re-enabled test."
Siebrand [Sun, 23 Sep 2012 19:01:20 +0000 (19:01 +0000)]
Merge "Follow-up Ifd700826 (60d119c), address a fixme in a re-enabled test."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 23 Sep 2012 18:59:42 +0000 (18:59 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ic47a081c0071b926ada2b4f46b2d6e57841e9b23

11 years agoMerge "(bug 35693) ApiQueryImageInfo now suppresses errors when unserializing metadata"
Siebrand [Sun, 23 Sep 2012 18:55:37 +0000 (18:55 +0000)]
Merge "(bug 35693) ApiQueryImageInfo now suppresses errors when unserializing metadata"

11 years agoRemove pass-by-reference from WikiExporter constructor
umherirrender [Sun, 23 Sep 2012 18:53:30 +0000 (20:53 +0200)]
Remove pass-by-reference from WikiExporter constructor

The pass-by-reference is a left over from PHP 4 times.

This avoids:
Strict Standards: Only variables should be passed by reference in
\includes\api\ApiQuery.php on line 523

Change-Id: I8c9afcd9f7631bbb0bdb9ea608339bbbd5726a26

11 years ago(bug 35693) ApiQueryImageInfo now suppresses errors when unserializing
btongminh [Sun, 23 Sep 2012 18:52:00 +0000 (20:52 +0200)]
(bug 35693) ApiQueryImageInfo now suppresses errors when unserializing
metadata

Change-Id: I7c9649b54a9d1d8f8b79beff7435a32860b80a61

11 years agoFollow-up Ifd700826 (60d119c), address a fixme in a re-enabled test.
Alexandre Emsenhuber [Sun, 23 Sep 2012 08:15:20 +0000 (10:15 +0200)]
Follow-up Ifd700826 (60d119c), address a fixme in a re-enabled test.

Make the "Date menu next month is 11 months ago" also work when the
current month is december.

Change-Id: Ie7b998bf962abbb3e2f789a3d8a9af8c52e7feaa

11 years agoMerge "Fix broken tests for Xml."
IAlex [Sun, 23 Sep 2012 08:09:16 +0000 (08:09 +0000)]
Merge "Fix broken tests for Xml."

11 years agoMerge "Add User to Title::userCan calls in api"
IAlex [Sun, 23 Sep 2012 05:22:42 +0000 (05:22 +0000)]
Merge "Add User to Title::userCan calls in api"

11 years ago(bug 29374) Enabled $wgVectorUseSimpleSearch by default.
Timo Tijhof [Sun, 23 Sep 2012 02:38:44 +0000 (04:38 +0200)]
(bug 29374) Enabled $wgVectorUseSimpleSearch by default.

Change-Id: I418cd5424c26bbd6bc9df455557c3904fa55ab2e

11 years agoSiteStats: use field names in select instead of *
umherirrender [Sat, 22 Sep 2012 22:42:34 +0000 (00:42 +0200)]
SiteStats: use field names in select instead of *

Change-Id: Id8eefdf5fb320a920b7d1c725e0d250f9b6125c1

11 years agoMerge "Reenable testStoredFunctions() in DatabaseTest.php."
Aaron Schulz [Sat, 22 Sep 2012 20:06:51 +0000 (20:06 +0000)]
Merge "Reenable testStoredFunctions() in DatabaseTest.php."

11 years agoAdded "parallelize" option to file performance test script.
Aaron Schulz [Sat, 22 Sep 2012 19:10:41 +0000 (12:10 -0700)]
Added "parallelize" option to file performance test script.

Change-Id: I6f32b5964c44339d0fe192f9c25edee484de9dfa

11 years agoReenable testStoredFunctions() in DatabaseTest.php.
Tim Landscheidt [Sat, 22 Sep 2012 18:14:22 +0000 (18:14 +0000)]
Reenable testStoredFunctions() in DatabaseTest.php.

Change-Id: I85192a326f8e83d433f69b296431cae57628e78f

11 years agoAdd User to Title::userCan calls in api
umherirrender [Sat, 22 Sep 2012 11:33:33 +0000 (13:33 +0200)]
Add User to Title::userCan calls in api

Change-Id: I86ee1398abe4a790796d61aba1e1739bc55e565b

11 years agoLimit bad transactions warnings to those involving possible writes.
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

11 years agoMerge "Moved begin() since the lock() function may cause a BEGIN."
IAlex [Sat, 22 Sep 2012 07:12:10 +0000 (07:12 +0000)]
Merge "Moved begin() since the lock() function may cause a BEGIN."

11 years agoMerge "Defer user stats update like the others."
IAlex [Sat, 22 Sep 2012 07:03:40 +0000 (07:03 +0000)]
Merge "Defer user stats update like the others."

11 years agoFix broken tests for Xml.
Tim Landscheidt [Sat, 22 Sep 2012 02:10:56 +0000 (02:10 +0000)]
Fix broken tests for Xml.

Change-Id: Ifd7008269cc960004676ba79449911d63476615c

11 years agoMerge "Document that setSubtitle() and addSubtitle() need safe HTML"
Nikerabbit [Fri, 21 Sep 2012 23:43:04 +0000 (23:43 +0000)]
Merge "Document that setSubtitle() and addSubtitle() need safe HTML"

11 years agoMerge "Convert width HTML attribute in tables into inline CSS"
Siebrand [Fri, 21 Sep 2012 23:10:40 +0000 (23:10 +0000)]
Merge "Convert width HTML attribute in tables into inline CSS"

11 years agoMoved begin() since the lock() function may cause a BEGIN.
Aaron [Fri, 21 Sep 2012 23:00:02 +0000 (16:00 -0700)]
Moved begin() since the lock() function may cause a BEGIN.

Change-Id: Ib5f7d6b7464a27d08de12c63495374319ac09dfe

11 years agoMerge "Don't send COMMIT if not in a transaction."
Catrope [Fri, 21 Sep 2012 22:51:05 +0000 (22:51 +0000)]
Merge "Don't send COMMIT if not in a transaction."

11 years agoDefer user stats update like the others.
Aaron [Fri, 21 Sep 2012 22:50:26 +0000 (15:50 -0700)]
Defer user stats update like the others.

Change-Id: I6092f383d2e4a5f9a2457dbc4b0aa8a1f3c2829a

11 years agoMerge "Remove all custom plural rules and use CLDR plural rule system"
Siebrand [Fri, 21 Sep 2012 22:45:42 +0000 (22:45 +0000)]
Merge "Remove all custom plural rules and use CLDR plural rule system"

11 years agoDocument that setSubtitle() and addSubtitle() need safe HTML
Siebrand Mazeland [Fri, 21 Sep 2012 22:30:28 +0000 (15:30 -0700)]
Document that setSubtitle() and addSubtitle() need safe HTML

Change-Id: Id5431fc20fb9e9cc755e6a3c393146888a5b666e

11 years agoDon't send COMMIT if not in a transaction.
Aaron [Fri, 21 Sep 2012 22:27:10 +0000 (15:27 -0700)]
Don't send COMMIT if not in a transaction.

Change-Id: Ifffbf703b15cd875feda1514d3c0d488b8665b66

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 21 Sep 2012 20:48:08 +0000 (20:48 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I5debd374244a7a7047b1197d75bc335cd11780cf

11 years agoConvert width HTML attribute in tables into inline CSS
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

11 years agoAdded @since tags
jeroendedauw [Fri, 21 Sep 2012 19:00:34 +0000 (21:00 +0200)]
Added @since tags

Change-Id: Ibfaa5efcb40f4087c4333e9f83b717fc1877b9a5

11 years agoMerge "Improve documentation of maintenance scripts."
Siebrand [Fri, 21 Sep 2012 18:46:55 +0000 (18:46 +0000)]
Merge "Improve documentation of maintenance scripts."

11 years agoP-wrapping tests to spec. existing behavior to assist Parsoid.
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

11 years agomediawiki.action.edit.preview: New module replacing preview.js
Timo Tijhof [Mon, 17 Sep 2012 17:35:04 +0000 (19:35 +0200)]
mediawiki.action.edit.preview: New module replacing preview.js

With all the recent improvements, it's time this module got
promoted away from legacy. Its no longer just an old script to
that provides preview functionality and is minimally
maintained within "legacy", its reborn!

Minor clean up follows-up:
e75054174c944d8a78a2c2822abe2fe161f7d6ad
b12dc64a1198f6b094a5a60307412ff91f0bbf49

Change-Id: I85ca97a1d8df25a09baad78030d6da379a06c0f1

11 years agoDo not use Checkboxes for user without deletelogentry in log
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

11 years agoImprove documentation of maintenance scripts.
Alexandre Emsenhuber [Thu, 20 Sep 2012 20:49:55 +0000 (22:49 +0200)]
Improve documentation of maintenance scripts.

Change-Id: Id86d06d3c22a69f7e378bf6e75b5c78ef8b47c51

11 years agoMerge "(bug 40415) Add missing dependencies for some modules"
Krinkle [Fri, 21 Sep 2012 03:11:19 +0000 (03:11 +0000)]
Merge "(bug 40415) Add missing dependencies for some modules"

11 years ago(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

11 years agoMerge "LivePreview: bind a delegated click event for #wpPreview/Diff"
Krinkle [Fri, 21 Sep 2012 01:19:15 +0000 (01:19 +0000)]
Merge "LivePreview: bind a delegated click event for #wpPreview/Diff"

11 years ago[FileRepo] Throw an exception if a storage key is invalid.
Aaron [Thu, 20 Sep 2012 20:47:15 +0000 (13:47 -0700)]
[FileRepo] Throw an exception if a storage key is invalid.

Change-Id: Ie479d940dddcf7a9eca5d68a76fbe3fa70a6d4d7

11 years ago[FileBackend] Fallback to $wgMemc for swift auth caching in cli mode.
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

11 years agoRemove all custom plural rules and use CLDR plural rule system
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

11 years agoMerge "Worked around hash path inconsistency to unbreak stash file thumbs."
Aaron [Thu, 20 Sep 2012 16:59:09 +0000 (16:59 +0000)]
Merge "Worked around hash path inconsistency to unbreak stash file thumbs."

11 years agoMerge "zhtable: Add tradphrase: 準軍事"
Siebrand [Thu, 20 Sep 2012 16:55:29 +0000 (16:55 +0000)]
Merge "zhtable: Add tradphrase: 準軍事"

11 years agozhtable: Add tradphrase: 準軍事
Liangent [Thu, 20 Sep 2012 14:49:24 +0000 (22:49 +0800)]
zhtable: Add tradphrase: 準軍事

Change-Id: I61968fea5089b7c5b159ba12ef8ea4a71b5b9d83

11 years agoMerge "(bug 40380) inexistent language files are loaded"
Hashar [Thu, 20 Sep 2012 10:02:32 +0000 (10:02 +0000)]
Merge "(bug 40380) inexistent language files are loaded"

11 years ago(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.

11 years agoMore documentation for node count limit
Tim Starling [Thu, 20 Sep 2012 06:04:54 +0000 (16:04 +1000)]
More documentation for node count limit

Change-Id: I6b35ee3ee6b9f8a84e997bbf09aa72c807caf71e

11 years agoLog page titles that are more than 10% of the node count limit
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

11 years agoDon't send empty Vary headers.
Aaron Schulz [Thu, 20 Sep 2012 04:18:19 +0000 (21:18 -0700)]
Don't send empty Vary headers.

Change-Id: I0b6bd7ab24323782302c28cf1438dce62f5b8c5a

11 years agoMerge "Trigger warning for bad use of transactions."
Aaron Schulz [Thu, 20 Sep 2012 04:06:20 +0000 (04:06 +0000)]
Merge "Trigger warning for bad use of transactions."

11 years agoTrigger 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

11 years agoWorked around hash path inconsistency to unbreak stash file thumbs.
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

11 years agoMerge "Fix docs."
Nikerabbit [Thu, 20 Sep 2012 00:08:07 +0000 (00:08 +0000)]
Merge "Fix docs."

11 years agoFix docs.
Siebrand Mazeland [Thu, 20 Sep 2012 00:05:44 +0000 (17:05 -0700)]
Fix docs.

Change-Id: Ib6a5e5440c40ed6dab95affa7ed8ebe8acc13299

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 19 Sep 2012 20:37:19 +0000 (20:37 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I8aefb49b7778a482655e0006f7e943f1e540d08e

11 years agoDon't parse the section summary when creating a page by adding a new section.
Alexandre Emsenhuber [Wed, 19 Sep 2012 19:29:11 +0000 (21:29 +0200)]
Don't parse the section summary when creating a page by adding a new section.

Related to I9a56b7c6 (9e6aba6). Fix for Ifa80db1d (8d4913e).

Change-Id: I8772461451a4239c16a5450cccaf1e7696a3f740