lhc/web/wiklou.git
10 years agoRemove unused setting $wgImageMagickIdentifyCommand
This, that and the other [Sun, 16 Feb 2014 05:40:06 +0000 (16:40 +1100)]
Remove unused setting $wgImageMagickIdentifyCommand

No need to deprecate first, as it is simply unused.

It was added in r107351, and its only usage was removed in
r108141.

Change-Id: Ie95d8b707ac1ff2fe2a9bae6d5f77ba68b4291ad

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 14 Feb 2014 20:11:54 +0000 (20:11 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I276bff053ef2bfea3180abe56bc2e26b5fcbe89b

10 years agoShow 'Indexing by robots' status correct on action=info
umherirrender [Fri, 14 Feb 2014 14:21:12 +0000 (15:21 +0100)]
Show 'Indexing by robots' status correct on action=info

When $wgNamespaceRobotPolicies contains a noindex for a namespace and
the page contains __INDEX__, the index status on action=info was
"Disallowed", but that is wrong, because the page is indexed.

Pass the 'index' to the robot policy logic.

Change-Id: Ib77c3e73968cdc72f657e50371a2372564a1c618

10 years agoMoved Release notes for Ia0dc5895
umherirrender [Fri, 14 Feb 2014 13:59:48 +0000 (14:59 +0100)]
Moved Release notes for Ia0dc5895

Was filled under configuration, but new features is better.

Change-Id: I63f13700f9e7a7082ff3586aa03ecdb47937eaee

10 years agoPerformance of mediawiki.searchSuggest.js
Thiemo Mättig [Fri, 14 Feb 2014 12:58:44 +0000 (13:58 +0100)]
Performance of mediawiki.searchSuggest.js

Two tiny performance improvements.

The complexity of a regular expression is not needed to check if a
string contains a character. string.match() returns an array of
matches which is not used anyway in this case. Either
string.indexOf() or RegExp.test() should be used.

Duplicate jQuery call merged.

Change-Id: Ifec79eada70181df0d56c583ef832ee82594620e

10 years agoUpdate OOjs UI to v0.1.0-pre (7d3223b8f4)
James D. Forrester [Fri, 14 Feb 2014 02:43:07 +0000 (18:43 -0800)]
Update OOjs UI to v0.1.0-pre (7d3223b8f4)

6c3e183 Add icons demo
f285a06 build: Concatenation task should not include 'default' in a variant
7d3223b Fix for clearing items in a group element

Change-Id: I8f1b59806b25f5d6a1431e77d654259385245b91

10 years agoMerge "mediawiki.jqueryMsg: Deprecate window.gM"
jenkins-bot [Fri, 14 Feb 2014 01:08:45 +0000 (01:08 +0000)]
Merge "mediawiki.jqueryMsg: Deprecate window.gM"

10 years agomediawiki.jqueryMsg: Deprecate window.gM
Bartosz Dziewoński [Thu, 13 Feb 2014 18:19:22 +0000 (19:19 +0100)]
mediawiki.jqueryMsg: Deprecate window.gM

The comment already said it was.  Make this more obvious with mw.log.deprecate.

Change-Id: I60af043eb7a136a0f52618fdbc9bb76b17788b83

10 years agoMerge "Return jqXHR from mw.Api calls"
jenkins-bot [Fri, 14 Feb 2014 00:47:58 +0000 (00:47 +0000)]
Merge "Return jqXHR from mw.Api calls"

10 years agoMerge "Update OOjs UI to v0.1.0-pre (7788dc6700)"
jenkins-bot [Thu, 13 Feb 2014 22:40:57 +0000 (22:40 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (7788dc6700)"

10 years agoMerge "mediawiki.jqueryMsg: Support {{GENDER:}} with empty first parameter"
jenkins-bot [Thu, 13 Feb 2014 22:25:14 +0000 (22:25 +0000)]
Merge "mediawiki.jqueryMsg: Support {{GENDER:}} with empty first parameter"

10 years agoMerge "Add jquery-throttle-debounce to core"
jenkins-bot [Thu, 13 Feb 2014 22:00:15 +0000 (22:00 +0000)]
Merge "Add jquery-throttle-debounce to core"

10 years agoUpdate OOjs UI to v0.1.0-pre (7788dc6700)
James D. Forrester [Thu, 13 Feb 2014 21:58:18 +0000 (13:58 -0800)]
Update OOjs UI to v0.1.0-pre (7788dc6700)

27832b1 Moved PNG icons to their own variant
06cf9a3 Make disabled state inheritable
4dd81c9 Removed some of the drop-shadows on buttons
88efa8e Localisation updates from https://translatewiki.net.

Change-Id: Ie66d907e8edabe722e2c2d2662a902e2aec1e1a7

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 13 Feb 2014 21:30:58 +0000 (21:30 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Icc129087a7b93326b24c5921b2a0046392689f7a

10 years agoAdd jquery-throttle-debounce to core
Gergő Tisza [Wed, 12 Feb 2014 21:18:08 +0000 (21:18 +0000)]
Add jquery-throttle-debounce to core

This is currently used by MultimediaViewer, but it is also needed
by UploadWizard (and probably useful to several other projects).

Similar to jquery.delayedBind (which is already in core), but has
several advantages:
* can also do throttling (fire event every N ms) which is better
  suited to some events (e.g. scroll) than debouncing (check every
  N ms if there are still events, only fire once they stopped)
* not coupled with event binding, it just takes a function and
  returns a throttled/debounced function. This means it can be used
  in ways delayedBind cannot (e.g. event delegation), or with non-
  event-based callbacks.
* widely used external project with good documentation, tests etc:
  https://github.com/cowboy/jquery-throttle-debounce

On the minus side, the project has been inactive for years and
originally written for jQuery 1.3. Given that it is extremely simple
and does not depend on jQuery at all (just registers itself in the
jQuery namespace), that should not be a problem.

Change-Id: I008f46cc97af10e93ad9cad35924aaf251b99aa6

10 years agoMerge "Use TablePager on Special:ProtectedPages (using log_search)"
jenkins-bot [Thu, 13 Feb 2014 20:02:22 +0000 (20:02 +0000)]
Merge "Use TablePager on Special:ProtectedPages (using log_search)"

10 years agoUse TablePager on Special:ProtectedPages (using log_search)
umherirrender [Thu, 13 Feb 2014 19:48:53 +0000 (20:48 +0100)]
Use TablePager on Special:ProtectedPages (using log_search)

Adding the pr_id to log_search table and use a join to get the user,
timestamp and comment from the logging table. For logs without the pr_id
a placeholder text is shown.
The code for page protection is changed from a replace to delete/insert
to have for each pr_id a log_id and not reusing pr_ids which was used
for the first protection on a protection change.
The log_deleted field is checked to avoid showing revision deleted data
from the logging table.

This is a alternative patch for
Ie40057398a7829c698df3d68813006798a72dccb
and Iade82653999ca770586762b3c1383f73dfe3a5ee to avoid a schema change
on table page_restriction.
Idea by Aaron Schulz.

Change-Id: Ia0dc5895ec672896fe4b75c2e0f76da2474bd6e4

10 years agoMerge "Tweaked generated paths for ExternalStoreMwstore"
jenkins-bot [Thu, 13 Feb 2014 19:02:04 +0000 (19:02 +0000)]
Merge "Tweaked generated paths for ExternalStoreMwstore"

10 years agoTweaked generated paths for ExternalStoreMwstore
Aaron Schulz [Thu, 13 Feb 2014 18:15:13 +0000 (10:15 -0800)]
Tweaked generated paths for ExternalStoreMwstore

* This improve the object store case (with B-Tree container listings
  and 2-level sharding set up).

Change-Id: If75f51fb07cd5df0da455d4e6eafe06d69e8b941

10 years agooojs-ui: Fix up addition to core
Timo Tijhof [Thu, 13 Feb 2014 01:53:09 +0000 (17:53 -0800)]
oojs-ui: Fix up addition to core

Follows-up I0736601e04a15c8.

* Move to its own directory instead of mixing in the oojs.js dir.
* This also fixes the jsduck errors as it was immediately being
  indexed with settings for oojs, eventhough oojs-ui correctly
  does not index without errors with core's jsduck config.
* Remove spurious .gitignore file.

Change-Id: I01f99deb3967d731d7b0e8bca2a2497b3c0151ac

10 years agoMerge "mediawiki.feedback: Add jsduck documentation"
jenkins-bot [Thu, 13 Feb 2014 17:58:23 +0000 (17:58 +0000)]
Merge "mediawiki.feedback: Add jsduck documentation"

10 years agomediawiki.feedback: Add jsduck documentation
Mark Holmquist [Wed, 5 Feb 2014 22:51:35 +0000 (14:51 -0800)]
mediawiki.feedback: Add jsduck documentation

Change-Id: Idec212381a904f174de7ae63ef57f26c92db6449

10 years agoExplicitely return null from WikiPage::newFromID()
Alexandre Emsenhuber [Thu, 13 Feb 2014 17:50:50 +0000 (18:50 +0100)]
Explicitely return null from WikiPage::newFromID()

Follow-up I8943b4dec5 (d7f465f).

To match the documentation.

Change-Id: I7b960704d6b3a83e389ece182bf94142341ea88c

10 years agomediawiki.jqueryMsg: Support {{GENDER:}} with empty first parameter
Bartosz Dziewoński [Thu, 13 Feb 2014 13:10:17 +0000 (14:10 +0100)]
mediawiki.jqueryMsg: Support {{GENDER:}} with empty first parameter

(That is, gender for the user viewing the page.)

This is a bit hacky – it would be cleaner to allow empty parameters
instead of creating a separate construction for first-parameter-less
brace expansion – but this one works and the cleaner one was throwing
exceptions all over when I tried to do that.

Bug: 61320
Change-Id: I0f273951b2f8cebd50dffc6ef23520bb6fa72ccf

10 years agoMerge "Vector: Consistently use lowercase in #rrggbb colors"
jenkins-bot [Thu, 13 Feb 2014 16:24:26 +0000 (16:24 +0000)]
Merge "Vector: Consistently use lowercase in #rrggbb colors"

10 years agoMerge "Vector: Remove misleading comment"
jenkins-bot [Thu, 13 Feb 2014 16:24:25 +0000 (16:24 +0000)]
Merge "Vector: Remove misleading comment"

10 years agoMerge "Actually make Parser::pstPass2() private"
jenkins-bot [Thu, 13 Feb 2014 00:47:16 +0000 (00:47 +0000)]
Merge "Actually make Parser::pstPass2() private"

10 years agoMerge "Return early when page id is less than 1"
jenkins-bot [Thu, 13 Feb 2014 00:33:31 +0000 (00:33 +0000)]
Merge "Return early when page id is less than 1"

10 years agoMerge "Remove undocumented and unused searchx parameter"
jenkins-bot [Thu, 13 Feb 2014 00:33:30 +0000 (00:33 +0000)]
Merge "Remove undocumented and unused searchx parameter"

10 years agoMerge "Added some lock()/unlock() support for SQLite using lock file emulation"
jenkins-bot [Thu, 13 Feb 2014 00:32:32 +0000 (00:32 +0000)]
Merge "Added some lock()/unlock() support for SQLite using lock file emulation"

10 years agoLimit attempts to render the same thumbnail after failures
Aaron Schulz [Tue, 14 Jan 2014 19:36:26 +0000 (11:36 -0800)]
Limit attempts to render the same thumbnail after failures

bug: 49118
Change-Id: I9379ec445bf2e77bd3b085c00182c5e406ed300d

10 years agoUpdate OOjs UI to c0f5658
James D. Forrester [Wed, 12 Feb 2014 21:53:25 +0000 (13:53 -0800)]
Update OOjs UI to c0f5658

e5ecea2 Refactor labels and titles to be consistent
53ec329 Fix indicator vs icon typo in IconedElement
dc93c91 Fix positioning in TextInputMenuWidget
c0f5658 Localisation updates from https://translatewiki.net.

Change-Id: Idb2f1b4929f4afc417054221a243134fee6ae017

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Wed, 12 Feb 2014 21:38:51 +0000 (21:38 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 12 Feb 2014 21:29:59 +0000 (21:29 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib0b47d701a358e314f802fa6163966f3618c6863

10 years agoAdd external things to the JSDuck config
Mark Holmquist [Wed, 12 Feb 2014 21:21:01 +0000 (13:21 -0800)]
Add external things to the JSDuck config

oojs-ui relies on these, so the MW doc publish will be broken until we
merge this change.

Change-Id: Ib724b6e937e09749928317b8d56c286bb2d1f7f9

10 years agoAdd OOjs UI v0.1.0-pre (3b61a8d77c) to MW core
James D. Forrester [Thu, 16 Jan 2014 23:43:24 +0000 (15:43 -0800)]
Add OOjs UI v0.1.0-pre (3b61a8d77c) to MW core

Just adding code for now, not actually used for anything in core yet.

Note that OOjs and OOjs UI do not work in older browsers, and will
actually cause JS errors when loaded in browsers that don't support
ES5. We'll resolve this by adding an ES5 shim later.

Bug: 56572
Change-Id: I0736601e04a15c84d2ac1994febbf1a17bc1399a

10 years agoMerge "New hook MessageCache::get"
jenkins-bot [Wed, 12 Feb 2014 15:23:59 +0000 (15:23 +0000)]
Merge "New hook MessageCache::get"

10 years agoAdd llprop=langname and llprop=autonym for action=query&prop=langlinks
umherirrender [Tue, 11 Feb 2014 19:04:32 +0000 (20:04 +0100)]
Add llprop=langname and llprop=autonym for action=query&prop=langlinks

This can helps the client to build a language html.

Change-Id: I54c66c8935b0dbbf3bf8e292236119597f1cbe41

10 years agoAdded simpler handleError() method in RedisConnectionPool
Aaron Schulz [Wed, 18 Dec 2013 00:55:09 +0000 (16:55 -0800)]
Added simpler handleError() method in RedisConnectionPool

* Callers should not need to give $server since it is stored in RedisConnRef

Change-Id: I902d984d6a7f19dd0d8c71ee374cbed359de378e

10 years agoReduce the amount of Swift auth cache keys used on wiki farms
Aaron Schulz [Wed, 12 Feb 2014 06:38:06 +0000 (22:38 -0800)]
Reduce the amount of Swift auth cache keys used on wiki farms

Change-Id: Ic0a2f744d5d94bfb22286a19be3de0c37ecdf519

10 years agoFixed broken auth caching for Swift
Aaron Schulz [Wed, 12 Feb 2014 06:13:17 +0000 (22:13 -0800)]
Fixed broken auth caching for Swift

* A set() call was missing since 2af7ad8

Change-Id: I62b277e886c7ce6142a4d20f705b8337c3e4be58

10 years agoOnly call ->clearInstanceCache() if $targetUser instanceof User
Kunal Mehta [Wed, 12 Feb 2014 05:44:34 +0000 (21:44 -0800)]
Only call ->clearInstanceCache() if $targetUser instanceof User

Bug: 61252
Change-Id: Ibb79ca9a27e50b58fdd5dd541e243054fb095753

10 years agoMultiHttpClient tweaks
Aaron Schulz [Wed, 29 Jan 2014 22:44:54 +0000 (14:44 -0800)]
MultiHttpClient tweaks

* Reference handling cleanup for loops in MultiHttpClient
* Support a slightly more convenient request array format for MultiHttpClient
* Added missing license header to MultiHttpClient

Change-Id: I0a2eef02c06d9c900c4a1ae1b0eeb292755d6cd9

10 years agoSimplified Swift backend to use maxConns flag in MultiHttpClient
Aaron Schulz [Fri, 17 Jan 2014 21:38:49 +0000 (13:38 -0800)]
Simplified Swift backend to use maxConns flag in MultiHttpClient

Change-Id: Iee3756a490243511be86676c01d0a47940529e0b

10 years agoMerge "Cleanups to LoadMonitor"
jenkins-bot [Tue, 11 Feb 2014 21:53:38 +0000 (21:53 +0000)]
Merge "Cleanups to LoadMonitor"

10 years agoMerge "Added pipelining and max connection support to MultiHttpClient"
jenkins-bot [Tue, 11 Feb 2014 20:57:09 +0000 (20:57 +0000)]
Merge "Added pipelining and max connection support to MultiHttpClient"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 11 Feb 2014 19:51:19 +0000 (19:51 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie1af90b203186077bf9675749c1a4f8ac979861b

10 years agoMerge "Deprecate llurl= in favour of llprop=url for action=query&prop=langlinks"
jenkins-bot [Tue, 11 Feb 2014 18:47:52 +0000 (18:47 +0000)]
Merge "Deprecate llurl= in favour of llprop=url for action=query&prop=langlinks"

10 years agoDeprecate llurl= in favour of llprop=url for action=query&prop=langlinks
umherirrender [Tue, 11 Feb 2014 18:29:10 +0000 (19:29 +0100)]
Deprecate llurl= in favour of llprop=url for action=query&prop=langlinks

New props will be added with I54c66c8935b0dbbf3bf8e292236119597f1cbe41

Change-Id: I1340b18b51bccdfaaddec6a16df320d5f6e5acfa

10 years agoRemove undocumented and unused searchx parameter
Chad Horohoe [Tue, 11 Feb 2014 02:19:29 +0000 (18:19 -0800)]
Remove undocumented and unused searchx parameter

It dates from early implementations of Special:Search but is
no longer used by anything anymore.

Change-Id: Ib6ed378242558aa332e453357510932310546f8b

10 years agoMerge "Revert "Limit searches at 500 per page""
jenkins-bot [Tue, 11 Feb 2014 18:05:05 +0000 (18:05 +0000)]
Merge "Revert "Limit searches at 500 per page""

10 years agoAPI: Fix PHP warning in action=parse help output
Brad Jorsch [Tue, 11 Feb 2014 15:34:27 +0000 (10:34 -0500)]
API: Fix PHP warning in action=parse help output

Change I0f41c837 removed a variable while it was still in use.

Bug: 61210
Change-Id: I91ad2e374a85e149303c6e8da7c3d94c1285a72a

10 years agoVector: Consistently use lowercase in #rrggbb colors
Bartosz Dziewoński [Tue, 11 Feb 2014 15:07:06 +0000 (16:07 +0100)]
Vector: Consistently use lowercase in #rrggbb colors

Change-Id: I174781b199260790d18aac2a6c270282396f2812

10 years agoVector: Remove misleading comment
Bartosz Dziewoński [Tue, 11 Feb 2014 15:06:17 +0000 (16:06 +0100)]
Vector: Remove misleading comment

What it says it's true, but it's now abstracted away in the mixin.

Change-Id: If4761b5b9c2153553cc293d7ecf4fdd5a28c47da

10 years agoMerge "Indicator for menuForceShow in skin vector"
jenkins-bot [Tue, 11 Feb 2014 14:52:08 +0000 (14:52 +0000)]
Merge "Indicator for menuForceShow in skin vector"

10 years agoMerge "Use current preference overriding for live preview"
jenkins-bot [Tue, 11 Feb 2014 14:44:26 +0000 (14:44 +0000)]
Merge "Use current preference overriding for live preview"

10 years agomediawiki.api.test: Use sinon sandbox for unit tests
Timo Tijhof [Wed, 5 Feb 2014 20:52:56 +0000 (12:52 -0800)]
mediawiki.api.test: Use sinon sandbox for unit tests

Make the unit tests faster and more standalone:

* Don't make a request to the actual API, instead provide the
  response via the fake server and purely test the mw.Api interface.

* No need for promise aggregration since the process is now
  synchronous.

* No arbitrary delays for async or animations etc. as sinon
  artificially fast-forwards setTimeout, Date and others for us.

Also:

* Move assertion for API error handling to separate test.

Change-Id: I20b17f256bc5114c6c2c3185653973076c15bc02

10 years agoqunit: Add SinonJS utility
Timo Tijhof [Wed, 5 Feb 2014 05:18:28 +0000 (21:18 -0800)]
qunit: Add SinonJS utility

To be used in mediawiki.api tests and elsewhere.

For now they are opt-in and disabled by default,
individual tests can enable fake timers, servers and/or
xhrs by calling this.sandbox to access the dedicated
sinon sandbox for that test.

Clock example:

    QUnit.test( 'example', function ( assert ) {
        var clock = this.sandbox.useFakeTimers();

        setTimeout( function () {
            assert.ok( true, 'test' );
        } );

        clock.tick(1);
    } );

Server example:

    QUnit.test( 'example', function ( assert ) {
        this.server = this.sandbox.useFakeServer();

        new mw.Api().getToken( 'foo' ).done( function ( token ) {
            assert.equal( token, '0123abc', 'Token' );
        } );

        // assert.equal( this.server.requests.length, 1, 'Requests' );

        this.server.respond( function ( request ) {
            request.respond( 200, { 'Content-Type': 'application/json' },
                '{ "tokens": { "testactiontoken": "0123abc" } }'
            );
        } );
    } );

Change-Id: I789fb71903f26dbbfe781f010dc5cd3756759943

10 years agoCleanups to LoadMonitor
Aaron Schulz [Tue, 11 Feb 2014 03:03:05 +0000 (19:03 -0800)]
Cleanups to LoadMonitor

* Use ProfileSection
* Removed redundant doc blocks
* Added method visibility

Change-Id: I76cd666c28b8bea7d5997a9f2b7d1c39539f7c5e

10 years agoReturn early when page id is less than 1
Chad Horohoe [Tue, 11 Feb 2014 05:52:01 +0000 (21:52 -0800)]
Return early when page id is less than 1

Wasteful DB query when we know the page won't exist.

Bug: 61166
Change-Id: I8943b4dec5088dadffefbd74f54653cb09043b7c

10 years agoMerge "Do not use OutputPage to output exceptions in Installer"
jenkins-bot [Tue, 11 Feb 2014 03:54:20 +0000 (03:54 +0000)]
Merge "Do not use OutputPage to output exceptions in Installer"

10 years agoRemove $wgMaintenanceScripts and friends
Chad Horohoe [Tue, 11 Feb 2014 01:59:47 +0000 (17:59 -0800)]
Remove $wgMaintenanceScripts and friends

Nothing ever used it--and rightly so--as it's completely useless.

Change-Id: I2746500c8156cc4e7834f2b811581144a35cb6e0

10 years agoAdded pipelining and max connection support to MultiHttpClient
Aaron Schulz [Fri, 17 Jan 2014 21:32:46 +0000 (13:32 -0800)]
Added pipelining and max connection support to MultiHttpClient

* Also added timeout options to the run()/runMulti() methods

Change-Id: I2b080567e17fa29804c36e3b259b1ce214e6f465

10 years agoRevert "Limit searches at 500 per page"
Chad [Tue, 11 Feb 2014 01:03:45 +0000 (01:03 +0000)]
Revert "Limit searches at 500 per page"

People seem to like large slow search pages.

This reverts commit 42d4f35696852b2d72089dce86034792fdf4de8e.

Change-Id: I52ee602a81c1b6ec4e124008806271b0c74c581c

10 years agoMerge "Move clearing of $i down a bit in LoadBalancer"
jenkins-bot [Mon, 10 Feb 2014 22:59:07 +0000 (22:59 +0000)]
Merge "Move clearing of $i down a bit in LoadBalancer"

10 years agoMerge "Show the pool counter key and use English for the debug logging"
jenkins-bot [Mon, 10 Feb 2014 22:53:15 +0000 (22:53 +0000)]
Merge "Show the pool counter key and use English for the debug logging"

10 years agoMove clearing of $i down a bit in LoadBalancer
Aaron Schulz [Mon, 10 Feb 2014 22:50:08 +0000 (14:50 -0800)]
Move clearing of $i down a bit in LoadBalancer

* Fixes 56b22fbea8cdd6fcd31c94e6b4bb01be49fa9683

Change-Id: I6b99d93562743270dbb65c60facdd503f470ab14

10 years agoAvoid fatal error in LoadBalancer when all servers are busy
Aaron Schulz [Mon, 10 Feb 2014 22:37:42 +0000 (14:37 -0800)]
Avoid fatal error in LoadBalancer when all servers are busy

* Fixes bug from b3c9653

Change-Id: Ida22f0ee3e97f98e4a1de6f7260a9a9f8aa08a39

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 10 Feb 2014 20:42:35 +0000 (20:42 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I97bdb2a6d7351a1f60ad83d71e3ea18f38c40e54

10 years agoMerge "Revert "Only pass strings to mysqli::real_escape_string""
jenkins-bot [Mon, 10 Feb 2014 20:09:07 +0000 (20:09 +0000)]
Merge "Revert "Only pass strings to mysqli::real_escape_string""

10 years agoRevert "Only pass strings to mysqli::real_escape_string"
Chad [Mon, 10 Feb 2014 19:58:22 +0000 (19:58 +0000)]
Revert "Only pass strings to mysqli::real_escape_string"

hhvm already has a patch in master for fixing this, making the workaround unnecessary

This reverts commit de808f57a90c9c6f7bc4dbc4e4b544a07e0daa0f.

Change-Id: I504e5bd5025ec12430ce670e05da0158b06822c9

10 years agoMerge "Only pass strings to mysqli::real_escape_string"
jenkins-bot [Mon, 10 Feb 2014 19:17:47 +0000 (19:17 +0000)]
Merge "Only pass strings to mysqli::real_escape_string"

10 years agoOnly pass strings to mysqli::real_escape_string
Erik Bernhardson [Mon, 10 Feb 2014 19:03:10 +0000 (11:03 -0800)]
Only pass strings to mysqli::real_escape_string

HHVM will throw a fatal error when passing integer and other non-string
values to mysqli::real_escape_string.  A bug has been filed against
hhvm as https://github.com/facebook/hhvm/issues/1782.

Change-Id: I80eccbe8d872e74b8efc9b8c8f37ebce756bdcee

10 years agoNew hook MessageCache::get
Niklas Laxström [Thu, 28 Nov 2013 09:43:00 +0000 (09:43 +0000)]
New hook MessageCache::get

Example usage:

$wgHooks['MessageCache::get'][] = function( &$key ) {
static $keys = null;
if ( $keys === null ) {
global $wgExtensionMessagesFiles;
require( $wgExtensionMessagesFiles['OverrideMessages'] );
$keys = array_flip( array_keys( $messages['en'] ) );
}

if ( isset( $keys["myprefix-$key"] ) ) {
$key = "myprefix-$key";
}

return true;
}

Pros:
* Easy way to override standard core and extension messages without
  any changes to them
* Messages can be stored in a standard i18n file
* Messages can be translated easily with Translate
* Messages can be shared accross multiple wikis easily
* Takes advantage of the normal message cache behavior unlike the
  MessagePreLoad hook
* Missing translations fallback to the override, not to the
  uncustomized standard translation
* Do not need to handle conflicting message keys at translatewiki.net
  if adopted by WMF

Cons:
* This method is called often, so there will be small performance
  impact if no hooks are registered. Impact can be big if the
  implementation of hook subscriber is inefficient.

This can help with bugs like 36149. It doesn't remove the manual work
needed to detect those messages and adding them to the i18n file.

I have been using this patch in a wiki farm for months.

Change-Id: Ib39937a440e71ae7292cf992ab37a569189741e4

10 years agoProvide language names on action=parse&prop=langlinks
umherirrender [Sun, 9 Feb 2014 12:31:15 +0000 (13:31 +0100)]
Provide language names on action=parse&prop=langlinks

This can helps the client to build a language html.

Bug: 58627
Change-Id: Iaa475cbe7b0268ee86e40ec0fa42bbe51bba02c9

10 years agoMessage has no translatable content -> ignore it
raymond [Mon, 10 Feb 2014 15:41:27 +0000 (16:41 +0100)]
Message has no translatable content -> ignore it

Spotted by सिद्धार्थ घई
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Createaccount-hook-aborted/en

Change-Id: Ie80ff03902adce9f8db01908c1d6c7b71b4def52

10 years agoMerge "Put line breaks after each element in OutputPage::headElement()"
jenkins-bot [Sun, 9 Feb 2014 21:12:59 +0000 (21:12 +0000)]
Merge "Put line breaks after each element in OutputPage::headElement()"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 9 Feb 2014 20:24:39 +0000 (20:24 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I219a9aac7442331fb06eae25f56d22b8a4a41cd2

10 years agoMerge "Use wfShellWikiCmd() for the shell command in cleanupSpam.php"
jenkins-bot [Sun, 9 Feb 2014 01:07:20 +0000 (01:07 +0000)]
Merge "Use wfShellWikiCmd() for the shell command in cleanupSpam.php"

10 years agoMerge "Vector: Restore page-fade.png as fallback background-image for IE 6-9"
jenkins-bot [Sat, 8 Feb 2014 22:03:53 +0000 (22:03 +0000)]
Merge "Vector: Restore page-fade.png as fallback background-image for IE 6-9"

10 years agoUse wfShellWikiCmd() for the shell command in cleanupSpam.php
Alexandre Emsenhuber [Sat, 8 Feb 2014 21:53:50 +0000 (22:53 +0100)]
Use wfShellWikiCmd() for the shell command in cleanupSpam.php

Change-Id: Id2c1dc9b313e1d833154a68a8eafa1e675d3b65c

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 8 Feb 2014 21:18:51 +0000 (21:18 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I4ae3c68a9769c46b93136ad63dcf0fe884bb93bc

10 years agoMerge "Document parser cache key control."
jenkins-bot [Sat, 8 Feb 2014 19:40:57 +0000 (19:40 +0000)]
Merge "Document parser cache key control."

10 years agoDo not use OutputPage to output exceptions in Installer
Brian Wolff [Sat, 8 Feb 2014 19:03:50 +0000 (15:03 -0400)]
Do not use OutputPage to output exceptions in Installer

Things don't seem entirely set up correctly with $wgOut's
title object, causing fatals. Seems easier just to output
the exceptions raw.

Bug: 61092
Change-Id: Ifbbe18accdd6abd93365ac041a7f708067d0cf02

10 years agoMerge "Drop dead code from all SVG source files"
jenkins-bot [Sat, 8 Feb 2014 13:04:14 +0000 (13:04 +0000)]
Merge "Drop dead code from all SVG source files"

10 years agoDrop dead code from all SVG source files
Thiemo Mättig [Fri, 7 Feb 2014 09:01:48 +0000 (10:01 +0100)]
Drop dead code from all SVG source files

This matters because these files are actually used as data URI encoded
background images in the CSS.

I did two pretty simple steps:
1. Open each file in Inkscape and save as "normal" SVG. This gets rid
   of most optional stuff but keeps the license information.
2. Open each file in an text/XML editor and delete all unused
   gradients, def sections (if empty) and the Inkscape comment.

I know there are a million ways to do much more agressive compression.
Take this as a first step that - for sure - doesn't break anything.

Bug: 59744
Change-Id: I1bcb2875fe35ca20ee3ad3c648961d4b1c58c0d2

10 years agoMerge "Fix HTML output arround HTMLForm's submit buttons when in vform"
jenkins-bot [Sat, 8 Feb 2014 03:25:09 +0000 (03:25 +0000)]
Merge "Fix HTML output arround HTMLForm's submit buttons when in vform"

10 years agoMerge "jquery.client: Recognise Amazon Silk browser"
jenkins-bot [Fri, 7 Feb 2014 22:07:08 +0000 (22:07 +0000)]
Merge "jquery.client: Recognise Amazon Silk browser"

10 years agoShow the pool counter key and use English for the debug logging
Aaron Schulz [Fri, 7 Feb 2014 22:03:59 +0000 (14:03 -0800)]
Show the pool counter key and use English for the debug logging

Change-Id: I69c3ece80dd59ad8dbd4fc4e1cf2d6491d135fb7

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Fri, 7 Feb 2014 21:46:02 +0000 (21:46 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 7 Feb 2014 21:45:36 +0000 (21:45 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I1e1c0a4e200f61d003e2fcb221d9e51f47a75afd

10 years agoRemove outdated todo from Title::userCanRead
umherirrender [Fri, 7 Feb 2014 21:24:46 +0000 (22:24 +0100)]
Remove outdated todo from Title::userCanRead

Was already done with r102187

Change-Id: Iceaceca7cfbd272f7d218c3ad2b9860b746dcac0

10 years agoMerge "Document SkinVectorStyleModules hook"
Jdlrobson [Fri, 7 Feb 2014 20:11:38 +0000 (20:11 +0000)]
Merge "Document SkinVectorStyleModules hook"

10 years agoAdd prop 'limitreportdata' and 'limitreporthtml' to action=parse
umherirrender [Tue, 4 Feb 2014 19:16:59 +0000 (20:16 +0100)]
Add prop 'limitreportdata' and 'limitreporthtml' to action=parse

This allows the get the limit report in provided uselang and not only
the english version out of the parsed html.

Change-Id: I2efc606623190756f5c993f48ef29bb0d384a95b

10 years agoMerge "Changed the password $valid check condition"
jenkins-bot [Fri, 7 Feb 2014 16:44:55 +0000 (16:44 +0000)]
Merge "Changed the password $valid check condition"

10 years agoAPI: update documentation and suppress warning when parsing summary
Sorawee Porncharoenwase [Sun, 19 Jan 2014 05:58:45 +0000 (12:58 +0700)]
API: update documentation and suppress warning when parsing summary

The documentation states that if contentmodel and title are not given,
but text exists, "wikitext" will be the default model. However, the
actual code will show a warning if do so. This patch fixes the inconsistence
by removing some parts of the documentation which encourages giving
only text as the parameter and corrects the example. The patch
also suppresses the warning that contentmodel must be given when
summary parameter is given.

bug: 60192
Change-Id: I0f41c83763fbb5551aa3ceaff59c1f8fe38310be

10 years agoVector: Restore page-fade.png as fallback background-image for IE 6-9
Erwin Dokter [Fri, 7 Feb 2014 14:18:27 +0000 (14:18 +0000)]
Vector: Restore page-fade.png as fallback background-image for IE 6-9

Also corrects linear-gradient stop for main background from 40% to 50%
to match page-fade.png previously used.

Bug: 60991
Bug: 60943
Change-Id: I5cab42ee67bc1bb7dff01a7e51a2f609c96e0b18

10 years agoMerge "GitInfo: Suppress some wrong warnings"
jenkins-bot [Fri, 7 Feb 2014 12:39:39 +0000 (12:39 +0000)]
Merge "GitInfo: Suppress some wrong warnings"

10 years agoAdded --wiki parameter to runJobs.php call
Aaron Schulz [Fri, 31 Jan 2014 22:39:29 +0000 (14:39 -0800)]
Added --wiki parameter to runJobs.php call

Change-Id: I8f729263397bedf1c293b14704798e7a4ec60581

10 years agojquery.client: Recognise Amazon Silk browser
Alex Monk [Mon, 3 Feb 2014 19:53:36 +0000 (19:53 +0000)]
jquery.client: Recognise Amazon Silk browser

Bug: 50777
Change-Id: I853e886188d5b87de429bff176a8967f45268e98