lhc/web/wiklou.git
10 years agoMerge "CSSJanus: Account for attribute selectors in brace lookahead"
jenkins-bot [Sat, 22 Feb 2014 16:56:27 +0000 (16:56 +0000)]
Merge "CSSJanus: Account for attribute selectors in brace lookahead"

10 years agoPrevent Special:Diff from processing empty string
Sorawee Porncharoenwase [Sat, 22 Feb 2014 16:05:38 +0000 (16:05 +0000)]
Prevent Special:Diff from processing empty string

Umherirrender found that I77fdaf8e has a flaw. Currently it is possible
to go to index.php?title=Special:Diff (without any trailing string),
and the page will be redirected to index.php?diff= which is the last diff
of the main page. However, the intended way to deal with this case is to
raise ErrorPageError. This patch fixes the problem.

Change-Id: I3ff0b11671f27e77d9068930338ec8bbb674a89f

10 years agoUpdate OOjs UI to v0.1.0-pre (ddcf828854)
James D. Forrester [Sat, 22 Feb 2014 03:43:34 +0000 (19:43 -0800)]
Update OOjs UI to v0.1.0-pre (ddcf828854)

New changes:
12c3ead Localisation updates from https://translatewiki.net.
520b00a Add autosize option to OO.ui.TextInputWidget
cf3b31f [BREAKING CHANGE] Refactor dialog and window sets
57f95fe Add OO.ui.InlineMenuWidget

Change-Id: Ic85e5816ae674a669d1fdc1c860378c14ffe7f46

10 years agoMerge "Add scripts to generate update builds of OOjs and OOjs UI"
jenkins-bot [Sat, 22 Feb 2014 03:42:41 +0000 (03:42 +0000)]
Merge "Add scripts to generate update builds of OOjs and OOjs UI"

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

Change-Id: I71e13fdbb541c2fccbe303849a3c78f0c1260bd2

10 years agoAdd note about user_password_expires schema change
csteipp [Fri, 21 Feb 2014 21:04:13 +0000 (13:04 -0800)]
Add note about user_password_expires schema change

Followup to I92a9fc63b409b182b1d7b48781d73fc7216f8061

Change-Id: Ibf19549a0c99fa3a369695861d7078e88e18331a

10 years agoMerge "Password Expiration"
jenkins-bot [Fri, 21 Feb 2014 20:28:30 +0000 (20:28 +0000)]
Merge "Password Expiration"

10 years agoMerge "UploadStash us_props fix for Postgres"
jenkins-bot [Fri, 21 Feb 2014 14:40:14 +0000 (14:40 +0000)]
Merge "UploadStash us_props fix for Postgres"

10 years agoAdd visibility to User functions
aude [Fri, 21 Feb 2014 09:58:36 +0000 (10:58 +0100)]
Add visibility to User functions

Change-Id: Ib2bea5ba8132e79345b46ec3e6db7576af07a007

10 years agoMerge "Support >2 and JSON-formatted options in parser tests."
jenkins-bot [Thu, 20 Feb 2014 21:52:02 +0000 (21:52 +0000)]
Merge "Support >2 and JSON-formatted options in parser tests."

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

Change-Id: Ie1ce49320e2baf9daaa1b2b32dbe881c1e26026f

10 years agoPassword Expiration
csteipp [Wed, 9 Oct 2013 18:09:28 +0000 (11:09 -0700)]
Password Expiration

Add functionality to expire users' passwords:
 * Adds column to the user table to keep a password expiration
 * Adds $wgPasswordExpirationDays, which will force users to reset
   their passwords after a set number of days. By default, this set
   to false, so passwords never expire.
 * Adds a default grace period of 7 days, where if the user's password
   is expired, they can still login, but are encouraged to reset their
   password.
 * Adds hook 'LoginPasswordResetMessage' to update reset message, in
   case an extension wants to vary the message on a particular reset
   event.
 * Adds hook 'ResetPasswordExpiration' to allow extensions to change
   the expiration date when the user resets their password. E.g., if
   an extension wants to vary the expiration based on the user's group.

If the user is in the grace period, they get a password reset form
added to the login successful page. If an extension prevents showing
the login successful page (like CentralAuth), it should be updated to
show a password change form during the grace period. After the grace
period, the user will not be able to login without changing their
password.

Also prevents a successful reset if the user is "changing" their
password to their existing password.

No passwords will expire by default. Sites will have to call
User->expirePassword() from their own maintenance script to trigger a
password reset for a user.

Bug: 54997
Change-Id: I92a9fc63b409b182b1d7b48781d73fc7216f8061

10 years agoMake ApiCreateAccount return camelcase statuses
YuviPanda [Thu, 20 Feb 2014 15:06:59 +0000 (20:36 +0530)]
Make ApiCreateAccount return camelcase statuses

Bug: 61663
Change-Id: I214d8eb7c9d49f55f49c5228c92806601c5499f6

10 years agoMerge "Don't print mediawiki.notification messages"
jenkins-bot [Thu, 20 Feb 2014 12:07:31 +0000 (12:07 +0000)]
Merge "Don't print mediawiki.notification messages"

