lhc/web/wiklou.git
10 years agoPreload mediawiki.notification when we know we're going to need it soon
Bartosz Dziewoński [Sat, 15 Feb 2014 16:17:08 +0000 (17:17 +0100)]
Preload mediawiki.notification when we know we're going to need it soon

The mediawiki.notification module is normally lazy-loaded when
mw.notify() is called; however, this results in often-noticeable delay
between when the action we're notifying about is complete and when the
actual notification appears.

Let's explicitly mw.loader.load() the module in event handlers which
are going to later asynchronously fire a notification. I could only
find two such situations in core: in mediawiki.page.patrol.ajax and
mediawiki.page.watch.ajax.

Bug: 53990
Change-Id: I9d20af3a2f261cd93d5d5fd2b81cccae79697481

10 years agoBetter message wording. See also https://translatewiki.net/wiki/Thread:Support/About_...
purodha [Wed, 19 Feb 2014 07:38:35 +0000 (07:38 +0000)]
Better message wording. See also https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Prefs-help-watchlist-token2/en

Change-Id: Ic2dec419fd1cf193af5e8067fdfb73e4c41401d4

10 years agoRemoved STRAIGHT_JOIN; the is slower when a namespace has a few pages
Aaron Schulz [Tue, 18 Feb 2014 21:03:20 +0000 (13:03 -0800)]
Removed STRAIGHT_JOIN; the is slower when a namespace has a few pages

bug: 60618
Change-Id: I1b8e9f3c15dd99a4f438bb431bee231e5648f5a3

10 years agoAmend release note for $wgPasswordSenderName
This, that and the other [Wed, 19 Feb 2014 00:11:56 +0000 (11:11 +1100)]
Amend release note for $wgPasswordSenderName

It's not just "deprecated" - it no longer works at all.

Follow-up to Ibfd28cd181365c8c0b5f3e8ffe8f5de8c89844a3

Change-Id: I578341430f53bef6d02b8ad78c1c1f2e6b96c064

10 years agoMerge "mediawiki.js: Clean up docs of 'async' parameter to some functions"
jenkins-bot [Tue, 18 Feb 2014 23:53:05 +0000 (23:53 +0000)]
Merge "mediawiki.js: Clean up docs of 'async' parameter to some functions"

10 years agomediawiki.js: Clean up docs of 'async' parameter to some functions
Bartosz Dziewoński [Tue, 18 Feb 2014 21:12:10 +0000 (22:12 +0100)]
mediawiki.js: Clean up docs of 'async' parameter to some functions

Change-Id: I74bceb620d31a6e8e8f8629182ac5c58ae6dcab5

10 years agoMerge "Call WikiPage::doViewUpdates also on missing article page view"
jenkins-bot [Tue, 18 Feb 2014 20:21:37 +0000 (20:21 +0000)]
Merge "Call WikiPage::doViewUpdates also on missing article page view"

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

Change-Id: I968c6992eb608a4a0b90511159a9a98545a8957d

10 years agoAdded some profiling calls to Swift backend
Aaron Schulz [Tue, 18 Feb 2014 19:32:51 +0000 (11:32 -0800)]
Added some profiling calls to Swift backend

Change-Id: Ic692c897493fe4388568930c2f4f861b89f2ff78

10 years agoRemoved deprecated $wgDisabledActions
tinajohnson.1234 [Tue, 28 Jan 2014 14:23:16 +0000 (19:53 +0530)]
Removed deprecated $wgDisabledActions

$wgDisabledActions is deprecated since 1.18 and is hardly used
anywhere. It occurs once in includes/DefaultSettings.php where
it is initialized to an empty array.And in Setup.php, for every
action in $wgDisabledActions $wgActions is set to false. Also
added Release notes

Bug: 60460
Change-Id: I5fab95c76b2742b12c1f397d27898148625a9959

10 years agoMerge "Parse {{int:...}} in editwarning"
jenkins-bot [Tue, 18 Feb 2014 15:00:41 +0000 (15:00 +0000)]
Merge "Parse {{int:...}} in editwarning"

10 years agoParse {{int:...}} in editwarning
Fomafix [Tue, 18 Feb 2014 08:11:06 +0000 (08:11 +0000)]
Parse {{int:...}} in editwarning

The message 'editwarning-warning' contains "{{int:prefs-editing}}".
* Add dependency to module 'mediawiki.jqueryMsg'
* Include message 'prefs-editing'

Bug: 61472
Change-Id: I94301be2477bcd61229c41875e99385622e37440

