lhc/web/wiklou.git
11 years agotests: Wraper to set/disable $wgHTML5 in HtmlTest
Antoine Musso [Thu, 30 Aug 2012 09:56:21 +0000 (11:56 +0200)]
tests: Wraper to set/disable $wgHTML5 in HtmlTest

Would let us easily set $wgHtml5 in our tests.

Change-Id: Iacf38c2961cbbb9cc58cd45bba34f10ee5688605

11 years agoMerge "Add cache/ to .gitignore"
Nikerabbit [Thu, 30 Aug 2012 07:54:27 +0000 (07:54 +0000)]
Merge "Add cache/ to .gitignore"

11 years agoMerge "Added explicit DB flags for Revision loading calls."
Catrope [Thu, 30 Aug 2012 05:21:32 +0000 (05:21 +0000)]
Merge "Added explicit DB flags for Revision loading calls."

11 years agoMerge "[FileBackend] Made getLocalCopy() handle long file names better."
Catrope [Thu, 30 Aug 2012 05:18:55 +0000 (05:18 +0000)]
Merge "[FileBackend] Made getLocalCopy() handle long file names better."

11 years ago[FileBackend] Made getLocalCopy() handle long file names better.
Aaron Schulz [Thu, 30 Aug 2012 05:06:16 +0000 (22:06 -0700)]
[FileBackend] Made getLocalCopy() handle long file names better.

Change-Id: I54d7c610dba8cb3e7bc0ef4d4bfbb2327e63db07

11 years agoAdded explicit DB flags for Revision loading calls.
Aaron Schulz [Thu, 30 Aug 2012 03:04:30 +0000 (20:04 -0700)]
Added explicit DB flags for Revision loading calls.

Change-Id: Ie90d4197ad7a16009c96273eeae1a658678a8200

11 years agoBug 20595 - Fixed incr()/decr() functions for some caches.
Vitaliy Filippov [Fri, 25 May 2012 10:41:53 +0000 (14:41 +0400)]
Bug 20595 - Fixed incr()/decr() functions for some caches.

* Preserve TTL in objectcache incr() method for APC, XCache and DBA.
  Do not serialize numeric values, since it breaks the counters.
* Also gave some DBABagOStuff functions explicit visibility.

Change-Id: I13856832f418c843afc8e42a6d77686331f6cb41

11 years agoAdd cache/ to .gitignore
Timo Tijhof [Wed, 29 Aug 2012 22:23:47 +0000 (00:23 +0200)]
Add cache/ to .gitignore

On fenari we've always got:

> Untracked files:
>   (use "git add <file>..." to include in what will be committed)
>
> cache/l10n/
> cache/message-timestamp

And on my localhost also several files and stuff extensions have
put in there. Might as well ignore cache entirely instead of
just .cdb files.

Change-Id: I3c594a0f746341687c2a35eed5dc2c2b91e68265

11 years agoMerge "(Bug 38606) Set log_page on uploads to the page_id of its description page"
Kaldari [Wed, 29 Aug 2012 22:00:52 +0000 (22:00 +0000)]
Merge "(Bug 38606) Set log_page on uploads to the page_id of its description page"

11 years ago(Bug 38606) Set log_page on uploads to the page_id of its description page
Platonides [Wed, 29 Aug 2012 21:23:27 +0000 (23:23 +0200)]
(Bug 38606) Set log_page on uploads to the page_id of its description page

This change updates the log_page in a second step after performing
the edit, which is not terribly elegant, but is very robust.

Change-Id: I9015230df772d049b2879fb34914c68183f1da05

11 years agoMove cancel link out of editHelp span and wrap in 'cancelLink' span.
Rob Moen [Wed, 29 Aug 2012 21:20:02 +0000 (14:20 -0700)]
Move cancel link out of editHelp span and wrap in 'cancelLink' span.

Change-Id: I203a3eaf2f171bba81e11806e3632c2bc012458c

11 years agoMerge "Revert "Revert "Update jQuery UI to 1.8.23"""
Krinkle [Wed, 29 Aug 2012 20:56:54 +0000 (20:56 +0000)]
Merge "Revert "Revert "Update jQuery UI to 1.8.23"""

11 years agoRevert "Revert "Update jQuery UI to 1.8.23""
Krinkle [Wed, 29 Aug 2012 20:56:43 +0000 (20:56 +0000)]
Revert "Revert "Update jQuery UI to 1.8.23""