10 years agoBreak out rotation mixin into its own file
Matthew Flaschen [Thu, 20 Feb 2014 03:24:48 +0000 (22:24 -0500)]
Break out rotation mixin into its own file

Before, including mediawiki.mixins always caused keyframes to appear
in the output, regardless of whether .rotation was used.

Change-Id: Ibdd092ccc6dafd444407a6756c33830396f56b50

10 years agoMerge "Add oojs-ui to the core documentation generator"
Bartosz Dziewoński [Thu, 20 Feb 2014 11:27:54 +0000 (11:27 +0000)]
Merge "Add oojs-ui to the core documentation generator"

10 years agoMerge "QUnit.newMwEnvironment: Disable mw.log#warn while copying mw.config"
jenkins-bot [Thu, 20 Feb 2014 11:11:41 +0000 (11:11 +0000)]
Merge "QUnit.newMwEnvironment: Disable mw.log#warn while copying mw.config"

10 years agoMerge "Remove undefined $env and TODO comment for it too"
jenkins-bot [Thu, 20 Feb 2014 09:53:06 +0000 (09:53 +0000)]
Merge "Remove undefined $env and TODO comment for it too"

10 years agoAdded concurrent HEAD request support for Swift
Aaron Schulz [Thu, 16 Jan 2014 00:46:01 +0000 (16:46 -0800)]
Added concurrent HEAD request support for Swift

* This adds a new preloadFileStat() method to FileBackend.
* FileBackend::doOperations() makes use of this instead of primeFileCache().
  The later was mostly useless due to the 'latest' flag, which stat entries
  rarely had (and since they use add(), 'latest' ones do not override the
  non-'latest' ones).
* Simplified primeContainerCache/primeFileCache to no longer accept
  FileOp objects and made sure nothing passes those in anymore.

Change-Id: Iee3878cadd69c3a594c701c0aff81aab5f473de5

10 years agomediawiki.notification: Return the Notification object from .notify calls
Bartosz Dziewoński [Sat, 1 Feb 2014 02:41:49 +0000 (03:41 +0100)]
mediawiki.notification: Return the Notification object from .notify calls

The implementation is solid, stable and already includes sanity checks
that make it difficult to shoot oneself in the foot.

This essentially makes the class no longer private; adjusted
documentation accordingly.

Bug: 57400
Change-Id: Icecc75e05a1f9a46e8de984c401a0292817d0d4c

10 years agoQUnit.newMwEnvironment: Disable mw.log#warn while copying mw.config
Timo Tijhof [Thu, 20 Feb 2014 07:06:05 +0000 (08:06 +0100)]
QUnit.newMwEnvironment: Disable mw.log#warn while copying mw.config

As of 89a8fe4, mw.log#warn is available in non-debug mode so that
e.g. MWDeprecationWarning are emitted whenever such property is
accessed.

Due to the way QUnit.newMwEnvironment makes a copy of the live
config for the duration of a test run (using $.extend) this
causes all the accessors to be triggered.

As a result the qunit log is inflated to 100s of MWDeprecationWarning
entries before every single test:

 http://integration.wikimedia.org/ci/job/mediawiki-core-qunit/16525/console

Using Object.create (with polyfill) doesn't work since mw.Map#get
only resolves own properties.

Change-Id: I7285c56bd1ae7ef2efae15ee0427eeb77bc240ac

10 years agoDon't print mediawiki.notification messages
Matthew Flaschen [Thu, 13 Feb 2014 20:03:25 +0000 (15:03 -0500)]
Don't print mediawiki.notification messages

These are for transient notifications, so printing them does not make
sense.

Change-Id: Ia5eadcfcd4b98685e3c60a3a68f58b985d366b76

10 years agoRemove undefined $env and TODO comment for it too
Reedy [Thu, 20 Feb 2014 03:47:25 +0000 (03:47 +0000)]
Remove undefined $env and TODO comment for it too

Change-Id: Ie69a68c8ff429ac79796890d1843cf2a2b9c32e8

10 years agoAdd oojs-ui to the core documentation generator
Mark Holmquist [Thu, 20 Feb 2014 00:42:52 +0000 (16:42 -0800)]
Add oojs-ui to the core documentation generator

Change-Id: I32dbfc69e96c8ab368aa480348f395ee1c0d8c0d

10 years agoHTMLForm: Allow i18n of 'options'
Brad Jorsch [Tue, 18 Feb 2014 20:28:06 +0000 (15:28 -0500)]
HTMLForm: Allow i18n of 'options'

One shortcoming in HTMLForm is that fields that use the 'options'
parameter (e.g. <select>) have no easy way for the individual labels to
be localized.

This change adds a new parameter type, 'options-messages', where the
keys are message keys rather than bare strings (similar to the
difference between 'label' and 'label-message'). It also abstracts out
the fetching of the various option parameters, and changes the necessary
field classes to use it.

Change-Id: If4175332405d26c7ff2e8fbe100bcad61762ce6f

10 years agoRefactor out HTMLFormField class and type normalisation code
Reedy [Tue, 18 Feb 2014 01:30:13 +0000 (01:30 +0000)]
Refactor out HTMLFormField class and type normalisation code