10 years agoMerge "Give alreadyrolled error when rollback will be a null edit"
jenkins-bot [Tue, 18 Feb 2014 12:52:19 +0000 (12:52 +0000)]
Merge "Give alreadyrolled error when rollback will be a null edit"

10 years agoMerge "Include the reason when firing the TitleMoveComplete hook"
jenkins-bot [Tue, 18 Feb 2014 11:17:52 +0000 (11:17 +0000)]
Merge "Include the reason when firing the TitleMoveComplete hook"

10 years agoMerge "Update moment.js to 2.5.1"
jenkins-bot [Tue, 18 Feb 2014 08:57:04 +0000 (08:57 +0000)]
Merge "Update moment.js to 2.5.1"

10 years agoUpdate moment.js to 2.5.1
YuviPanda [Tue, 18 Feb 2014 08:43:22 +0000 (14:13 +0530)]
Update moment.js to 2.5.1

From
https://github.com/moment/moment/commit/abc3a14b2ed7c9f4ff420395f3e1f198459528d8

Change-Id: I58f8eed42439c0feb0355094202723f1a293e6a8

10 years agoMerge "Add Moment.js library for working with date and time"
jenkins-bot [Tue, 18 Feb 2014 08:29:29 +0000 (08:29 +0000)]
Merge "Add Moment.js library for working with date and time"

10 years agoAdded summary to Special:ProtectedPages and Special:ProtectedTitles.
Roman Tsukanov [Mon, 17 Feb 2014 16:26:39 +0000 (02:26 +1000)]
Added summary to Special:ProtectedPages and Special:ProtectedTitles.

Bug: 61454
Change-Id: I3a98f09458d4cb31b1ffe6ffd110b8515126fcea

10 years agoAdd Moment.js library for working with date and time
Timo Tijhof [Thu, 14 Nov 2013 22:05:51 +0000 (23:05 +0100)]
Add Moment.js library for working with date and time

Moment.js is a javascript library for parsing, validating,
manipulating, and formatting dates.

https://github.com/moment/moment/tree/ff32605

Change-Id: I6aa36d34bfbe8334c87d6ca449ec19b6a8daf8e7

10 years agoremove junk line that duplicates another line
kipod [Mon, 17 Feb 2014 17:31:05 +0000 (12:31 -0500)]
remove junk line that duplicates another line

Change-Id: I7fac4dd88b83ceeeca0a8964f55df0db47777cd8

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

Change-Id: I86c1c01411f82197c10f7c3cce25feede39f9166

10 years agoGive alreadyrolled error when rollback will be a null edit
umherirrender [Mon, 17 Feb 2014 19:24:13 +0000 (20:24 +0100)]
Give alreadyrolled error when rollback will be a null edit

When a rollback will not create a new version, the rollback should not
be success normally. Raise the alreadyrolled error to indicate this
situation.

This can happen, when the same user already rolled back his edit in the
meantime.

Change-Id: I953ae1ca79abb37bc44f3f8244a42a34111e6ab8

10 years agoFix typo in Nikerabbit's surname
Federico Leva [Mon, 17 Feb 2014 18:19:25 +0000 (19:19 +0100)]
Fix typo in Nikerabbit's surname

Change-Id: Ia76f2635a3bffe962815dd6c848ae0b3280f3bc5

10 years agoInclude the reason when firing the TitleMoveComplete hook
Sam Smith [Mon, 17 Feb 2014 13:02:54 +0000 (13:02 +0000)]
Include the reason when firing the TitleMoveComplete hook

As with the ArticleDeletionComplete hook, include the reason for
moving the title (article) when firing the TitleMoveComplete hook.

See I98703f99a47d5786b7a567df954ba09f6d8862ff for a supporting use
case.

Change-Id: I875446dddacff7e5a52a0b6e577e6a46a9ae2e6f

10 years agoMerge "Add ParserOutput::addJsConfigVars"
jenkins-bot [Mon, 17 Feb 2014 10:04:00 +0000 (10:04 +0000)]
Merge "Add ParserOutput::addJsConfigVars"

10 years agoMerge "Vector: Simplify text paths in tiny icons"
jenkins-bot [Mon, 17 Feb 2014 04:01:15 +0000 (04:01 +0000)]
Merge "Vector: Simplify text paths in tiny icons"

10 years agoVector: Simplify text paths in tiny icons
Bartosz Dziewoński [Sat, 8 Feb 2014 13:39:57 +0000 (14:39 +0100)]
Vector: Simplify text paths in tiny icons

document-icon.svg and news-icon.svg contained some text converted to
paths. As fonts are generally high-quality, the file size for both
icons was ridiculous (over 10 KB each). Used Inkscape's path simplify
function to smooth out the shapes – this isn't noticeable at the
sizes these icons are displayed at.

