lhc/web/wiklou.git
9 years agoUpdate Moment.js from 2.8.1 to 2.8.3
paladox [Sat, 6 Sep 2014 12:54:30 +0000 (12:54 +0000)]
Update Moment.js from 2.8.1 to 2.8.3

Project site
* http://momentjs.com
* https://github.com/moment/moment/

File source
* https://github.com/moment/moment/tree/2.8.3

Changelog
* https://github.com/moment/moment/blob/2.8.3/CHANGELOG.md

Difference between 2.8.1 and 2.8.3

1.8.3

Bugfixes:
* #1801 proper pluralization for Arabic
* #1833 improve spm integration
* #1871 fix zone bug caused by Firefox 24
* #1882 Use hh:mm in Czech
* #1883 Fix 2.8.0 regression in duration as conversions
* #1890 Faster travis builds
* #1892 Faster isBefore/After/Same
* #1848 Fix flaky month diffs
* #1895 Fix 2.8.0 regression in moment.utc with format array
* #1896 Support setting invalid instance locale (noop)
* #1897 Support moment([str]) in addition to moment([int])

1.8.2

Minor bugfixes:
* #1874 use  Object.prototype.hasOwnProperty  instead of obj.hasOwnProperty  (ie8 bug)
* #1873 add  duration#toString()
* #1859 better month/weekday names in norwegian
* #1812 meridiem parsing for greek
* #1804 spanish del -> de
* #1800 korean LT improvement

Change-Id: I60595e8ea41e136c7afee12ad3702ecec6dd4aef

9 years agoMerge "resourceloader: Only store sources' load.php urls"
jenkins-bot [Sun, 7 Sep 2014 23:10:33 +0000 (23:10 +0000)]
Merge "resourceloader: Only store sources' load.php urls"

9 years agoMerge "Warn about bug 44011"
jenkins-bot [Sun, 7 Sep 2014 22:28:21 +0000 (22:28 +0000)]
Merge "Warn about bug 44011"

9 years agoMerge "Article: Don't hardcode <img> tags on redirect page"
jenkins-bot [Sun, 7 Sep 2014 21:36:03 +0000 (21:36 +0000)]
Merge "Article: Don't hardcode <img> tags on redirect page"

9 years agoMerge "Move mediawiki.png to assets/ directory"
jenkins-bot [Sun, 7 Sep 2014 21:26:50 +0000 (21:26 +0000)]
Merge "Move mediawiki.png to assets/ directory"