Also include fieldname when exceptioning over bad descriptor class

Change-Id: Ia612453625fdeb611875d5ffc724cef2abe4f776

10 years agoUploadStash us_props fix for Postgres
Aaron Schulz [Wed, 29 Jan 2014 18:18:53 +0000 (10:18 -0800)]
UploadStash us_props fix for Postgres

* Follows up c7f4586fe1e405e5ad8e4e504b024248a36eef57

Change-Id: I5a8568efaf0817ca743de722d5486457ff1a8d87

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 19 Feb 2014 20:03:32 +0000 (20:03 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Id88aa24093b40a87b6beee70d81124179f95f006

10 years agoMerge "Added some profiling calls to Swift backend"
jenkins-bot [Wed, 19 Feb 2014 19:40:32 +0000 (19:40 +0000)]
Merge "Added some profiling calls to Swift backend"

10 years agoMerge "Unroll array_map in ResourceLoaderFileModule::readStyleFiles"
jenkins-bot [Wed, 19 Feb 2014 19:20:50 +0000 (19:20 +0000)]
Merge "Unroll array_map in ResourceLoaderFileModule::readStyleFiles"

10 years agomediawiki.log: Move #warn and #deprecate to mediawiki.js and add tracking
Timo Tijhof [Fri, 7 Feb 2014 02:36:53 +0000 (18:36 -0800)]
mediawiki.log: Move #warn and #deprecate to mediawiki.js and add tracking

* Moved #warn and #deprecate from mediawiki.log.js (only loaded
  in debug mode) to main mediawiki.js.
  This means warnings will now be available in the console at all
  times instead of only when the user (re)loaded the page in
  ResourceLoader's debug mode. Deprecation notices are generally
  useful and should be discoverable from the console (just like
  notices from the browser itself for JS and CSS).
  It doesn't affect user experience as the notices invisible to
  the page and sent to an appropiate view (e.g. developer console).
  Our console emulator (the HTML-based  one, like Firebug Lite)
  remains exclusively loaded in debug mode.

* Start tracking usage via mw.track.
  For example, calls to mw.user.wikiGetlink, will be tracked as:
  { topic: "mw.deprecate", data: "wikiGetlink" }
  As all tracking, this isn't sent or stored anywhere by default.
  Extensions, hooks and other scripts can subscribe and actually
  log them (i.e. WikimediaEvents extension).

Also:

* Fixed odd tab between 'var' and 'args' in mediawiki.log.js

* Added minor optimisation by using a single local lookup for slice
  instead of three properties deep from a global variable lookup.

* Moved down code for mw.log in mediawiki.js so that we don't
  mix nested classes (mw.log#...) between other sibling methods
  of mw itself. This also simplifies the documentation by using
  jsduck's linear @class context.

* Simplify console && console.log check in mediawiki.log.js polyfil.

Change-Id: I67737de5abe0d655091fbe453a3b924f5068308c

10 years agoSupport >2 and JSON-formatted options in parser tests.
C. Scott Ananian [Wed, 19 Feb 2014 17:14:08 +0000 (07:14 -1000)]
Support >2 and JSON-formatted options in parser tests.

The parserTests options handling had a regex capture bug which caused
it to discard all but the first and last option values.  Fix this (by
separating value splitting from key/value capture).

Add support for JSON-valued options, which parsoid would like to begin
using.  Add support for backslash escapes in quoted strings.

Change-Id: I69323bb44b7a481bad6f490d0773a984239c0b9c

10 years agoMerge "mediawiki.mixins.less: Add a link to source of the .background-image-svg techn...
jenkins-bot [Wed, 19 Feb 2014 17:14:08 +0000 (17:14 +0000)]
Merge "mediawiki.mixins.less: Add a link to source of the .background-image-svg technique"

10 years agomediawiki.mixins.less: Add a link to source of the .background-image-svg technique
Bartosz Dziewoński [Wed, 19 Feb 2014 17:09:26 +0000 (18:09 +0100)]
mediawiki.mixins.less: Add a link to source of the .background-image-svg technique

http://pauginer.tumblr.com/post/36614680636/invisible-gradient-technique

Change-Id: I2418f7704fef31d3a3bee8eed5e8bfb628086df3

10 years agoRemoved 'Enable simplified search bar (Vector skin only)' from MW user Preference
tonythomas01 [Thu, 5 Dec 2013 16:53:16 +0000 (22:23 +0530)]
Removed 'Enable simplified search bar (Vector skin only)' from MW user Preference

The vector-simplesearch preference is enabled by default since version 1.22.
The option is removed to decrease the clutter in the preference page

Bug: 52815
Change-Id: I6d8dd997a4c4a6b8fb06b4674dda5f306432c6af

10 years agoMerge "Better message wording. See also https://translatewiki.net/wiki/Thread:Support...
jenkins-bot [Wed, 19 Feb 2014 16:17:27 +0000 (16:17 +0000)]
Merge "Better message wording. See also https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Prefs-help-watchlist-token2/en"

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 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)"