Bug: 59744
Change-Id: Ie0537a545c128665d9670bad92e22e9bf01cd59d

10 years agoRemove a HTML backwards-compatibility hack from 2011
Bartosz Dziewoński [Sat, 15 Feb 2014 19:29:13 +0000 (20:29 +0100)]
Remove a HTML backwards-compatibility hack from 2011

This reverts r97607.

Change-Id: Ic0659e42e54dd1f08a4dd36d32adb356c3c18ae8

10 years agoMerge "Remove unused setting $wgImageMagickIdentifyCommand"
jenkins-bot [Mon, 17 Feb 2014 03:05:09 +0000 (03:05 +0000)]
Merge "Remove unused setting $wgImageMagickIdentifyCommand"

10 years agoMerge "Fix comment for $wgUseImageResize"
jenkins-bot [Mon, 17 Feb 2014 02:44:28 +0000 (02:44 +0000)]
Merge "Fix comment for $wgUseImageResize"

10 years agoFix comment for $wgUseImageResize
This, that and the other [Sun, 16 Feb 2014 10:30:25 +0000 (21:30 +1100)]
Fix comment for $wgUseImageResize

It is not obsolete - it is used by the Bitmap class. I tested it and it
does indeed disable server-side image thumbnailing. The variable was
originally un-obsoleted in r48787, but accidentally re-marked obsolete
when merging upload-api/js2 branch in r53282.

Also moving it to a more logical location in DefaultSettings.

Change-Id: Ibb4d9784e997ea3b6ca7e2e0272635e6c8a30d26

10 years agoAdd ParserOutput::addJsConfigVars
umherirrender [Sun, 19 Jan 2014 15:39:46 +0000 (16:39 +0100)]
Add ParserOutput::addJsConfigVars

The OutputPage has variables for modules, moduleScripts, moduleStyles,
moduleMessages and the config vars, but the ParserOutput is missing the
last one.

With ParserOutput::addJsConfigVars it is possible to add scripts and it
config vars at one place and have not use the MakeGlobalVariablesScript
hook or other ways to get the needed javascript variable in the output.

Change-Id: I6ad61cca76805f6b9d76e053c98c7509c323d5da

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

Change-Id: Id3d35cd6092604494646483ef80a546b80d8fdb9

10 years agoActually write-back the container cache in SwiftFileBackend
Aaron Schulz [Sun, 16 Feb 2014 04:25:08 +0000 (20:25 -0800)]
Actually write-back the container cache in SwiftFileBackend

Change-Id: Ia072dd09c1fa5b4dec20a80e69425f7364488362

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 agoCologneBlue: Add class="mw-body" to div#article for consistency with other skins
Jack Phoenix [Sat, 15 Feb 2014 23:04:59 +0000 (01:04 +0200)]
CologneBlue: Add class="mw-body" to div#article for consistency with other skins