Problems solved.

This reverts commit 731219d5d1c82eb199eb9808948740555d2ebe14

11 years agoMerge "Added post-commit callback support to DB classes."
Catrope [Wed, 29 Aug 2012 20:53:04 +0000 (20:53 +0000)]
Merge "Added post-commit callback support to DB classes."

11 years agoMerge "(bug 39771) Regression in Ie349afa5 broke plurals in JavaScript"
Siebrand [Wed, 29 Aug 2012 20:40:28 +0000 (20:40 +0000)]
Merge "(bug 39771) Regression in Ie349afa5 broke plurals in JavaScript"

11 years agoMerge "Rewrite the ThumbnailImage constructor to take parameter array"
Aaron Schulz [Wed, 29 Aug 2012 20:39:18 +0000 (20:39 +0000)]
Merge "Rewrite the ThumbnailImage constructor to take parameter array"

11 years ago(bug 39771) Regression in Ie349afa5 broke plurals in JavaScript
Niklas Laxström [Wed, 29 Aug 2012 20:30:15 +0000 (20:30 +0000)]
(bug 39771) Regression in Ie349afa5 broke plurals in JavaScript

Change-Id: Iee4e3bdca0e72292d6d431703f0f589653f68f64

11 years agoRewrite the ThumbnailImage constructor to take parameter array
jarry1250 [Wed, 29 Aug 2012 20:09:36 +0000 (21:09 +0100)]
Rewrite the ThumbnailImage constructor to take parameter array

This is required for a full resolution of bug #32987. Per Brion's
commentary on that bug, for the long-term preservation of
sanity we can't just keep adding arguments to the constructor
whenever a new feature is added.

Instead, we can have an array of optional parameters. At the moment,
this situation is a bit iffy for width and height: we should really
specify either a default height / width or error if one is not found.
I'm open to ideas on that, but it's not a big deal since nothing
uses the new syntax yet. When that is agreed, I'll convert all usage
in core and maybe some extensions too.

Change-Id: I116f71aeb90ef7c786f0874b150c7bcca527e106

11 years agoAdded post-commit callback support to DB classes.
Aaron [Wed, 29 Aug 2012 19:32:47 +0000 (12:32 -0700)]
Added post-commit callback support to DB classes.

* This can allow for autocommit job queue insertion without
  breaking existing transactions (which currently happens since
  job queue insert does begin/commit).

Change-Id: I021d4a73635168c05bbc1068912c2c6dbdf9cdc4

11 years agoFix wfGetCaller() and wfFormatStackFrame() documentation
Alexandre Emsenhuber [Wed, 29 Aug 2012 19:36:37 +0000 (21:36 +0200)]
Fix wfGetCaller() and wfFormatStackFrame() documentation

These two functions cannot return a boolean.

Also simplified wfGetCaller() to not use the $caller local
variable which is totally useless in that case.

Change-Id: I81707a8292afc1829921b58cdaae81b3147ee3cb

