lhc/web/wiklou.git
9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Thu, 16 Oct 2014 20:07:04 +0000 (20:07 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 16 Oct 2014 20:01:06 +0000 (22:01 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Id155f17da42d10128a582357d602fb4ff3d08c46

9 years agoSqlBagOStuff: fix percentage in deleteObjectsExpiringBefore()
Sergio Santoro [Thu, 16 Oct 2014 18:43:38 +0000 (20:43 +0200)]
SqlBagOStuff: fix percentage in deleteObjectsExpiringBefore()

Partial deletion percentage progess was computed using
$remainingSeconds. This is incorrect since $remainingSeconds
is going to *decrease* ( instead of increase ) while the
process continues.
The correct implementation uses 'processed seconds' instead.

Change-Id: Ic745f6e8375a85da543de36703fad6d31f62ea90

9 years agoUpdate OOjs UI to v0.1.0-pre (99ec31d9b9)
James D. Forrester [Thu, 16 Oct 2014 18:08:16 +0000 (11:08 -0700)]
Update OOjs UI to v0.1.0-pre (99ec31d9b9)

New changes:
6298415 ButtonWidget: Fix titled button
918ebed MediaWiki theme: Fix styling of SearchWidget
bd03644 Refine global event handling in non-isolated window managers
9a7633c WindowManager: Wait for window to open before trying to close it
5516490 Element: Correct method name reference in documentation
99ec31d Position popups and their anchors correctly in RTL

Change-Id: I4266c58ec1a2e6cee54ffc55891a5c2097f0222f

9 years agoAdd a messages file for Koyraboro Senni with French fallback
Amir E. Aharoni [Thu, 16 Oct 2014 16:15:17 +0000 (19:15 +0300)]
Add a messages file for Koyraboro Senni with French fallback

Change-Id: Idb53b501d11c295a7d1147724582456220720882

9 years agoAdd a tracking category for duplicate arguments
Jackmcbarn [Thu, 29 May 2014 16:55:40 +0000 (12:55 -0400)]
Add a tracking category for duplicate arguments

If a page accidentally duplicates an argument, such as
{{foo|bar=1|bar=2}} or {{foo|bar|1=baz}}, add it to a tracking category.

Bug: 69964
Change-Id: I3b6eeff8b51859bc7af0ea985f6f7528c2e9d220

9 years agoMerge "DatabaseBase::tableName() fix limit while invoking explode()"
jenkins-bot [Thu, 16 Oct 2014 00:57:19 +0000 (00:57 +0000)]
Merge "DatabaseBase::tableName() fix limit while invoking explode()"

9 years agoMerge "SqlBagOStuff: document public method deleteAll()"
jenkins-bot [Thu, 16 Oct 2014 00:57:06 +0000 (00:57 +0000)]
Merge "SqlBagOStuff: document public method deleteAll()"

9 years agoUpdate OOjs UI to v0.1.0-pre (1829141230)
James D. Forrester [Wed, 15 Oct 2014 22:50:13 +0000 (15:50 -0700)]
Update OOjs UI to v0.1.0-pre (1829141230)

New changes:
393fd80 TextInputMenuWidget: Handle undefined value properly when toggling visibility

Change-Id: I4f6a7f62803d441de53271c645f07f76d23b3d06

9 years agoUpdate OOjs UI to v0.1.0-pre (98cecf304d)
James D. Forrester [Wed, 15 Oct 2014 22:39:38 +0000 (15:39 -0700)]
Update OOjs UI to v0.1.0-pre (98cecf304d)

New changes:
98cecf3 Support MenuWidget's config.widget being in a different document

Change-Id: Ifc30790e67926bbdda0a8d5ec9464e7046f984ea

9 years agoSpecialNewpages: Prepare for mw-ui
Florianschmidtwelzow [Sat, 4 Oct 2014 14:35:54 +0000 (16:35 +0200)]
SpecialNewpages: Prepare for mw-ui

Use HTMLForm instead of self-built table structure, to be
prepared for use with MediaWiki UI.

Bug: 71446
Change-Id: I5c03dc543b910aab27a26a5a223341be50893cf3

9 years agoDatabaseBase::tableName() fix limit while invoking explode()
Sergio Santoro [Wed, 15 Oct 2014 21:14:11 +0000 (23:14 +0200)]
DatabaseBase::tableName() fix limit while invoking explode()

Limit for explode() needs to be set to 3 to allow entering
branch at line 2350.

Change-Id: Idc2ba81a4bafa3e5511982db73a5c1549f1f9ef0

9 years agoSqlBagOStuff: document public method deleteAll()
Sergio Santoro [Wed, 15 Oct 2014 20:57:53 +0000 (22:57 +0200)]
SqlBagOStuff: document public method deleteAll()

Change-Id: I23700714453b6243e564642f2bad4a2d1c2469c6

9 years agoFix copy/pasto in API help and a typo in message name
Petr Kadlec [Wed, 15 Oct 2014 20:52:40 +0000 (22:52 +0200)]
Fix copy/pasto in API help and a typo in message name

* The help for [[Special:ApiHelp/xml]] used the same copypasted
apihelp-json-param-callback message for both parameters instead of the
correct ones for those parameters.
* The message name in en.json and qqq.json was truncated, so that it did
not correspond to the parameter name. I presume this was unintentional
and not some strange limitation.

Change-Id: I666b2fd6511f08bccc9f05739bab68d7675ef5c6

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 15 Oct 2014 19:39:49 +0000 (21:39 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I6834a3e482f32878082ebe86ac2a46e09e8f9cdb

9 years agoMerge "Make prefs-help-realname more realistic"
jenkins-bot [Wed, 15 Oct 2014 18:39:22 +0000 (18:39 +0000)]
Merge "Make prefs-help-realname more realistic"

9 years agoLet BlockTest.php respect database constraints
saper [Sun, 8 Dec 2013 22:18:20 +0000 (23:18 +0100)]
Let BlockTest.php respect database constraints

This is an attempt to make BlockTest not to fail
with database referential constraints enabled
(from I326bb4a189bf881299b9fb678033a927b916efac)

Bug: 58191
Change-Id: I45c2d466f77d4d0aa25e880b5bb7d1120c39a561

9 years agoMake prefs-help-realname more realistic
Federico Leva [Wed, 15 Oct 2014 16:39:59 +0000 (18:39 +0200)]
Make prefs-help-realname more realistic

The message is shown whenever $wgMaxCredits > 0, but several actions
and extensions don't give attribution based on it anyway.
Also simplify the sentence structure a bit.

Bug: 72078
Change-Id: I4ae3abd9433c485e7066da922d2f47529b00d7d4

9 years agoRemove broken parameter 'table' in wgObjectCaches for CACHE_DB
Sergio Santoro [Wed, 8 Oct 2014 15:36:17 +0000 (17:36 +0200)]
Remove broken parameter 'table' in wgObjectCaches for CACHE_DB

$wgObjectCaches in DefaultSettings.php had the useless
parameter 'table' for CACHE_DB.
SqlBagOStuff actually uses 'tableName' parameter, it
already defaults to 'objectcache' so there's no need
to write it again.

Change-Id: I5fe6b7c5f4d46cc8642c42861bc7078b795f5fb1

9 years agoRequestContextTest: Distinguish initial test from restored test
Timo Tijhof [Wed, 15 Oct 2014 01:45:51 +0000 (03:45 +0200)]
RequestContextTest: Distinguish initial test from restored test

Follows-up f31a046. In failure it's hard to see whether it's the
first or third group of assertions as they were carying the same
name.

Change-Id: I5891754342400155759e797337f8509d4eca39ec

9 years agoRevert "Make enhanced recent changes and extended watchlist default"
Thiemo Mättig (WMDE) [Wed, 15 Oct 2014 09:26:53 +0000 (09:26 +0000)]
Revert "Make enhanced recent changes and extended watchlist default"

This reverts commit c972d6150d6f9f2b5507e30098a8d6ac9d6c4406.

Change-Id: Iff3699f37195dd0ffb2a76c2e863a1fde3e0d83a

9 years agoUpgrade jStorage to v0.4.12
paladox [Sat, 6 Sep 2014 12:54:30 +0000 (12:54 +0000)]
Upgrade jStorage to v0.4.12

Project site

* http://www.jstorage.info/ and https://github.com/andris9/jStorage/tree/v0.4.12

jquery.jStorage.js file

* https://github.com/andris9/jStorage/blob/v0.4.12/jstorage.js

Author and contact

* Andris Reinman and email andris.reinman@gmail.com

README

* https://github.com/andris9/jStorage/blob/v0.4.12/README.md

Upgrading from 0.4.10 to 0.4.12.

Change-Id: I62899c8a2a7b9b2ae5b0f4b6ec06ee24cb966806

9 years agoUpdate OOjs UI to v0.1.0-pre (d74a46ca6a)
James D. Forrester [Wed, 15 Oct 2014 00:40:32 +0000 (17:40 -0700)]
Update OOjs UI to v0.1.0-pre (d74a46ca6a)

New changes:
d74a46c Introduce oo-ui-window-inner-overlay

Change-Id: I3f325f3c514d334179de46d0ea092b48f13b9dfd

9 years agojquery.badge: Swap non-breaking space character for regular space
Timo Tijhof [Tue, 14 Oct 2014 21:39:31 +0000 (23:39 +0200)]
jquery.badge: Swap non-breaking space character for regular space

Follows-up d453f81f4e. PHP's native json_encode requires input
being a UTF-8 string. For some reason MediaWiki, Git or OS X is
not reading jquery.badge.css as UTF-8 for me.

https://bugs.php.net/bug.php?id=51947

Due to json_encode rejecting the entire value and returning null
instead, the jquery.badge stylesheet was absent. load.php:

 mw.loader.implement("jquery.badge",function, {"css":[null]} );

Change-Id: I84d2017a976249f55bdb269d2b9762db941292fe

9 years agoMerge "Make enhanced recent changes and extended watchlist default"
jenkins-bot [Tue, 14 Oct 2014 20:51:17 +0000 (20:51 +0000)]
Merge "Make enhanced recent changes and extended watchlist default"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 14 Oct 2014 20:41:15 +0000 (22:41 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I6ca4e358ecc0d008ae5f323b445d272f1f721a0b

9 years agoMerge "Add LinkBatch to Special:TrackingCategories"
jenkins-bot [Tue, 14 Oct 2014 19:39:54 +0000 (19:39 +0000)]
Merge "Add LinkBatch to Special:TrackingCategories"

9 years agoBreak long lines
umherirrender [Sat, 11 Oct 2014 19:11:57 +0000 (21:11 +0200)]
Break long lines

Change-Id: I8d4e883058c21023273df88439cd145888833115

9 years agoMerge "Create tooltip for "Page information" link"
jenkins-bot [Tue, 14 Oct 2014 18:31:20 +0000 (18:31 +0000)]
Merge "Create tooltip for "Page information" link"

9 years agoMerge "Deprecate ORMTable::getFieldPrefix"
jenkins-bot [Tue, 14 Oct 2014 18:28:57 +0000 (18:28 +0000)]
Merge "Deprecate ORMTable::getFieldPrefix"

9 years agoCreate tooltip for "Page information" link
umherirrender [Sat, 11 Oct 2014 18:30:23 +0000 (20:30 +0200)]
Create tooltip for "Page information" link

Added an empty accesskey message for consistency

Change-Id: Ie57d63718990eb6974808550622c3899a2b18d8f

9 years agoDeprecate ORMTable::getFieldPrefix
Thiemo Mättig [Mon, 6 Oct 2014 16:04:40 +0000 (18:04 +0200)]
Deprecate ORMTable::getFieldPrefix

Internal calls to this method show up in my XDebug profiling as
the second most called method (after array_key_exists). Called
10000 times. Sure, it's very cheap and clearly not a bottleneck.
But just not necesarry to have a method for that. The benefit of
having a method is to have a dynamic prefix that can change
depending on other things in an object. But I think this is not
a good idea for a prefix.

Since this is protected it is part of the contract of this class.
I already cleaned known subclasses. Should be @deprecated for
some time and can be removed later.

Change-Id: I46a0d7e072d0a69e9aef5f77e92044b62e3d0ce7

9 years agoMerge "Set default for unused variable in ApiFormatBase"
jenkins-bot [Tue, 14 Oct 2014 01:05:21 +0000 (01:05 +0000)]
Merge "Set default for unused variable in ApiFormatBase"

9 years agoMerge "Add mediawiki.userSuggest to Special:NewPages"
jenkins-bot [Tue, 14 Oct 2014 01:01:43 +0000 (01:01 +0000)]
Merge "Add mediawiki.userSuggest to Special:NewPages"

9 years agoMerge "Update MessagesEn.php::$preloadedMessages"
jenkins-bot [Tue, 14 Oct 2014 01:00:05 +0000 (01:00 +0000)]
Merge "Update MessagesEn.php::$preloadedMessages"

9 years agoMerge "Add mediawiki.userSuggest to Special:[Deleted]Contributions"
jenkins-bot [Tue, 14 Oct 2014 00:58:31 +0000 (00:58 +0000)]
Merge "Add mediawiki.userSuggest to Special:[Deleted]Contributions"

9 years agoSet default for unused variable in ApiFormatBase
Marius Hoch [Tue, 14 Oct 2014 00:57:32 +0000 (02:57 +0200)]
Set default for unused variable in ApiFormatBase

So that it can be left out when calling.

Change-Id: I6137f5d57a12c0e52ad12b84428a82e8befae0c9

9 years agoMerge "Create tooltip for "create account" link"
jenkins-bot [Tue, 14 Oct 2014 00:52:59 +0000 (00:52 +0000)]
Merge "Create tooltip for "create account" link"

9 years agoRemove negative caching from Revision::getContentInternal
Jackmcbarn [Tue, 14 Oct 2014 00:48:46 +0000 (20:48 -0400)]
Remove negative caching from Revision::getContentInternal

Negative caching in Revision::getContent can cause race conditions, so
stop doing it.

Bug: 71545
Change-Id: Iac32b2d4f90c4c1ce37820288f757e47b6d895e7

9 years agoAdd a PSR-3 based logging interface
Bryan Davis [Fri, 21 Mar 2014 04:51:45 +0000 (22:51 -0600)]
Add a PSR-3 based logging interface

The MWLogger class is actually a thin wrapper around any PSR-3
LoggerInterface implementation. Named MWLogger instances can be obtained
from the MWLogger::getInstance() static method. MWLogger expects a class
implementing the MWLoggerSpi interface to act as a factory for new
MWLogger instances. A concrete MWLoggerSpi implementation using the
Monolog library is also provided.

New classes introduced:
; MWLogger
: PSR-3 compatible logger that wraps any \Psr\Log\LoggerInterface
  implementation
; MWLoggerSpi
: Service provider interface for MWLogger factories
; MWLoggerNullSpi
: MWLoggerSpi for creating instances that discard all log events
; MWLoggerMonologSpi
: MWLoggerSpi for creating instances backed by the monolog logging library
; MWLoggerMonologHandler
: Monolog handler that replicates the udp2log and file logging
  functionality of wfErrorLog()
; MWLoggerMonologProcessor
: Monolog log processer that adds host:wfHostname() and wiki:wfWikiID()
  to all records

New globals introduced:
; $wgMWLoggerDefaultSpi
: Default service provider interface to use with MWLogger
; $wgMWLoggerMonologSpiConfig
: Configuration for MWLoggerMonologSpi describing how to configure the
  Monolog logger instances.

This change relies on the Composer managed Psr\Log and Monolog libraries
introduced in Ie667944.

Change-Id: I5c822995a181a38c844f4a13cb172297827e0031

9 years agoAPI: Clean up and internationalize pretty-printed output
Brad Jorsch [Wed, 17 Sep 2014 19:43:31 +0000 (15:43 -0400)]
API: Clean up and internationalize pretty-printed output

The syntax highlighting applied to the XML format is not all that great,
and applying it to other formats is just wrong. Instead of doing it
ourselves, let's just add a hook and let Extension:SyntaxHighlight_GeSHi
do it for us.

But for that to work, we have to add RL support to the pretty-printed
output, which means OutputPage. At the same time, lets internationalize
the header.

Bug: 65403
Change-Id: I04b1a3842abdf1fb360c54aa7164fc7cd2e50f4b

9 years agoAPI: Add "batchcomplete" to simplified continuation result
Brad Jorsch [Wed, 6 Aug 2014 08:56:53 +0000 (09:56 +0100)]
API: Add "batchcomplete" to simplified continuation result

With the query-continue style of continuation, it's easy for the client
to know when a batch of pages from the generator is complete. The
simplified continuation should support this too, and without requiring
the client to parse the "continue" result property.

Change-Id: Ie407e2e27c017e8813143859cc58674553bc641b

9 years agoMerge "API: Make jsonfm the default output format"
jenkins-bot [Mon, 13 Oct 2014 22:22:10 +0000 (22:22 +0000)]
Merge "API: Make jsonfm the default output format"

9 years agoMerge "API: HTMLize and internationalize the help, add Special:ApiHelp"
jenkins-bot [Mon, 13 Oct 2014 22:19:47 +0000 (22:19 +0000)]
Merge "API: HTMLize and internationalize the help, add Special:ApiHelp"

9 years agoAPI: Make jsonfm the default output format
Brad Jorsch [Tue, 16 Sep 2014 20:45:09 +0000 (16:45 -0400)]
API: Make jsonfm the default output format

Now that action=help isn't requiring xmlfm for sane display, make jsonfm
the default.

Change-Id: I515c322f31243081ed1315a17befe9792237eeaa

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 13 Oct 2014 19:23:03 +0000 (21:23 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I54fc400a4eb31d5701ce9b402a6595ea0ca3ae90

9 years agoRewrite ORMTable::unprefixFieldNames
Thiemo Mättig [Mon, 13 Oct 2014 17:07:30 +0000 (19:07 +0200)]
Rewrite ORMTable::unprefixFieldNames

This method is called a lot (~1000 times each time). It calls
the callback function ~10 times per table, resulting in ~10000
calls of strlen. Which is just not necesarry. The string length does
not change.

Change-Id: I19194f1166da465a1c9ef4b2fb9cdaef4105a6f7

9 years agoFix strict warning in FakeDatabasUpdater::setAppliedUpdates
physikerwelt (Moritz Schubotz) [Mon, 13 Oct 2014 13:22:35 +0000 (15:22 +0200)]
Fix strict warning in FakeDatabasUpdater::setAppliedUpdates

Follows-up ccd051bc44.

To be consistent with DatabaseUpdater::setAppliedUpdates
the second arg $updates is now optional.

Change-Id: Ida2adfe30099ea4c65f0c16fafc4eae6603fc93a

9 years agoAdd mediawiki.userSuggest to Special:ListFiles
umherirrender [Fri, 10 Oct 2014 13:50:24 +0000 (15:50 +0200)]
Add mediawiki.userSuggest to Special:ListFiles

This gives a suggestion list when typing a username on that special page

Bug: 48240
Change-Id: I9960325f27eddb6ea0b3317b00996ccb91c51994

9 years agoMerge "mediawiki.special.changeslist.legend: Match dt/dd line-height"
Prtksxna [Mon, 13 Oct 2014 04:42:46 +0000 (04:42 +0000)]
Merge "mediawiki.special.changeslist.legend: Match dt/dd line-height"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 12 Oct 2014 19:55:32 +0000 (21:55 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I6fc8199d579ccc94810b4c2d31a046aef8b804b2

9 years agoAdd 'name' back to wpLoginAttempt
Reedy [Sat, 11 Oct 2014 23:57:53 +0000 (00:57 +0100)]
Add 'name' back to wpLoginAttempt

Change-Id: I353ccb74e3572ab2e22a3803d0bc265be2ca2408

9 years agoFix session failure errors when trying to create an account
Kunal Mehta [Sat, 11 Oct 2014 23:41:51 +0000 (16:41 -0700)]
Fix session failure errors when trying to create an account

wpCreateaccount was no longer being passed in the POST request,
so the special page thought a login attempt was occurring rather
than an account creation attempt, so it checked against the wrong
token, resulting in session failure errors.

Bug: 71862
Change-Id: I9519cb264be9f587ef4354ba1fd03962a52755a2

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 11 Oct 2014 20:02:13 +0000 (22:02 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I386b19b8701f8826109919a1b5b3ebbb2a5c4977

9 years agoMention translatewiki.net on edits only, when edit a default message
umherirrender [Mon, 6 Oct 2014 19:04:25 +0000 (21:04 +0200)]
Mention translatewiki.net on edits only, when edit a default message

When editing a page in the mediawiki namespace the hint to
translatewiki.net is always shown, but it is unneeded, when the message
is not a default message and maybe used for warnings in abusefilter or
is a gadget description.

Change-Id: I7dbf030311e30ce852459e363c91e988ca15d86d

9 years agoUpdate MessagesEn.php::$preloadedMessages
umherirrender [Sat, 11 Oct 2014 17:56:14 +0000 (19:56 +0200)]
Update MessagesEn.php::$preloadedMessages

Some messages no longer exists, some were renamed.
Also added some messages which gets used for anons on page view.

Change-Id: Ia6cf0888b99d90c0810ce2afcffc95f2a9c66053

9 years agoCreate tooltip for "create account" link
umherirrender [Sat, 11 Oct 2014 18:10:38 +0000 (20:10 +0200)]
Create tooltip for "create account" link

Added an empty accesskey message for consistency

Change-Id: I982f766cdcc8c172ebe4c12cf0f02ac641f5e5d5

9 years agoMerge "Revert "Make an empty "?action=" parameter default to "view"""
jenkins-bot [Sat, 11 Oct 2014 17:23:21 +0000 (17:23 +0000)]
Merge "Revert "Make an empty "?action=" parameter default to "view"""

9 years agoRevert "Make an empty "?action=" parameter default to "view""
Brion VIBBER [Sat, 11 Oct 2014 17:15:49 +0000 (17:15 +0000)]
Revert "Make an empty "?action=" parameter default to "view""

Breaks all non-view actions on dev wikis, something's not right with the patch.

This reverts commit a90b7ea969b4332a6229be1c4160190a3ec79200.

Change-Id: Ib9a5eb07ef48716df193fbb62a86c13e5c80dafd

9 years agoAdd mediawiki.userSuggest to Special:[Deleted]Contributions
umherirrender [Fri, 10 Oct 2014 14:07:32 +0000 (16:07 +0200)]
Add mediawiki.userSuggest to Special:[Deleted]Contributions

This gives a suggestion list when typing a username

Change-Id: I59ca64f21de3182adeb01fbea8dc13ebc0fc4367

9 years agoMake enhanced recent changes and extended watchlist default
Federico Leva [Mon, 7 Apr 2014 10:11:05 +0000 (12:11 +0200)]
Make enhanced recent changes and extended watchlist default

Wikimedia projects override submitted at I68ce04cd7 (6eea7e4c9).
This previously submitted as I7c2a27b4d (ffe3ca58582).

Bug: 35785
Change-Id: I0736f82ed8f74b7de64f2b1abdc6e5e12f2bf320

9 years agoMerge "MovePage: Properly return errors"
jenkins-bot [Sat, 11 Oct 2014 06:04:31 +0000 (06:04 +0000)]
Merge "MovePage: Properly return errors"

9 years agoMovePage: Properly return errors
Kunal Mehta [Sat, 11 Oct 2014 01:39:24 +0000 (18:39 -0700)]
MovePage: Properly return errors

Probably a copy-paste mistake when converting this function
to use Status instead of error arrays.

Change-Id: I796fc66ee637dd7d914a4182fe56992e59b90aba

9 years agoUpdate OOjs UI to v0.1.0-pre (837b2f733e)
James D. Forrester [Sat, 11 Oct 2014 01:05:44 +0000 (18:05 -0700)]
Update OOjs UI to v0.1.0-pre (837b2f733e)

New changes:
d40dd30 build: Update grunt-contrib-uglify to v0.6.0
0d89c99 test: Load a theme for the test HTML file so the tests don't fail
f245aa4 Element: Remove test for deprecated onDOMEvent()
cd15f18 Follow-up I730e3d7d: Tab not spaces
a923881 build: Use Karma instead of grunt-contrib-qunit
381864c build: Use Chrome and Firefox for tests instead of PhantomJS
044faa5 Follow-up If2da01a2: Fix grunt watch
d6e7af8 Adding OO.ui.TitledElement as mixin to label widget
6385af7 MediaWiki theme: Add filled white background to toolbars
837b2f7 Revert "Try to stop user from tabbing outside of open dialog box"

Change-Id: I63d51311f73d1295a2a35ebadf7d9ac835dec5c7

9 years agoMerge "Add test for canUseWikiPage special case to ActionTest"
jenkins-bot [Sat, 11 Oct 2014 00:36:58 +0000 (00:36 +0000)]
Merge "Add test for canUseWikiPage special case to ActionTest"

9 years agoMerge "Make an empty "?action=" parameter default to "view""
jenkins-bot [Sat, 11 Oct 2014 00:36:10 +0000 (00:36 +0000)]
Merge "Make an empty "?action=" parameter default to "view""

9 years agoAdd test for canUseWikiPage special case to ActionTest
Thiemo Mättig [Tue, 22 Jul 2014 12:28:12 +0000 (14:28 +0200)]
Add test for canUseWikiPage special case to ActionTest

Change-Id: I6b037d4aa9101a3a416cdf3bd1e26f14b056b4f7

9 years agoMerge "PrefixSearch: Enforce including the exact match as first result"
jenkins-bot [Fri, 10 Oct 2014 21:34:23 +0000 (21:34 +0000)]
Merge "PrefixSearch: Enforce including the exact match as first result"

9 years agoMerge "API: Fix ApiQueryBacklinks redirlinks"
jenkins-bot [Fri, 10 Oct 2014 20:31:35 +0000 (20:31 +0000)]
Merge "API: Fix ApiQueryBacklinks redirlinks"

9 years agoMake an empty "?action=" parameter default to "view"
Thiemo Mättig [Thu, 17 Jul 2014 08:27:38 +0000 (10:27 +0200)]
Make an empty "?action=" parameter default to "view"

When no action is given, e.g. in
https://en.wikipedia.org/wiki/URL
the action defaults to "view". Just like you called
https://en.wikipedia.org/wiki/URL?action=view

But when the action is empty, e.g.
https://en.wikipedia.org/wiki/URL?action=
you get an error message telling you that "the action specified"
can not be "recognized". Wait. I did not "specified" an action.
That's why I left the parameter empty. It doesn't make much sense
to have an empty action name that's different from the "view"
default, right? From the users point of view I expect the empty
string to behave like null/undefined.

Change-Id: I331924d9223e597293bc8285f0c330edf08e429b

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 10 Oct 2014 19:39:06 +0000 (21:39 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib6290d03982df0ef0249d4a7acfb2f8e36e2c9cb

9 years agoPrefixSearch: Enforce including the exact match as first result
Timo Tijhof [Wed, 17 Sep 2014 23:24:41 +0000 (16:24 -0700)]
PrefixSearch: Enforce including the exact match as first result

The default search backend implements proper prefix search and
does this naturally. But extensions providing search backends
like Lucene and CirrusSearch actually fail to implement proper
prefix searching and instead use their search engine ranking for
prefix search as well. Thus often the exact match is not on top
or is not even in the first 10 results at all.

On en.wikipedia.org:

> Example
1. "Example (musician)"
2. "Example"
3. "Example.com"

> John ive
1. "John Ives"
2. "John Ivey"
3. "John Ive"

> Foo
1. "Football (soccer)"
2. "Football League Cup"
3. "Foot (length)"

"Foo" exists but is NOT among the returned results.

Bug: 70958
Change-Id: I78d419424baf43d38beeb6dabfc347f430fa45f6

9 years agoAPI: Fix ApiQueryBacklinks redirlinks
Brad Jorsch [Fri, 10 Oct 2014 19:22:35 +0000 (15:22 -0400)]
API: Fix ApiQueryBacklinks redirlinks

The fast case needs to pass the redirlinks subarray through array_values
and set an indexed tag name.

Bug: 71907
Change-Id: I865aad6485a2598c9e574ab5c38e8e0923d11ddd

9 years agoAdd LinkBatch to Special:TrackingCategories
umherirrender [Fri, 10 Oct 2014 19:16:29 +0000 (21:16 +0200)]
Add LinkBatch to Special:TrackingCategories

When building the table, each cat and message link results in a database
query. Avoid this by using a LinkBatch

Change-Id: If9e39a94c94b0c2e07822a3fa6cce3a22875d7cf

9 years agoMerge "Use config for $wgLanguageCode in OutputPage.php"
jenkins-bot [Fri, 10 Oct 2014 18:12:00 +0000 (18:12 +0000)]
Merge "Use config for $wgLanguageCode in OutputPage.php"

9 years agoRemove space from the begin and the end of the heading
Fomafix [Sun, 5 Oct 2014 08:46:45 +0000 (08:46 +0000)]
Remove space from the begin and the end of the heading

Whitespaces between the opening tag <h1> and the content and
between the content and the closing tag </h1> gets converted to a space
when selecting the heading by a triple click and copying it to clipboard

See Ic9887a079734b28155f46ffaeedec02ff8ad81ca for skin Vector.

Change-Id: If90928b5f66dc10e3e8024e31d96be25462e446c

9 years agoAdd name of offensive hook function to error message
Stephan Gambke [Thu, 9 Oct 2014 13:56:31 +0000 (15:56 +0200)]
Add name of offensive hook function to error message

When a hook function is not callable an exception is thrown.

This patch adds the name of the offensive hook function to
the exception message to improve its informative value.

Change-Id: I376d7f5590099620a4c11ff9a4967d6d8f6560cc

9 years agoAPI: HTMLize and internationalize the help, add Special:ApiHelp
Brad Jorsch [Tue, 16 Sep 2014 17:54:01 +0000 (13:54 -0400)]
API: HTMLize and internationalize the help, add Special:ApiHelp

The existing API help, formatted as basically a plain-text document
embedded in XML and with a little bolding and a few links
syntax-highlighted in after the fact, works ok for experienced programmers
but isn't at all newbie-friendly. Further, all the help is hard-coded in
English, which isn't very friendly to non-English speakers.

So let's rewrite it. The help text is now obtained from i18n messages
and output in HTML, with the default display consisting of help for a
single module with links to help for other modules. This, of course,
necessitates deprecating many of the existing help-related methods and
hooks and replacing them with new ones, but backwards compatibility is
maintained for almost everything.

At the same time, action=paraminfo also needs to support the
'description' and other help-related fields being output in wikitext or
HTML, and I11cb063d (to access all modules via the 'modules' parameter
instead of having 'modules', 'formatmodules', 'querymodules', and so on)
is folded in.

And we also add Special:ApiHelp. When directly accessed, it simply
redirects to api.php with appropriate parameters. But it's also
transcludable to allow up-to-date API help text to be included within
the on-wiki documentation.

Note this patch doesn't actually add i18n messages for any API modules
besides ApiMain and ApiHelp. That will come in a followup patch, but for
the moment the backwards-compatibility code handles them nicely.

While we're messing with the documentation, we may as well add the
"internal" flag requested in bug 62905 (although the 'includeinternal'
parameter it also requests doesn't make much sense anymore) and a
"deprecated" flag that's needed by several modules now.

Bug: 30936
Bug: 38126
Bug: 42343
Bug: 45641
Bug: 62905
Bug: 63211
Change-Id: Ib14c00df06d85c2f6364d83b2b10ce34c7f513cc

9 years agoAdd mediawiki.userSuggest to Special:NewPages
umherirrender [Fri, 10 Oct 2014 14:13:49 +0000 (16:13 +0200)]
Add mediawiki.userSuggest to Special:NewPages

This gives a suggestion list when typing a username

Change-Id: Ia3c8c99e5d78adbdc7ef8e7000ab454c8954ec46

9 years agoSet redirlinks indexed tag name on list=backlinks
umherirrender [Fri, 10 Oct 2014 13:37:58 +0000 (15:37 +0200)]
Set redirlinks indexed tag name on list=backlinks

Bug: 71907
Follow-Up: I32381c0f082d2f8e063af99ee353ae003c163c23
Change-Id: I4af6000c146e60cd6e3fbda42fcc7bef2952c4ba

9 years agoUse config for $wgLanguageCode in OutputPage.php
umherirrender [Fri, 10 Oct 2014 12:58:03 +0000 (14:58 +0200)]
Use config for $wgLanguageCode in OutputPage.php

Follow-Up: I5e0ebc173631d1d1052de7ccee4ef839c7c1767f
Change-Id: Idd7fab9f8bf47fc303b5923327da67905e12e527

9 years agoMade LocalFileMoveBatch::addOlds use SH locks instead of EX ones
Aaron Schulz [Tue, 7 Oct 2014 21:15:57 +0000 (14:15 -0700)]
Made LocalFileMoveBatch::addOlds use SH locks instead of EX ones

Change-Id: I928f98deded6e71b4b1e63167ca8b565e39c6394

9 years agoMerge "Optimise checkboxes for Firefox mobile"
jenkins-bot [Thu, 9 Oct 2014 22:37:54 +0000 (22:37 +0000)]
Merge "Optimise checkboxes for Firefox mobile"

9 years agoMerge "Removed unused method"
jenkins-bot [Thu, 9 Oct 2014 20:09:48 +0000 (20:09 +0000)]
Merge "Removed unused method"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 9 Oct 2014 18:55:10 +0000 (20:55 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I1c73003833662553745e39f2b96484e391b1d182

9 years agoMerge "HTMLForm: Improve hidden field handling"
jenkins-bot [Thu, 9 Oct 2014 18:42:50 +0000 (18:42 +0000)]
Merge "HTMLForm: Improve hidden field handling"

9 years agoMerge "OOUI: Switch Minerva skin from deprecated 'Minerva' theme to 'MediaWiki'"
jenkins-bot [Thu, 9 Oct 2014 17:43:08 +0000 (17:43 +0000)]
Merge "OOUI: Switch Minerva skin from deprecated 'Minerva' theme to 'MediaWiki'"

9 years agoHTMLForm: Improve hidden field handling
Brad Jorsch [Thu, 9 Oct 2014 17:21:31 +0000 (13:21 -0400)]
HTMLForm: Improve hidden field handling

HTMLHiddenField is unable to output a non-default value, which makes it
unsuitable for actually persisting changes across multiple form
submissions. To preserve compatibility with forms that aren't expecting
persistence, fixing this requires a new parameter in the field
definition.

Also, due to the unusual way that hidden fields are added to the HTML
output, they are not being correctly handled by HTMLFormFieldCloner.
Special-case that.

Change-Id: I1fde7372401299b4432d28ac61982d47d5f3bbea

9 years agoAdd counter to DatabaseUpdater::setAppliedUpdates
physikerwelt (Moritz Schubotz) [Sat, 20 Sep 2014 19:36:03 +0000 (12:36 -0700)]
Add counter to DatabaseUpdater::setAppliedUpdates

The key was constructed depending on the current time only.
This method fails, if multiple updates are performed
within one second.

Bug: 71087
Change-Id: Id7e30298729b3abb1501a34fcc1ba4e45d2172f0

9 years agoAdded another size limit check to Job::toString
Aaron Schulz [Thu, 9 Oct 2014 00:15:05 +0000 (17:15 -0700)]
Added another size limit check to Job::toString

Change-Id: I5a6e94eb98769b33d0ea44273d0eee8ee669dd17

9 years agoMerge "change [[Special:Block]] to destructive"
jenkins-bot [Wed, 8 Oct 2014 23:26:42 +0000 (23:26 +0000)]
Merge "change [[Special:Block]] to destructive"

9 years agoMerge "Revert "buttons: Update focus state""
jenkins-bot [Wed, 8 Oct 2014 22:35:30 +0000 (22:35 +0000)]
Merge "Revert "buttons: Update focus state""

9 years agoMerge "Added a --type filter to showJobs.php"
jenkins-bot [Wed, 8 Oct 2014 21:41:55 +0000 (21:41 +0000)]
Merge "Added a --type filter to showJobs.php"

9 years agoMerge "MediaWiki UI: Use em's for the button width"
jenkins-bot [Wed, 8 Oct 2014 21:40:32 +0000 (21:40 +0000)]
Merge "MediaWiki UI: Use em's for the button width"

9 years agoAdded a --type filter to showJobs.php
Aaron Schulz [Wed, 8 Oct 2014 20:39:09 +0000 (13:39 -0700)]
Added a --type filter to showJobs.php

Change-Id: I43d2c9fb949d88364dd000e9892a60ac19412e31

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 8 Oct 2014 18:55:44 +0000 (20:55 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I4fce4df72f1585379212c1ff471cda0417212543

9 years agoOptimise checkboxes for Firefox mobile
jdlrobson [Wed, 8 Oct 2014 18:20:57 +0000 (11:20 -0700)]
Optimise checkboxes for Firefox mobile

Bug: 71750
Change-Id: I19a6837423a2c9c9d3f758c7c6a869bd02c70460

9 years agoMinor doc fix for wfShellExecWithStderr()
Yuri Astrakhan [Wed, 8 Oct 2014 18:12:11 +0000 (14:12 -0400)]
Minor doc fix for wfShellExecWithStderr()

Change-Id: I9d5fe442c6e85d61c1cdec8c42caab06b37856b1

9 years agoMerge "Fix expires typo in comment"
jenkins-bot [Wed, 8 Oct 2014 16:04:53 +0000 (16:04 +0000)]
Merge "Fix expires typo in comment"

9 years agoFix expires typo in comment
Reedy [Wed, 8 Oct 2014 15:55:52 +0000 (16:55 +0100)]
Fix expires typo in comment

Change-Id: I4bb63f610ce0ec246c4aa7aef3d04f096fb3e564