Change-Id: I93d25a60f3f9371a236ee3593186527815d356b7

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 15 Feb 2014 20:55:27 +0000 (20:55 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I7b391e39e428d5e358d52770b58b36f56a891036

10 years agoMerge "Get rid of mw.loader.go and mw.loader.version"
jenkins-bot [Sat, 15 Feb 2014 19:18:20 +0000 (19:18 +0000)]
Merge "Get rid of mw.loader.go and mw.loader.version"

10 years agoGet rid of mw.loader.go and mw.loader.version
Ori Livneh [Sat, 15 Feb 2014 19:08:12 +0000 (11:08 -0800)]
Get rid of mw.loader.go and mw.loader.version

- loader#go: No longer required; never truly 'public'.
- loader#version: deprecated since 1.18.

No usage in the MediaWiki: NS on the Wikimedia cluster.

Change-Id: I57d340015621c8dd8dae57f9cbca05a03d44ee75

10 years agomediawiki.js: Add missing bug number reference
Bartosz Dziewoński [Sat, 15 Feb 2014 16:11:07 +0000 (17:11 +0100)]
mediawiki.js: Add missing bug number reference

Should have been added in 67d400e7.

Change-Id: Ide6d060fe2d32c463d84057a289ab1feab576310

10 years agoAdd preliminary MS SQL support
Skizzerz [Fri, 3 Jan 2014 03:04:26 +0000 (21:04 -0600)]
Add preliminary MS SQL support

This likely has outstanding bugs but basic wiki operations work just fine in it.

Change-Id: I25df82065a307b9abc30c694f8c8afff0996d7c1

10 years agoCall WikiPage::doViewUpdates also on missing article page view
umherirrender [Fri, 17 Jan 2014 18:49:06 +0000 (19:49 +0100)]
Call WikiPage::doViewUpdates also on missing article page view

Reset notification timestamp also for deleted pages on the watchlist,
this will give a empty notification on api's
prop=info&inprop=notificationtimestamp for the timestamp after visiting
a deleted page.

This also reset the remaining newtalk flags for anon user talks which
are effected by bug 14077.

Change-Id: Ibdb22ab1e0bea02b6ef730cd5737f91801b8d700

10 years agoAdd sequence support for upsert in DatabaseOracle
umherirrender [Tue, 4 Feb 2014 18:35:10 +0000 (19:35 +0100)]
Add sequence support for upsert in DatabaseOracle

In the same way as in selectInsert

Bug: 53710
Change-Id: I26f891da808ecdc932e29eebda71df4c17a29617

10 years agoNote OOjs and OOjs-UI presence in the RELEASE-NOTES
James D. Forrester [Sat, 15 Feb 2014 02:22:02 +0000 (18:22 -0800)]
Note OOjs and OOjs-UI presence in the RELEASE-NOTES

Change-Id: I377304a70d19b87f35ea52ab2950f52fa1e72471

10 years agoAdd scripts to generate update builds of OOjs and OOjs UI
James D. Forrester [Sat, 15 Feb 2014 02:13:16 +0000 (18:13 -0800)]
Add scripts to generate update builds of OOjs and OOjs UI

Change-Id: Ib2e156cbd56dda3d32953d75bafca608eda974ad

10 years agoMerge "Update OOjs UI to v0.1.0-pre (424b40373e)"
jenkins-bot [Sat, 15 Feb 2014 02:04:22 +0000 (02:04 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (424b40373e)"

10 years agoUpdate OOjs UI to v0.1.0-pre (424b40373e)
James D. Forrester [Sat, 15 Feb 2014 01:59:15 +0000 (17:59 -0800)]
Update OOjs UI to v0.1.0-pre (424b40373e)

554683c Allow whitespace labels
3a9a4c1 Invert dependencies for OutlineItemWidget and PageLayout
51f7972 Fix occurrences of @mixin to be @mixins
424b403 FieldLayout, styling improvements and standardization

Change-Id: Iee8653d41c85d8f3a927e9a32587cdc3f42e0412

10 years agoUpdate OOjs to v1.0.7-pre (9c04f3e917)
James D. Forrester [Sat, 15 Feb 2014 01:54:19 +0000 (17:54 -0800)]
Update OOjs to v1.0.7-pre (9c04f3e917)

c723873 package.json: Set npm dependencies at fixed versions
d27e989 Set up node-jscs, pass it, and configure in local Gruntfile
e284c5f Update build notice and licence file for 2014
81d0f4a Tag v1.0.7
7b20b8a package.json: Update devDependencies
6c47d42 Implement generateDocs.sh script
9c04f3e core: Add a 'super' property to inheriting classes

Change-Id: I4c9d0bceed00ed290ac2454b54abe2e53a46857c

10 years agoTweak documentation for Title::getLocalUrl
Federico Leva [Tue, 4 Feb 2014 09:00:36 +0000 (10:00 +0100)]
Tweak documentation for Title::getLocalUrl

Because I was confused by the docs when I tried to use it.
https://gerrit.wikimedia.org/r/#/c/109945/1/specials/SpecialTranslationStash.php

Change-Id: Ic19704c6a57b633bb5ef1c8a06db9a562e67c6c9

10 years agoDeprecate wgSkipSkin in favor of wgSkipSkins
This, that and the other [Sat, 15 Feb 2014 00:04:24 +0000 (11:04 +1100)]
Deprecate wgSkipSkin in favor of wgSkipSkins

Per comments at
https://gerrit.wikimedia.org/r/#/c/110162/5/includes/DefaultSettings.php

Change-Id: I47e891464c9955e2ea8c655c8e2e19cb09f55baa

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 agoUnroll array_map in ResourceLoaderFileModule::readStyleFiles
umherirrender [Thu, 30 Jan 2014 18:39:51 +0000 (19:39 +0100)]
Unroll array_map in ResourceLoaderFileModule::readStyleFiles

ResourceLoaderFileModule::readStyleFile can throw exceptions which
produces warnings when using array_map.

Produces useful stacktraces when there are issues with style file like LESS compilation errors

Bug: 47844
Bug: 59858
Change-Id: I7c48b2c94752eee81f0eeb8e00d1f2b526d80dfc

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