9 years agoMerge "Move file type icons to new assets/ directory"
jenkins-bot [Sun, 7 Sep 2014 21:26:00 +0000 (21:26 +0000)]
Merge "Move file type icons to new assets/ directory"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 7 Sep 2014 19:30:51 +0000 (21:30 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I5e83ff26f39d55131aceb150cb814e073c243d1e

9 years agoWarn about bug 44011
Jackmcbarn [Sun, 7 Sep 2014 15:08:20 +0000 (11:08 -0400)]
Warn about bug 44011

Add a note to the documentation for $wgURLProtocols warning about
bug #44011.

Change-Id: Ifc8a1efefb862173c897796395532fda8300439f

9 years agoMerge "Article: Localize alt text of redirect icon"
jenkins-bot [Sat, 6 Sep 2014 12:54:30 +0000 (12:54 +0000)]
Merge "Article: Localize alt text of redirect icon"

9 years agoMimeMagic: Use Config instead of globals
Kunal Mehta [Sat, 23 Aug 2014 08:13:19 +0000 (01:13 -0700)]
MimeMagic: Use Config instead of globals

Change-Id: I07d1420deddeb886c714d7e2c99f8b456573a07f

9 years agomediawiki.ui: Correct documentation numbering in form component
Prateek Saxena [Sat, 6 Sep 2014 11:20:43 +0000 (16:50 +0530)]
mediawiki.ui: Correct documentation numbering in form component

Change-Id: I38d5df1fe9122080168dce7060be53bdb4963e99

9 years agoUpdate OOjs UI to v0.1.0-pre (72f047e5d8)
James D. Forrester [Sat, 6 Sep 2014 00:15:09 +0000 (17:15 -0700)]
Update OOjs UI to v0.1.0-pre (72f047e5d8)

New changes:
72f047e Followup 67f83f1: fall back to empty string to avoid 'undefined'

Change-Id: Ieb49700a48e2a2c7b00fec551e96ed7830dc3f01

9 years agoMerge "mw.Debug.profile: Tweak support check to handle PhantomJS"
jenkins-bot [Fri, 5 Sep 2014 23:28:20 +0000 (23:28 +0000)]
Merge "mw.Debug.profile: Tweak support check to handle PhantomJS"

9 years agoMerge "img_auth: fix mismatched profiling"
jenkins-bot [Fri, 5 Sep 2014 23:17:12 +0000 (23:17 +0000)]
Merge "img_auth: fix mismatched profiling"

9 years agoMerge "resourceloader: Pass a Config to the ResourceLoader constructor"
jenkins-bot [Fri, 5 Sep 2014 23:06:31 +0000 (23:06 +0000)]
Merge "resourceloader: Pass a Config to the ResourceLoader constructor"

9 years agoimg_auth: fix mismatched profiling
Chad Horohoe [Fri, 5 Sep 2014 23:04:42 +0000 (16:04 -0700)]
img_auth: fix mismatched profiling

Change-Id: Iab2ed48ef00e55dcf5313b9c2a94ffdca2fdb790

9 years agoresourceloader: Pass a Config to the ResourceLoader constructor
Kunal Mehta [Sat, 23 Aug 2014 06:18:20 +0000 (23:18 -0700)]
resourceloader: Pass a Config to the ResourceLoader constructor

Instead of relying on the default being main, which is deprecated.

Change-Id: I200e2c2dc922ae1fa5fa68d449403d0287e41786

9 years agomw.Debug.profile: Tweak support check to handle PhantomJS
Matthew Flaschen [Fri, 11 Jul 2014 04:40:40 +0000 (00:40 -0400)]
mw.Debug.profile: Tweak support check to handle PhantomJS

* Latest PhantomJS (1.9.7) supports Array.prototype.map,
  Array.prototype.reduce, Array.prototype.filter, and
  document.createElementNS, but not Function.prototype.bind
* Check all of these in the init function, and if they're available
  continue (unless there's no profiling data) and initialize
  this.createSvgElement (previously done inline)
* Accordingly, rename buildRequiresES5 to buildRequiresBrowserFeatures
  and tweak message

Change-Id: If464b1093ec445afbb6c6b8c230e0e2669ad8c5c

9 years agoMerge "Release notes for b1d215726e"
jenkins-bot [Fri, 5 Sep 2014 22:02:22 +0000 (22:02 +0000)]
Merge "Release notes for b1d215726e"

9 years agoRelease notes for b1d215726e
Aaron Schulz [Fri, 5 Sep 2014 21:55:10 +0000 (14:55 -0700)]
Release notes for b1d215726e

Change-Id: I311c74ea038a59383280960187c48dbc1ba275a0

9 years agoMerge "Removed LCStoreAccel class"
jenkins-bot [Fri, 5 Sep 2014 21:54:37 +0000 (21:54 +0000)]
Merge "Removed LCStoreAccel class"

9 years agoUpdate OOjs UI to v0.1.0-pre (8ad150e4e7)
James D. Forrester [Fri, 5 Sep 2014 21:30:35 +0000 (14:30 -0700)]
Update OOjs UI to v0.1.0-pre (8ad150e4e7)

New changes:
94b6415 Use grunt-svg2png to convert SVG icons to PNG for distribution
319052d window.svg: Fix XML validity
eab00f2 build: Remove documentation lies from 'copy' task
67f83f1 Make CSS transplantation work in IE10
8ad150e Make the background reset for dialogs in Apex work in IE10

Change-Id: I01efa40a98c4e2d23dea1060cd8116dd30a1ddcd

9 years agoMerge "Added a BloomCacheRedisTest class"
jenkins-bot [Fri, 5 Sep 2014 21:28:00 +0000 (21:28 +0000)]
Merge "Added a BloomCacheRedisTest class"

9 years agoRemoved LCStoreAccel class
Aaron Schulz [Fri, 5 Sep 2014 20:33:10 +0000 (13:33 -0700)]
Removed LCStoreAccel class

* Since individual message keys can expire, this can cause broken
  messages when such a key is needed (the message is treated as if
  it did not exist). The base class clearly documents a need for
  more atomicity (only top level keys can fall it separately).

Change-Id: I992bba77a0afdeeeade8be013708277b79f22314

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 5 Sep 2014 20:18:49 +0000 (22:18 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia7c9948f92b74f6a3c0d8dfa789e666640420bd5

9 years agoArticle: Don't hardcode <img> tags on redirect page
Bartosz Dziewoński [Fri, 5 Sep 2014 14:12:04 +0000 (16:12 +0200)]
Article: Don't hardcode <img> tags on redirect page

* Created a ResourceLoader module for redirect page styling.
* Fixed a couple of bugs in Article code.

Keeping two of the old files for a while because they might still be
referenced by something (bug 69277 comment 11).

Bug: 69277
Change-Id: I8fa565833545e41d0232101566da8c5ffa850e36

9 years agoMerge "Add parser tests about building table with {{!}}"
jenkins-bot [Fri, 5 Sep 2014 19:36:40 +0000 (19:36 +0000)]
Merge "Add parser tests about building table with {{!}}"

9 years agoMerge "Remove unneeded spaces inside html in NoLocalSettings.php"
jenkins-bot [Fri, 5 Sep 2014 19:33:17 +0000 (19:33 +0000)]
Merge "Remove unneeded spaces inside html in NoLocalSettings.php"

9 years agoMerge "Sanitizer::escapeId: Decode entity before replacing spaces"
jenkins-bot [Fri, 5 Sep 2014 19:32:47 +0000 (19:32 +0000)]
Merge "Sanitizer::escapeId: Decode entity before replacing spaces"

9 years agoMerge "Refactor: Use local variables for editsections in Parser"
jenkins-bot [Fri, 5 Sep 2014 19:30:35 +0000 (19:30 +0000)]
Merge "Refactor: Use local variables for editsections in Parser"

9 years agoMerge "Add tests for User::getCanonicalName()"
jenkins-bot [Fri, 5 Sep 2014 19:29:57 +0000 (19:29 +0000)]
Merge "Add tests for User::getCanonicalName()"

9 years agoMerge "Improve tests for OutputPage::makeResourceLoaderLink"
jenkins-bot [Fri, 5 Sep 2014 19:25:26 +0000 (19:25 +0000)]
Merge "Improve tests for OutputPage::makeResourceLoaderLink"

9 years agoMerge "mediawiki.notification: Also hide #mw-notification-area upon creation"
jenkins-bot [Fri, 5 Sep 2014 19:00:54 +0000 (19:00 +0000)]
Merge "mediawiki.notification: Also hide #mw-notification-area upon creation"

9 years agomediawiki.notification: Also hide #mw-notification-area upon creation
Roan Kattouw [Fri, 5 Sep 2014 18:40:27 +0000 (11:40 -0700)]
mediawiki.notification: Also hide #mw-notification-area upon creation

6c5b246 made it so #mw-notification-area was hidden when the last
notification was dismissed, but it still left it visible when
initially creating it. This meant that if you used mw.notify(),
you had no problems, but if you loaded the mediawiki.notification
module manually and called it manually, you would still get
a 12px-tall click-stealing invisible div until the first notification
was displayed.

Bug: 52659
Change-Id: Ibec399ac9ef083036aa2b31a38bcc1bc36b87d96

9 years agoMerge "Remove Parsoid-specific padding and background"
jenkins-bot [Fri, 5 Sep 2014 18:35:46 +0000 (18:35 +0000)]
Merge "Remove Parsoid-specific padding and background"

9 years agoMerge "Typo fix: HMTL → HTML"
jenkins-bot [Fri, 5 Sep 2014 18:07:34 +0000 (18:07 +0000)]
Merge "Typo fix: HMTL → HTML"

9 years agoRemove Parsoid-specific padding and background
Gabriel Wicke [Fri, 5 Sep 2014 18:04:30 +0000 (11:04 -0700)]
Remove Parsoid-specific padding and background

Those shouldn't be necessary any more, and are getting in the way for visual
diffing.

Change-Id: Ic7ea7d014d27bc7cf9a3d7c26808c96bf7f1d8fb

9 years agoMove mediawiki.png to assets/ directory
Bartosz Dziewoński [Fri, 5 Sep 2014 17:18:11 +0000 (19:18 +0200)]
Move mediawiki.png to assets/ directory

Bug: 69277
Change-Id: I7936d878de23b1b85d5e0a3a3a9572101681dfdc

9 years agoMove file type icons to new assets/ directory
Bartosz Dziewoński [Fri, 5 Sep 2014 17:13:52 +0000 (19:13 +0200)]
Move file type icons to new assets/ directory

This patch introduces the assets/ directory, which will be used for
static files included with MediaWiki that can't meaningfully be loaded
via ResourceLoader.

Bug: 69277
Change-Id: Ifd87387f20a6355a6e273628b37735c207e4c53a

9 years agoAdded a BloomCacheRedisTest class
Aaron Schulz [Fri, 5 Sep 2014 00:06:09 +0000 (17:06 -0700)]
Added a BloomCacheRedisTest class

Change-Id: Id0b8f6dfa96f5f56dcb77eebdca506c82a36a1c2

9 years agomediawiki.api: Actually don't log request error 'abort'
Bartosz Dziewoński [Sat, 30 Aug 2014 15:26:31 +0000 (17:26 +0200)]
mediawiki.api: Actually don't log request error 'abort'

173930cb32, once more, with feeling. I'm not sure why the previous
version has ever worked, given that our own code (a few lines above
this, starting from '// Make the AJAX request') is written in such a
way that `code` can never be `'abort'`.

Bug: 65442
Change-Id: I34bcaa362806bf9e80fb40bc92723f85bea1fb64

9 years agobuild: Bump grunt-banana-checker to 0.2.0 and fix flagged issue
James D. Forrester [Sun, 31 Aug 2014 22:19:15 +0000 (15:19 -0700)]
build: Bump grunt-banana-checker to 0.2.0 and fix flagged issue

Change-Id: I808384b28684799c89a7c33dd86c3bcf7764cc25

9 years agoMerge "Move log log_page entries are now that of the moved page"
jenkins-bot [Fri, 5 Sep 2014 15:22:30 +0000 (15:22 +0000)]
Merge "Move log log_page entries are now that of the moved page"

9 years agoMerge "APIQueryInfo: Allow fetching the canonical url of a page"
jenkins-bot [Fri, 5 Sep 2014 14:15:57 +0000 (14:15 +0000)]
Merge "APIQueryInfo: Allow fetching the canonical url of a page"

9 years agoArticle: Localize alt text of redirect icon
Bartosz Dziewoński [Fri, 5 Sep 2014 13:54:14 +0000 (15:54 +0200)]
Article: Localize alt text of redirect icon

Change-Id: If0632c51d878d4a18a881eb0b58e8c1857f6d020

9 years agoReset searchTerms[] before populating.
Chad Horohoe [Fri, 5 Sep 2014 13:51:27 +0000 (06:51 -0700)]
Reset searchTerms[] before populating.

Otherwise, multiple calls to searchQuery() would accumulate search
terms. searchTerms[] is defined in SearchEngine so we can't just get
rid of it altogether.

Change-Id: Iddbb3920e3a9d5849c99fe90d2d725d16019b51d

9 years agoAdd tests for User::getCanonicalName()
umherirrender [Mon, 25 Aug 2014 18:24:10 +0000 (20:24 +0200)]
Add tests for User::getCanonicalName()

Change-Id: I00097a4706c4ada41a5697470b550c925ae6051d

9 years agoTypo fix: HMTL → HTML
Bartosz Dziewoński [Fri, 5 Sep 2014 13:40:12 +0000 (15:40 +0200)]
Typo fix: HMTL → HTML

Change-Id: Id2bb52b92b7cf47a7a22506a01663acfee606ac4

9 years agoRefactor: Use local variables for editsections in Parser
umherirrender [Fri, 4 Jul 2014 20:19:48 +0000 (22:19 +0200)]
Refactor: Use local variables for editsections in Parser

In Parser.php an array was built and then the elements of that array
were used, replaced this by local vars.

In ParserOutput.php also use local vars to make the code more readable.
Also inlined a private callback by using an anonymous function.

Change-Id: I1c31c9e4855f93a8fb65e1c21faba46fcdcb1f4b

9 years agoAPIQueryInfo: Allow fetching the canonical url of a page
Kunal Mehta [Fri, 5 Sep 2014 10:20:27 +0000 (03:20 -0700)]
APIQueryInfo: Allow fetching the canonical url of a page

Change-Id: If0f62481d059815390b74ccf8167957bc1dbce52

9 years agoUpdate Special:ChangeEmail to use HTMLForm
Alexandre Emsenhuber [Sun, 29 Jun 2014 13:17:43 +0000 (15:17 +0200)]
Update Special:ChangeEmail to use HTMLForm

Makes the code shorter and easier to read.

Change-Id: I629cee4264fad6cde98495c0e8daffe5ea245b48

9 years agoresourceloader: Only store sources' load.php urls
Kunal Mehta [Mon, 25 Aug 2014 08:02:48 +0000 (01:02 -0700)]
resourceloader: Only store sources' load.php urls

Previously ResourceLoader would store any arbitrary data about a
source, provided it had a 'loadScript' key. It would register
the 'local' source with an additional 'apiScript' key, which was
also documented in DefaultSettings.php. However, it was
completely unused outside of the ForeignAPIGadgetRepo class in
Gadgets 2.0, which should be changed to take an API url as a
parameter. This was not useful as it was not ever formally
exposed, and it could not be depended upon that a source had
registered an 'apiScript' key.

For backwards compatability, both ResourceLoader::addSource()
and mw.loader.addSource() will both take an array/object, but
discard all parameters except for 'loadScript'.

Also added tests for ResourceLoader::addSource().

Bug: 69878
Change-Id: I4205cf788cddeec13b619be0c3576197dec1b8bf

9 years agoMerge "mediawiki.skinning: Remove obsolete #firstHeading selector"
jenkins-bot [Thu, 4 Sep 2014 22:44:22 +0000 (22:44 +0000)]
Merge "mediawiki.skinning: Remove obsolete #firstHeading selector"

9 years agoMerge "Allow extensions to indicate a username doesn't exist"
jenkins-bot [Thu, 4 Sep 2014 22:41:27 +0000 (22:41 +0000)]
Merge "Allow extensions to indicate a username doesn't exist"

9 years agoAllow extensions to indicate a username doesn't exist
csteipp [Thu, 28 Aug 2014 19:46:09 +0000 (12:46 -0700)]
Allow extensions to indicate a username doesn't exist

Provide a way for extensions to nicely handle when a username doesn't
exist, during the login process. This only is obviously only for the
case when we know why it doesn't exist (it was renamed, deleted, etc.)

See I06b9b6322e408868f516aeabd61c6580f304e009 for CentralAuth use case.

Bug: 67995
Change-Id: If48d59afa63ace68c147eca952f1d4f43acc105f

9 years agoEditPageTest: Rewrite testCreatePage() to use a data provider
Chad Horohoe [Thu, 4 Sep 2014 02:30:15 +0000 (19:30 -0700)]
EditPageTest: Rewrite testCreatePage() to use a data provider

Change-Id: I415f9fdbca6a625d8d1e9ff4c05c861a96dfa290

9 years agoArticleTablesTest: Clarify test name and docs
Chad Horohoe [Thu, 4 Sep 2014 01:58:33 +0000 (18:58 -0700)]
ArticleTablesTest: Clarify test name and docs

Change-Id: I55778b7e41da520a248fba2cb46e2c42745c6519

9 years agoFix directions of some pagers
Bartosz Dziewoński [Thu, 4 Sep 2014 20:13:53 +0000 (22:13 +0200)]
Fix directions of some pagers

Follow-up to 6a637fb0. Turns out these are more confusing than
I originally suspected.

Bug: 70413
Change-Id: Ic4245d9ac14e4cd2f8f5aca0878edcd4dcf85521

9 years agoMerge "Bound the cache size of numberofWatchingusers()"
jenkins-bot [Thu, 4 Sep 2014 20:03:11 +0000 (20:03 +0000)]
Merge "Bound the cache size of numberofWatchingusers()"

9 years agoBound the cache size of numberofWatchingusers()
Aaron Schulz [Wed, 20 Aug 2014 23:58:13 +0000 (16:58 -0700)]
Bound the cache size of numberofWatchingusers()

Change-Id: I60c9898318e340ee3c97d24b528d85a5f8c492e5

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 4 Sep 2014 19:47:32 +0000 (21:47 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I68e53f64512010d53117d424458cc37ee078b7fb

9 years agoBe more careful with Special: prefix searching
Nik Everett [Thu, 4 Sep 2014 18:59:19 +0000 (14:59 -0400)]
Be more careful with Special: prefix searching

Bug: 70409
Change-Id: I3764bff1bf7b2d11a7c8f8cc8564eeae9953ea30

9 years agoProfile User::checkPassword
Aaron Schulz [Thu, 4 Sep 2014 18:02:34 +0000 (11:02 -0700)]
Profile User::checkPassword

Change-Id: I2e7e9574a56725f4e7c34415b241006a933f631d

9 years agoMerge "mediawiki.skinning.content.externallinks: Code quality tweaks"
jenkins-bot [Thu, 4 Sep 2014 17:28:16 +0000 (17:28 +0000)]
Merge "mediawiki.skinning.content.externallinks: Code quality tweaks"

9 years agoMerge "LocalisationCache: Process one fallback at a time"
jenkins-bot [Thu, 4 Sep 2014 17:15:42 +0000 (17:15 +0000)]
Merge "LocalisationCache: Process one fallback at a time"

9 years agomediawiki.skinning: Remove obsolete #firstHeading selector
Timo Tijhof [Thu, 4 Sep 2014 16:57:22 +0000 (18:57 +0200)]
mediawiki.skinning: Remove obsolete #firstHeading selector

Too strong and forces all overrides to also use the ID. The
fallback skin doesn't even have the ID.

Change-Id: Iacf382d49520228a073ed2776b18303bb00b9c0d

9 years agoLocalisationCache: Process one fallback at a time
Brad Jorsch [Wed, 3 Sep 2014 16:52:33 +0000 (12:52 -0400)]
LocalisationCache: Process one fallback at a time

Currently LocalisationCache merges the core data for all languages in
the fallback chain, then the extension data, then merges those two, and
then gives extensions like LocalisationUpdate a chance to make final
overrides with the LocalisationCacheRecache hook.

But if LocalisationUpdate doesn't want to locally duplicate all the
messages for every language (e.g. r104041), LocalisationCacheRecache is
too late: the information as to whether a message came from the primary
language or a fallback has been lost, so when LU itself has an override
for a fallback language it can't know whether or not the existing
message should be overridden or not.

The solution is for LocalisationCache to gather the data for each
fallback language separately, call a new hook for LU to affect just that
language (LocalisationCacheRecacheFallback), and only then merge the
fallback languages together.

Bug: 68781
Change-Id: Iacfe96063fcc66c1f97ca5e5292a8fc70af988cf

9 years agoMove mediawiki.skinning.* modules from skins/common/ to resources/
Bartosz Dziewoński [Sun, 31 Aug 2014 00:48:07 +0000 (02:48 +0200)]
Move mediawiki.skinning.* modules from skins/common/ to resources/

This is a BREAKING CHANGE, as we have used the names of these three
files in skins/common/ as a "public API" for skins for a long time.
Doing so has been deprecated (but still supported) in 1.23.

We must clear them out at some point, and now is as good a time as
ever, with the 1.23 LTS release still supporting the old way.

Skins may no longer rely on the presence of commonElements.css,
commonContent.css and commonInterface.css in skins/common/ and
include them in their style modules. The corresponding ResourceLoader
modules must be used instead:

- skins/common/commonElements.css  → 'mediawiki.skinning.elements' module
- skins/common/commonContent.css   → 'mediawiki.skinning.content' module
- skins/common/commonInterface.css → 'mediawiki.skinning.interface' module

Follow-up to I3947eaac (where I said I intend to do this) and I56758908.

Bug: 69277
Change-Id: Id8456c570ff406822a8befad8f42f528ef5bd3a6

9 years agoUse 'div' instead of 'section' and 'article'
Prateek Saxena [Thu, 31 Jul 2014 13:44:04 +0000 (19:14 +0530)]
Use 'div' instead of 'section' and 'article'

The user-agent stylesheet was making the size
of both the h1's and h2's 1.5em as it was inside
<article> and <section>

:-webkit-any(article,aside,nav,section)
h1 - 1.5em user agent stylesheet
~h1 - 2em~ user agent stylesheet

Change-Id: Ied1d03f63c132dc3904d05cd4e55f70aa3f80c3d

9 years agoUpdate OOjs UI to v0.1.0-pre (36d0c7dc3b)
James D. Forrester [Thu, 4 Sep 2014 00:40:40 +0000 (17:40 -0700)]
Update OOjs UI to v0.1.0-pre (36d0c7dc3b)

New changes:
01dd8a7 Make menus reevaluate their clipping when they change
7b51164 Fix click-block focus-loss prevention
e2a42c7 Update oojs to v1.1.0
adfcf92 Fix process dialog title text position
cde46d8 jsduck: Rename config file to jsduck.json (per standard)
7a6a0eb Fix documentation typo
060cf0c [BREAKING CHANGE] Element mixin refactor
e93f10a readme: Use <pre> instead of ```
9d15ebe Revert "Build with clean CSS"
db1b656 Automatically align popup toolgroups
4cef83f Don't use /** in CSS or LESS, use /* instead

Change-Id: Ib06422e7e81594e7f3590955feb89409d801e1a4

9 years agoMerge "Remove dead mime_content_type() code paths"
jenkins-bot [Wed, 3 Sep 2014 23:40:53 +0000 (23:40 +0000)]
Merge "Remove dead mime_content_type() code paths"

9 years agoTweaked cache size in getCachedRevisionObject()
Aaron Schulz [Wed, 27 Aug 2014 18:32:40 +0000 (11:32 -0700)]
Tweaked cache size in getCachedRevisionObject()

Change-Id: I3b01011f21bf3218f3b5c74430b5d5f9ceaec83e

9 years agoMerge "Use a custom MediaWiki logo during installation"
jenkins-bot [Wed, 3 Sep 2014 22:52:05 +0000 (22:52 +0000)]
Merge "Use a custom MediaWiki logo during installation"

9 years agoMove log log_page entries are now that of the moved page
Aaron Schulz [Tue, 2 Sep 2014 19:59:18 +0000 (12:59 -0700)]
Move log log_page entries are now that of the moved page

bug: 57084
Change-Id: Ibc20d79093eedcdaba1873861e177ca3a6108bca

9 years agoUse String#slice instead of String#substr or String#substring
Timo Tijhof [Wed, 3 Sep 2014 15:19:41 +0000 (17:19 +0200)]
Use String#slice instead of String#substr or String#substring

Quite a few reasons:

* There is a bug in IE 8 and below where the startIndex argument
  does not support negative values, contrary to the ECMAScript
  spec and implementations in other browsers.
  IE8:
    'faux'.substr( -1 ); // "faux"
  Standards:
    'faux'.substr( -1 ); // "x"

  Code written for ES5 (and using the es5-shim) works as expected
  since the shim repairs this method.

* String#substr and String#substring both exist but have
  different signatures which are easily mixed up.

  String.prototype.substr( start [, length] )
  > Supports negative start, but not in IE8 and below.
  > Takes length, *not* second index. E.g. `substr( 2, 3 )`
    returns `slice( 2, 5 )`.

  String.prototype.substring( indexA [, indexB] )
  > Doesn't support negative indices.
  > If indexA is larger than indexB, they are silently swapped!

  String.prototype.slice( start [, end] )
  > Supports negative indices.

    'faux'.substr( 0, 2 );     // "fa"
    'faux'.substring( 0, 2 );  // "fa"
    'faux'.slice( 0, 2 );      // "fa"

    'faux'.substr( -2 );       // "ux"
    'faux'.substring( -2 );    // "faux"
    'faux'.slice( -2 );        // "ux"

    'faux'.substr( 1, 2 );     // "au"
    'faux'.substring( 1, 2 );  // "a"
    'faux'.slice( 1, 2 );      // "a"

    'faux'.substr( 1, -1 );    // ""
    'faux'.substring( 1, -1 ); // "f"
    'faux'.slice( 1, -1 );     // "au"

    'faux'.substr( 2, 1 );     // "u"
    'faux'.substring( 2, 1 );  // "a"
    'faux'.slice( 2, 1 );      // ""

* String#slice works the same way as Array#slice and slice
  methods elsewhere (jQuery, PHP, ..).

* Also simplify calls:
  - Omit second argument where it explicitly calculated the length
    and passed it as is (default behaviour)
  - Pass negative values instead of length - x.
  - Use chatAt to extract a single character.

* Change:
  - Replace all uses of substring() with slice().
  - Replace all uses of substr() with slice() where only one
    parameter is passed or where the first parameter is 0.
  - Using substr()'s unique behaviour (length instead of endIndex)
    is fine, though there's only one instances of that, in
    mediawiki.jqueryMsg.js

Change-Id: I9b6dd682a64fa28c7ea0da1846ccd3b42f9430cf

9 years agoMerge "More tweaks to job backoff code"
jenkins-bot [Wed, 3 Sep 2014 20:28:57 +0000 (20:28 +0000)]
Merge "More tweaks to job backoff code"

9 years agoMake sure getMulti() returns an array per the class interface
Aaron Schulz [Wed, 3 Sep 2014 19:48:37 +0000 (12:48 -0700)]
Make sure getMulti() returns an array per the class interface

Change-Id: Ic08f3ac37467a2743d7f8be5f5fb0032f84c3b82

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 3 Sep 2014 19:54:10 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I1c11c55dbe5f7e1e530e22fb6021a83be3adfcee

9 years agoMore tweaks to job backoff code
Aaron Schulz [Wed, 3 Sep 2014 18:50:12 +0000 (11:50 -0700)]
More tweaks to job backoff code

* Replace one time() call with microtime() in syncBackoffDeltas().
  Also moved the call down slightly to not count flock() delay.
* Moved read-only case logic into syncBackoffDeltas().
* Moved $backoffExpireFunc logic into syncBackoffDeltas().
* Tightened the syncBackoffDeltas() checks around pop() for
  better accuracy.

Change-Id: Ifed3d24ba62277c0e0f52cdc1051990a590be18a

9 years agoMerge "Add SkinPreloadExistence hook"
jenkins-bot [Wed, 3 Sep 2014 18:34:48 +0000 (18:34 +0000)]
Merge "Add SkinPreloadExistence hook"

9 years agoMerge "Improved job backoff handling to be more properly per-server"
jenkins-bot [Wed, 3 Sep 2014 18:11:02 +0000 (18:11 +0000)]
Merge "Improved job backoff handling to be more properly per-server"

9 years agoAdd SkinPreloadExistence hook
Bartosz Dziewoński [Fri, 29 Aug 2014 21:07:09 +0000 (23:07 +0200)]
Add SkinPreloadExistence hook

Bug: 69650
Change-Id: Ia16c2034cdf6cdc9ac8e37b113ffbbecd272087f

9 years agoMerge "IndexPager: Introduce constants for values of $mDefaultDirection"
jenkins-bot [Wed, 3 Sep 2014 18:07:52 +0000 (18:07 +0000)]
Merge "IndexPager: Introduce constants for values of $mDefaultDirection"

9 years agoIndexPager: Introduce constants for values of $mDefaultDirection
Bartosz Dziewoński [Mon, 25 Aug 2014 15:26:58 +0000 (17:26 +0200)]
IndexPager: Introduce constants for values of $mDefaultDirection

I've spent several hours looking at related code and I still can't
remember which direction is 'true' and which is 'false'.

Change-Id: I58694f7a0892c986e7215f59b56b014cece8d40d

9 years agoMerge "mediawiki.ui: Remove deployment hack"
jenkins-bot [Wed, 3 Sep 2014 17:51:17 +0000 (17:51 +0000)]
Merge "mediawiki.ui: Remove deployment hack"

9 years agoMerge "Added BloomCache classes"
jenkins-bot [Wed, 3 Sep 2014 17:50:36 +0000 (17:50 +0000)]
Merge "Added BloomCache classes"

9 years agoMerge "mediawiki.action.view.metadata: Include the CSS we need, don't rely on shared...
jenkins-bot [Wed, 3 Sep 2014 17:49:33 +0000 (17:49 +0000)]
Merge "mediawiki.action.view.metadata: Include the CSS we need, don't rely on shared.css"

9 years agoAdded BloomCache classes
Aaron Schulz [Wed, 2 Jul 2014 22:55:03 +0000 (15:55 -0700)]
Added BloomCache classes

* Implemented a version of BloomCache using Redis
* Added a BloomCheckTitleHasLogs handler class for avoiding
  slow logging table queries when large amounts of 404 pages
  are viewed (by various web crawlers at the moment).

bug: 67439
Change-Id: I26e5034755e3a7208a45991b1cf2f12467679cc1

9 years agoDelete skins/common/images/closewindow19x19.png
Bartosz Dziewoński [Wed, 3 Sep 2014 13:47:59 +0000 (15:47 +0200)]
Delete skins/common/images/closewindow19x19.png

Unused in core, unused in extensions (as far as I can tell) and unused
on-wiki (as far as I can tell).

There are still requests for it (according to bug 69277 comment 11), but
we can't do anything about that if we can't tell where they come from.

Bug: 69277
Change-Id: I2cf158229955c93ecbf29c83d04df121e4b4addc

9 years agoUse a custom MediaWiki logo during installation
Bartosz Dziewoński [Mon, 11 Aug 2014 02:11:37 +0000 (04:11 +0200)]
Use a custom MediaWiki logo during installation

Previously we used the regular logo, which could prove confusing when
one switched back-and-forth between the installed and mediawiki.org
pages.

The new one is "half-drawn", evoking the image that we are in the
process of creating something (a new wiki). I like that.

Source: <https://commons.wikimedia.org/wiki/File:Wikitech-logo.png>,
authored by Brion, GFDL 1.2+. It was previously used as a logo of the
Wikitech wiki, but that has unicorns instead now.

Change-Id: Ic5c83bb85e6b6a11978d452fbe46d2dad9c5a553

9 years agoRemove dead mime_content_type() code paths
Kevin Israel [Fri, 18 Jul 2014 06:05:26 +0000 (02:05 -0400)]
Remove dead mime_content_type() code paths

Since PHP 5.3, mime_content_type() is implemented as part of PHP's
fileinfo extension and thus is deprecated in favor of the newer
alternatives provided by that extension (already in use).

Also updated a comment in DefaultSettings.php that mentioned the
function. Did not modify lessc.inc.php, a third-party library
maintained separately from MediaWiki.

Change-Id: Ic4a0873989ddb634ec9a05c3340941a9ba3f5ec5

9 years agoGlobalTest: Add test for wfRandomString()
Sergio Santoro [Wed, 23 Jul 2014 15:28:50 +0000 (17:28 +0200)]
GlobalTest: Add test for wfRandomString()

Change-Id: I8e681ed6a32a4a13603cad3cd3dc56545e16220f

9 years agoImproved job backoff handling to be more properly per-server
Aaron Schulz [Sat, 30 Aug 2014 02:48:09 +0000 (19:48 -0700)]
Improved job backoff handling to be more properly per-server

Change-Id: I7c8e44a474ca8d05771477665ba508a358c5747d

9 years agomediawiki.action.view.metadata: Include the CSS we need, don't rely on shared.css
Bartosz Dziewoński [Thu, 28 Aug 2014 17:50:59 +0000 (19:50 +0200)]
mediawiki.action.view.metadata: Include the CSS we need, don't rely on shared.css

Change-Id: I4b1cbc5998492272825d33842ee3721a41b19b4c

9 years agoMerge "mediawiki.language: Implement Language::listToText in JS"
jenkins-bot [Wed, 3 Sep 2014 09:36:53 +0000 (09:36 +0000)]
Merge "mediawiki.language: Implement Language::listToText in JS"

9 years agoMerge "Remove the sub page when using the form in Special:ListFiles"
jenkins-bot [Wed, 3 Sep 2014 03:53:39 +0000 (03:53 +0000)]
Merge "Remove the sub page when using the form in Special:ListFiles"

9 years agoMerge "Use protocol default port with HTTP_X_FORWARDED_PROTO"
jenkins-bot [Wed, 3 Sep 2014 03:51:55 +0000 (03:51 +0000)]
Merge "Use protocol default port with HTTP_X_FORWARDED_PROTO"

9 years agoMerge "OutputPage: Restore ResourceLoader condition wrap for embedded modules"
jenkins-bot [Tue, 2 Sep 2014 21:44:32 +0000 (21:44 +0000)]
Merge "OutputPage: Restore ResourceLoader condition wrap for embedded modules"

9 years agoMerge "Add new hook WatchlistEditorBeforeFormRender"
jenkins-bot [Tue, 2 Sep 2014 21:18:00 +0000 (21:18 +0000)]
Merge "Add new hook WatchlistEditorBeforeFormRender"

9 years agoMerge "Use descriptive key for array of in a Special:EditWatchlist line"
jenkins-bot [Tue, 2 Sep 2014 21:05:48 +0000 (21:05 +0000)]
Merge "Use descriptive key for array of  in a Special:EditWatchlist line"