11 years agoMerge "Move copyright warning to directly above buttons."
Catrope [Wed, 29 Aug 2012 19:30:17 +0000 (19:30 +0000)]
Merge "Move copyright warning to directly above buttons."

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Wed, 29 Aug 2012 19:25:50 +0000 (19:25 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Setting up a way to have uploading by URL, but not on Special:Upload"
Catrope [Wed, 29 Aug 2012 19:25:13 +0000 (19:25 +0000)]
Merge "Setting up a way to have uploading by URL, but not on Special:Upload"

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

Change-Id: I0596ce4ee5480cce947a1c8c89e2acc46c182dcd

11 years agoMerge "Revert "Revert "jQuery 1.8"""
Siebrand [Wed, 29 Aug 2012 17:48:44 +0000 (17:48 +0000)]
Merge "Revert "Revert "jQuery 1.8"""

11 years agoMerge "New hook ApiMain::onException"
awjrichards [Wed, 29 Aug 2012 16:54:18 +0000 (16:54 +0000)]
Merge "New hook ApiMain::onException"

11 years agoNew hook ApiMain::onException
Max Semenik [Fri, 24 Aug 2012 23:57:54 +0000 (03:57 +0400)]
New hook ApiMain::onException

Allows custom logging of API errors

Change-Id: If8841c33998dff96448a7eb8dbe95d68119e068f

11 years agoMerge "Fixed fallback behaviour for plural rules"
Siebrand [Wed, 29 Aug 2012 16:16:57 +0000 (16:16 +0000)]
Merge "Fixed fallback behaviour for plural rules"

11 years agoMerge "(bug 38556) Add header and footer messages to MediaWiki's info action"
Siebrand [Wed, 29 Aug 2012 15:12:59 +0000 (15:12 +0000)]
Merge "(bug 38556) Add header and footer messages to MediaWiki's info action"

11 years ago(bug 38556) Add header and footer messages to MediaWiki's info action
madman [Mon, 27 Aug 2012 15:39:03 +0000 (15:39 +0000)]
(bug 38556) Add header and footer messages to MediaWiki's info action

Change-Id: I5d23d83dabc1f642d2b96a17aabd6b6fc9ece399

11 years agoraise filerepo tests timeout to 10sec
Antoine Musso [Wed, 29 Aug 2012 15:01:02 +0000 (17:01 +0200)]
raise filerepo tests timeout to 10sec

'@group medium' instructs PHPUnit to wait up to 10 seconds for the test
to complete. That would save us from false positive caused by high disk
I/O on the continuous integration server.

Change-Id: Id11c3ed1879705f806d262dc8090ef2fb432ed36

11 years agoRevert "Revert "jQuery 1.8""
Krinkle [Wed, 29 Aug 2012 14:10:16 +0000 (14:10 +0000)]
Revert "Revert "jQuery 1.8""

This reverts commit 4dd2c82ff4b2178620cb7b3ce01db713101ca2eb

As mentioned (on bug 39572) in the mean time, this was not related to the jQuery update. The problems were related to abuse of jsMsg to prepend arbitrary content to the top of the page.

11 years agoMerge "Use ImageGallery directly in SpecialUpload::getDupeWarning()"
Siebrand [Wed, 29 Aug 2012 13:40:22 +0000 (13:40 +0000)]
Merge "Use ImageGallery directly in SpecialUpload::getDupeWarning()"

11 years agoFixed fallback behaviour for plural rules
Tim Starling [Tue, 28 Aug 2012 05:54:40 +0000 (15:54 +1000)]
Fixed fallback behaviour for plural rules

Fallbacks didn't work at all for the new plural rule system. I fixed it
by moving the getPluralRules() and getCompiledPluralRules() calls near
to the readPHPFile() calls, before merging is done. Then I factored out
the resulting code to readSourceFilesAndRegisterDeps().

* Removed pluralRules from mergeableMapKeys, it isn't one
* Added compiledPluralRules to allKeys so that it will be merged
* When a language is not present in the CLDR XML files, return null from
  getPluralRules() and getCompiledPluralRules() so that the fallback
  rules won't be overridden with an empty array. Normalised it back to
  an empty array in the unlikely event that there is no plural data in
  the fallback sequence at all, even in English.
* Fixed private function, "protected" is the way to say private here.

Change-Id: I3a008ef7f6ed7aaa15ad25ad796f7a2b8f827fa2

11 years agoMove copyright warning to directly above buttons.
Rob Moen [Wed, 29 Aug 2012 01:50:15 +0000 (18:50 -0700)]
Move copyright warning to directly above buttons.

Please see:
http://www.mediawiki.org/wiki/Micro_Design_Improvements

Change-Id: Ida02149880aae00f790cb414ae3d632aac351651

11 years agoMerge "[FileBackend] Added preloadCache() so callers can trigger cache getMulti()."
Catrope [Wed, 29 Aug 2012 00:13:57 +0000 (00:13 +0000)]
Merge "[FileBackend] Added preloadCache() so callers can trigger cache getMulti()."

11 years ago[FileBackend] Added preloadCache() so callers can trigger cache getMulti().
Aaron Schulz [Fri, 24 Aug 2012 06:17:16 +0000 (23:17 -0700)]
[FileBackend] Added preloadCache() so callers can trigger cache getMulti().

Change-Id: I2a30b4bfc16b4303abcb1f71206234dd2e0403af

11 years agoMerge "Reduced some master queries via Revision::READ_NORMAL."
Catrope [Tue, 28 Aug 2012 23:53:26 +0000 (23:53 +0000)]
Merge "Reduced some master queries via Revision::READ_NORMAL."

11 years agoMerge "Added new mw message 'editpage-head-copy-warn' to EditPage header."
Catrope [Tue, 28 Aug 2012 23:51:50 +0000 (23:51 +0000)]
Merge "Added new mw message 'editpage-head-copy-warn' to EditPage header."

11 years agoMerge "Work around preg_replace_callback() issue in CSSJanus"
Krinkle [Tue, 28 Aug 2012 22:00:38 +0000 (22:00 +0000)]
Merge "Work around preg_replace_callback() issue in CSSJanus"

11 years agoMerge "Follow up to dirname( __FILE__ ) clean up"
Siebrand [Tue, 28 Aug 2012 21:53:58 +0000 (21:53 +0000)]
Merge "Follow up to dirname( __FILE__ ) clean up"

11 years agoFollow up to dirname( __FILE__ ) clean up
Hoo man [Tue, 28 Aug 2012 21:20:43 +0000 (23:20 +0200)]
Follow up to dirname( __FILE__ ) clean up

Remove a trailing whitespace added by me in dirname( __FILE__ )
clean up and add some comments to the PHP version checks (they
can't use __DIR__ as they have to run in older PHP versions.

Change-Id: I6a7e8cb7dbf384d91dda4d0ecbef7ce588bc3073

11 years agoMerge "Adding ResourceLoader module "jquery.jStorage""
Krinkle [Tue, 28 Aug 2012 21:16:01 +0000 (21:16 +0000)]
Merge "Adding ResourceLoader module "jquery.jStorage""

11 years agoMerge "[FileJournal] Made getMasterDB() reuse the DB handle."
Catrope [Tue, 28 Aug 2012 21:13:54 +0000 (21:13 +0000)]
Merge "[FileJournal] Made getMasterDB() reuse the DB handle."

11 years agoAdded new mw message 'editpage-head-copy-warn' to EditPage header.
Rob Moen [Tue, 28 Aug 2012 20:24:21 +0000 (13:24 -0700)]
Added new mw message 'editpage-head-copy-warn' to EditPage header.

New copyright warning is to be just above the edit box.
This message is intended to be optional and locally customized.
Similar to editpage-tos-summary.

See Micro Improvements for more information.
http://www.mediawiki.org/wiki/Micro_Design_Improvements

Change-Id: Ifbd842ebef8775630d97491a3c735e046df5d0df

11 years agoMerge "[FileBackend] Made Swift clear the auth cache on certain HTTP errors."
Catrope [Tue, 28 Aug 2012 21:13:05 +0000 (21:13 +0000)]
Merge "[FileBackend] Made Swift clear the auth cache on certain HTTP errors."

11 years agoMerge "[FileBackend] Bumped Swift auth caching TTL."
Catrope [Tue, 28 Aug 2012 21:12:46 +0000 (21:12 +0000)]
Merge "[FileBackend] Bumped Swift auth caching TTL."

11 years agoMerge "[FileBackend] Reduced stat calls when using the multiwrite backend."
Catrope [Tue, 28 Aug 2012 21:12:23 +0000 (21:12 +0000)]
Merge "[FileBackend] Reduced stat calls when using the multiwrite backend."

11 years agoMerge "[FileBackend] Use strcmp() for listing comparisons."
Catrope [Tue, 28 Aug 2012 21:11:27 +0000 (21:11 +0000)]
Merge "[FileBackend] Use strcmp() for listing comparisons."

11 years agoMerge "(bug 39680) Convert valign to CSS vertical-align"
Krinkle [Tue, 28 Aug 2012 20:58:41 +0000 (20:58 +0000)]
Merge "(bug 39680) Convert valign to CSS vertical-align"

11 years agoWork around preg_replace_callback() issue in CSSJanus
Catrope [Tue, 28 Aug 2012 19:35:27 +0000 (12:35 -0700)]
Work around preg_replace_callback() issue in CSSJanus

As reported in bug 38294, CSSJanus returns an empty string for some
input. This seems to be caused by preg_replace_callback() returning
null which, according to the PHP docs, happens "in case of error". Of
course there's no way to figure out what the error was :S

Work around this by checking for a null return value

Change-Id: I5db952bc32f73b94ac13e449d9aa1f8693602dbd

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 28 Aug 2012 19:35:05 +0000 (19:35 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ib471477326cecc9fdab5c0482bfaffb0fa2ce94f

11 years agoMerge "Removed unmatched commits in Job class."
Aaron Schulz [Tue, 28 Aug 2012 19:17:48 +0000 (19:17 +0000)]
Merge "Removed unmatched commits in Job class."

11 years agoMerge "Moved warning stuff into MWDebug class."
Aaron Schulz [Tue, 28 Aug 2012 17:13:00 +0000 (17:13 +0000)]
Merge "Moved warning stuff into MWDebug class."

11 years agoMerge "Validate number input for {{PLURAL}}"
Aaron Schulz [Tue, 28 Aug 2012 17:00:22 +0000 (17:00 +0000)]
Merge "Validate number input for {{PLURAL}}"

11 years agoMoved warning stuff into MWDebug class.
Alexandre Emsenhuber [Sat, 25 Aug 2012 11:09:46 +0000 (13:09 +0200)]
Moved warning stuff into MWDebug class.

- Group common code in one instead of doing checks one
  time in GlobalFunctions.php and another time in Debug.php
- Remove the code catching the fact that a warning is due
  to a deprecation warning, no longer needed
- Pass the caller offset from wfDeprecated() to
  MWDebug::deprecated(); this was breaking deprecation
  notices for global objects.
- Changed PHP error level for deprecation notices (when
  $wgDevelopmentWarnings is set to true) from E_USER_NOTICE
  to E_USER_DEPRECATED since we now require PHP 5.3+
- Added E_USER_DEPRECATED to wfSuppressWarnings() and
  removed the check for the E_DEPRECATED constant being set
  now that we require PHP 5.3+
- Fixed MWDebugTest by calling wfSuppressWarnings() and
  wfRestoreWarnings() in setUp() and tearDown()

Change-Id: I6810b57c90d384de55a2cf177047767cdb734f79

11 years agoFixed type hint docs
jeroendedauw [Tue, 28 Aug 2012 13:07:19 +0000 (15:07 +0200)]
Fixed type hint docs

Change-Id: I637f11e9ac2a42865649c10ffcb96bdebf1b55eb

11 years agoMerge "Add CLDRPluralRuleError, added in parent commit, to the AutoLoader"
Nikerabbit [Tue, 28 Aug 2012 06:18:45 +0000 (06:18 +0000)]
Merge "Add CLDRPluralRuleError, added in parent commit, to the AutoLoader"

11 years agoMerge "Use the MWDebug class to display debug log back in the request."
Nikerabbit [Tue, 28 Aug 2012 05:49:41 +0000 (05:49 +0000)]
Merge "Use the MWDebug class to display debug log back in the request."

11 years agoRevert Uri class due to bug 39710
Tim Starling [Tue, 28 Aug 2012 00:51:38 +0000 (10:51 +1000)]
Revert Uri class due to bug 39710

Revert 94f623363beb00a7a211e8f8f1f39bc12b4713ed. Apparently all
ReverseChronologicalPager subclasses were broken by the unexplained
interface change in wfArrayToCgi(): changing the interpretation of
null array values from "omit this key" to "include this key with no
value". The function has always been called with the former
interpretation, that's why the special case was in there.

Also reverted dependent changes 4b517fa and part of 3d97704.

Change-Id: I41dadbde5d0e0e4c54cc76bfc13c263c15c73828

11 years agoMerge "Allow array condition for Database::conditional"
Aaron Schulz [Tue, 28 Aug 2012 00:01:05 +0000 (00:01 +0000)]
Merge "Allow array condition for Database::conditional"

11 years agoMerge "Use numParams() where possible."
Aaron Schulz [Mon, 27 Aug 2012 23:42:25 +0000 (23:42 +0000)]
Merge "Use numParams() where possible."

11 years agoUse numParams() where possible.
Siebrand Mazeland [Mon, 27 Aug 2012 23:38:19 +0000 (01:38 +0200)]
Use numParams() where possible.

Change-Id: I2ba4fb7dad599ccd04fe69ab033ff72c1bacfe3e

11 years agoMerge "(bug 39635) PostgreSQL has no LOCK IN SHARE MODE"
Aaron Schulz [Mon, 27 Aug 2012 23:31:48 +0000 (23:31 +0000)]
Merge "(bug 39635) PostgreSQL has no LOCK IN SHARE MODE"

11 years agoReduced some master queries via Revision::READ_NORMAL.
Aaron [Mon, 27 Aug 2012 23:20:56 +0000 (16:20 -0700)]
Reduced some master queries via Revision::READ_NORMAL.

* Also normalized 0 => false for the rev ID parameter in some places.
* Broke some long lines and shorted a variable name in Skin.php.

Change-Id: I6645315699ec7670ae22aa1dbf787d75d6e6b7ec

11 years agoMerge "Use __DIR__ instead of dirname( __FILE__ )"
Aaron Schulz [Mon, 27 Aug 2012 22:08:14 +0000 (22:08 +0000)]
Merge "Use __DIR__ instead of dirname( __FILE__ )"

11 years agoUse __DIR__ instead of dirname( __FILE__ )
Hoo man [Mon, 27 Aug 2012 21:58:28 +0000 (23:58 +0200)]
Use __DIR__ instead of dirname( __FILE__ )

Removed left over uses of dirname( __FILE__ ) to __DIR__, even in comments.
Running the PHP version test in maintenance/Maintenance.php earlier, so that
we no longer have to stay PHP < 5.3 compatible in there.

Change-Id: I5a00bd5c6af44b7f826c4e5576a7b3de7b5026d8

11 years agoUse the MWDebug class to display debug log back in the request.
Alexandre Emsenhuber [Mon, 27 Aug 2012 20:57:15 +0000 (22:57 +0200)]
Use the MWDebug class to display debug log back in the request.

- This removes the duplication of MWDebug::$debug and
  OutputPage::$mDebugtext, so there's no need to store two times
  the same text
- Removed OutputPage::debug() since it's no longer used
- Had to keep OutputPage::$mDebugtext because it's still
  referenced by SemanticPageMaker extension
- Moved Skin::formatDebugHTML() to MWDebug::GetHTMLDebugLog()
  and replaced the call in Skin::generateDebugHTML() to use it
- Also check $logonly before sending entries to the debug
  toolbar in wfDebug(), for consistency
- Changed MWDebug::getDebugHTML() to also return the debug log
  in an HTML comment if $wgDebugComments is set to true and
  changed the location of this call to BaseTemplate::printTrail()
  so that its result is the latest possible. This also includes
  the debug toolbar.
- Removed MockOutputPage and related test cases since they are
  no longer accurate

Change-Id: Ie0f389f8566457b1c938c627ed930040741ac9d9

11 years agoAdded last missing @since tag to Message
jeroendedauw [Mon, 27 Aug 2012 21:46:06 +0000 (23:46 +0200)]
Added last missing @since tag to Message

Change-Id: I034ae0e5b1f19c1c28b1ecaecec69739434f699b

11 years agoMerge "Added missing @since tags to all methods"
Siebrand [Mon, 27 Aug 2012 21:29:17 +0000 (21:29 +0000)]
Merge "Added missing @since tags to all methods"

11 years ago[FileJournal] Made getMasterDB() reuse the DB handle.
Aaron [Mon, 27 Aug 2012 20:42:31 +0000 (13:42 -0700)]
[FileJournal] Made getMasterDB() reuse the DB handle.

* Also made use of autocommit mode while at it.

Change-Id: I460e483d0103de70d505fe00dc9c67e33effde0c

11 years ago(bug 39680) Convert valign to CSS vertical-align
Alex Monk [Mon, 27 Aug 2012 19:41:00 +0000 (20:41 +0100)]
(bug 39680) Convert valign to CSS vertical-align

Also convert align to CSS text-align/float

Change-Id: Ia7da2b51b7fdeee443def8cb06c63a422d89f6f1

11 years agoRemove a couple of unused globals
Platonides [Mon, 27 Aug 2012 20:31:01 +0000 (22:31 +0200)]
Remove a couple of unused globals

Change-Id: I173334c43e1bc2ed5f404f82e770d3e20fa65914

11 years agoAdd CLDRPluralRuleError, added in parent commit, to the AutoLoader
Platonides [Mon, 27 Aug 2012 20:23:09 +0000 (22:23 +0200)]
Add CLDRPluralRuleError, added in parent commit, to the AutoLoader

Change-Id: Icac9fec9264b42202eddc61905f476693df57de2

11 years agoAdded missing @since tags to all methods
jeroendedauw [Mon, 27 Aug 2012 20:22:17 +0000 (22:22 +0200)]
Added missing @since tags to all methods

except for numParams, as Siebrand already did this in another commit

Change-Id: Ie3317af53c1df1eea99a77f402c6f7f1748dce1a

11 years agoMerge "Use __DIR__ instead of dirname( __FILE__ )"
Demon [Mon, 27 Aug 2012 19:53:26 +0000 (19:53 +0000)]
Merge "Use __DIR__ instead of dirname( __FILE__ )"

11 years agoUse __DIR__ instead of dirname( __FILE__ )
jeroendedauw [Mon, 27 Aug 2012 19:03:15 +0000 (21:03 +0200)]
Use __DIR__ instead of dirname( __FILE__ )

We can now do this since we finally switched to PHP 5.3 for MW 1.20 and get rid of the silly dirname(__FILE__) stuff :)

Change-Id: Id9b2c9cd2e678197aa81c78adced5d1d31ff57b1

11 years ago[FileBackend] Made Swift clear the auth cache on certain HTTP errors.
Aaron [Mon, 27 Aug 2012 19:36:47 +0000 (12:36 -0700)]
[FileBackend] Made Swift clear the auth cache on certain HTTP errors.

* This can handle when the auth token is expired sooner than expected.

Change-Id: I2e5ecc0adbde032b987af37dfe05a4aadb12b319

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 27 Aug 2012 19:21:23 +0000 (19:21 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I180c36b58f8f046c572798970d2cb4815a6a2cb0

11 years agoFix ZipDirectoryReader under Hiphop
jeroendedauw [Mon, 27 Aug 2012 15:56:15 +0000 (17:56 +0200)]
Fix ZipDirectoryReader under Hiphop

ZipDirectoryReaderError subclasses Exception, and sets the code property as a
string. Php's documentation says this should be an int, so this is already a
little bit weird.

Under Hiphop, calling the parent constructor without the second parameter will
set the code property to 0, because the parameter defaults to 0. This leads to
uploads breaking, because calls to getErrorCode return 0 rather than the code
that was passed in.

The change renames the code property to errorCode, so it can't be confused with
exception's code property, which should be an int.

https://bugzilla.wikimedia.org/show_bug.cgi?id=39346

Patch by Chris Keeline <ckeeline@fb.com>

Change-Id: I9b07a5f7f8ba7c980c0cb0da7b65816dc3b97c4c

11 years ago[FileBackend] Bumped Swift auth caching TTL.
Aaron [Mon, 27 Aug 2012 18:56:05 +0000 (11:56 -0700)]
[FileBackend] Bumped Swift auth caching TTL.

Change-Id: I5f119ff640cc7af604191450f4577a4564307499

11 years agoAdding ResourceLoader module "jquery.jStorage"
Hoo man [Fri, 17 Aug 2012 18:36:27 +0000 (20:36 +0200)]
Adding ResourceLoader module "jquery.jStorage"

Adding jStorage from http://www.jstorage.info/ to MediaWiki
It's MIT-style licensed and useful for local caching of data.

Adding to .jshintignore since it is a third party library.

Change-Id: I2343744304191d5846cf346e4ac6ca083a6414b3

11 years ago(bug 39635) PostgreSQL has no LOCK IN SHARE MODE
saper [Mon, 27 Aug 2012 16:58:54 +0000 (18:58 +0200)]
(bug 39635) PostgreSQL has no LOCK IN SHARE MODE

includes/Category.php tells us to use "SELECT ...
LOCK IN SHARE MODE" before "UPDATE".

This is MySQL-only construct:

http://dev.mysql.com/doc/refman/5.0/en/innodb-locking-reads.html

Change-Id: I80709da9e15c891f1605900e7c527d5042a88f73

11 years agoMerge "Clean up transactions after test."
Demon [Mon, 27 Aug 2012 16:54:12 +0000 (16:54 +0000)]
Merge "Clean up transactions after test."

11 years agoMerge "optimize ../images/spinner.gif, ajax-loader.gif"
IAlex [Mon, 27 Aug 2012 15:46:19 +0000 (15:46 +0000)]
Merge "optimize ../images/spinner.gif, ajax-loader.gif"

11 years agoMerge "pngcrushed skins/common/images/add.png"
IAlex [Mon, 27 Aug 2012 15:44:13 +0000 (15:44 +0000)]
Merge "pngcrushed skins/common/images/add.png"

11 years agoMerge "Fix documentation."
IAlex [Mon, 27 Aug 2012 15:35:33 +0000 (15:35 +0000)]
Merge "Fix documentation."

11 years agoMerge "wfWarn() should cause phpunit tests to fail."
Demon [Mon, 27 Aug 2012 14:33:09 +0000 (14:33 +0000)]
Merge "wfWarn() should cause phpunit tests to fail."

11 years agoMerge "use InvalidArgumentException rather then Exception"
Demon [Mon, 27 Aug 2012 14:27:11 +0000 (14:27 +0000)]
Merge "use InvalidArgumentException rather then Exception"

11 years agoRemoved unmatched commits in Job class.
daniel [Mon, 27 Aug 2012 12:41:15 +0000 (14:41 +0200)]
Removed unmatched commits in Job class.

Job had two calls to commit() that did not correspond to any
call to begin(). This may prematurely about any "outer" transaction,
may cause database corruption, and trigger warnings. There did not
seem to be any good reason for these commits to be there.

Sorting out unmatched begin/commit calls is important to allow the
addition of support for nested transactions, and it also helps
with finding "interesting" database problems.

Change-Id: Iff394f97fbad6e9304d75e6ad69155ada80b9c33

11 years agoClean up transactions after test.
daniel [Mon, 27 Aug 2012 12:38:25 +0000 (14:38 +0200)]
Clean up transactions after test.

MediaWikiTestCase::teardown() will now rollback any transactions
left open by a test case. This is intended to make sure tests do
not provide "interesting" results casued by transaction state
leaking from other tests.

Change-Id: Ia225251efd5aafbaa6674e2732ab1ba7761bfadc

11 years agowfWarn() should cause phpunit tests to fail.
daniel [Mon, 27 Aug 2012 12:28:47 +0000 (14:28 +0200)]
wfWarn() should cause phpunit tests to fail.

This forces $wgDevelopmentWarnings to true for phpunit tests.

Note that wfWarn uses the E_USER_NOTICE level per default, which may or may not
actually cause test cases to fail, depending on the phpunit configuration.

Change-Id: I36583fb063436cc8474873b468fc983d28377cbd

11 years agovery basic test for ApiEditPage
daniel [Fri, 22 Jun 2012 22:04:09 +0000 (00:04 +0200)]
very basic test for ApiEditPage

Based on the generic Api logging system in APITestCase.

Change-Id: I28c0bd41f585cca199fdef9a78e60ef66625d37f

11 years agouse InvalidArgumentException rather then Exception
jeroendedauw [Mon, 27 Aug 2012 11:34:02 +0000 (13:34 +0200)]
use InvalidArgumentException rather then Exception

Change-Id: Ie744c773b316278e4a92af28354a8fe4eb83b78f

11 years ago(bug 39672) Fixing quote.
Dereckson [Mon, 27 Aug 2012 09:54:47 +0000 (11:54 +0200)]
(bug 39672) Fixing quote.

Change-Id: I2a8d968075acede726ba670f5ae000996e388288

11 years agoFix documentation.
Siebrand Mazeland [Sun, 26 Aug 2012 23:35:03 +0000 (01:35 +0200)]
Fix documentation.

Change-Id: I43f4ae1248bc4a24cf127fadb6e616da8d4516e2

11 years agoValidate number input for {{PLURAL}}
Niklas Laxström [Mon, 27 Aug 2012 08:53:42 +0000 (08:53 +0000)]
Validate number input for {{PLURAL}}

The new plural parser is pickier about input.

Change-Id: I1d033d30fdad61db2f661f603d9866923245137a

11 years agoMerge "Fix double braceSubstitution of some preview messages"
Nikerabbit [Mon, 27 Aug 2012 05:57:34 +0000 (05:57 +0000)]
Merge "Fix double braceSubstitution of some preview messages"

11 years agoFix exception on parse due wfMsgExt() -> wfMessage()
Tim Starling [Mon, 27 Aug 2012 00:40:27 +0000 (10:40 +1000)]
Fix exception on parse due wfMsgExt() -> wfMessage()

Replacing wfMsgExt() with wfMessage() in 4e1ccf0 causes an exception on
parse when the defaults are used for $current and $max. I don't know if
there are other similar fatal errors caused by that set of commits.

Change-Id: I84cfdede844bb2dd3c106721b972ed1cd8bfe480

11 years agoMerge "Check fallbacks correctly in getHeaderVariant()."
Siebrand [Sun, 26 Aug 2012 23:44:21 +0000 (23:44 +0000)]
Merge "Check fallbacks correctly in getHeaderVariant()."