lhc/web/wiklou.git
9 years agoUpdate OOjs UI to v0.1.0-pre (4ea8e2cba9)
James D. Forrester [Tue, 23 Sep 2014 20:24:06 +0000 (13:24 -0700)]
Update OOjs UI to v0.1.0-pre (4ea8e2cba9)

New changes:
5d58e70 Documentation: ActionWidget is non-framed by default
7ecfa7c TextInputWidget: Determine validity on blur and change.
7c0834d Localisation updates from https://translatewiki.net.
948b303 build: Split test into a lint task for quickly running those tasks
bab8bef Localisation updates from https://translatewiki.net.

Change-Id: I5ccdeb9b5815ffef674dd17fe713a6b0e87ec2a4

9 years agoMerge "API: Remove XML tag highlighting from non-XML formats"
jenkins-bot [Tue, 23 Sep 2014 19:52:19 +0000 (19:52 +0000)]
Merge "API: Remove XML tag highlighting from non-XML formats"

9 years agoMerge "Move code to load User data from cache out of loadFromId"
jenkins-bot [Tue, 23 Sep 2014 19:47:07 +0000 (19:47 +0000)]
Merge "Move code to load User data from cache out of loadFromId"

9 years agoMerge "doxygen: Document problem with slashes and fix a few"
jenkins-bot [Tue, 23 Sep 2014 19:46:34 +0000 (19:46 +0000)]
Merge "doxygen: Document problem with slashes and fix a few"

9 years agoAPI: Remove XML tag highlighting from non-XML formats
Kevin Israel [Fri, 16 May 2014 16:49:36 +0000 (12:49 -0400)]
API: Remove XML tag highlighting from non-XML formats

Since 926afc65c316, the transformation assumes < and > occur in pairs.
This assumption is invalid for formats such as JSON.

Implementing proper JSON syntax highlighting falls outside the scope
of this workaround and is left for separate changes, likely including
the addition of a hook. That is part of the API roadmap RfC.

https://www.mediawiki.org/wiki/Requests_for_comment/API_roadmap#Changes_to_pretty-printed_HTML_formats

Bug: 65403
Change-Id: Iff8d444c82f7efd2bd1c9f703defc4f0984e8211

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 23 Sep 2014 19:39:28 +0000 (21:39 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I3870b75bf183b176544fdd53f34b711c4ee1baaa

9 years agoMove code to load User data from cache out of loadFromId
Matthias Mullie [Mon, 9 Dec 2013 14:15:13 +0000 (15:15 +0100)]
Move code to load User data from cache out of loadFromId

This way, outside code can load data from cache only if present. E.g. when data
for a lot of users is needed, it'd be preferable to batch-load all that is not
yet in cache.

Since there's currently no way to check for data in cache, one would have to
load all User objects separately (which may result in lots of DB queries if
nothing is in cache) or batch-load all of them (which may result in few DB
queries, but ones that may not be needed if all data is already in cache)

Change-Id: Ia22d04744760c3b6f3264786434e218b8aa88d53

9 years agodoxygen: Document problem with slashes and fix a few
Timo Tijhof [Sat, 30 Aug 2014 16:51:42 +0000 (18:51 +0200)]
doxygen: Document problem with slashes and fix a few

Change-Id: I39f8f394e7421fca71e7d26818f7118e85de7e4f

9 years agoReduce duplication in some Special:ListGroupRights code
Alex Monk [Mon, 22 Sep 2014 19:04:57 +0000 (20:04 +0100)]
Reduce duplication in some Special:ListGroupRights code

Change-Id: I05bf9f3eef5f71d2d3789c8a6a1aff09ac46c14e

9 years agoMerge "doxygen: Fix leading space in class member descriptions"
jenkins-bot [Tue, 23 Sep 2014 19:26:39 +0000 (19:26 +0000)]
Merge "doxygen: Fix leading space in class member descriptions"

9 years agoMerge "doxygen: Fix trailing star in class member descriptions"
jenkins-bot [Tue, 23 Sep 2014 19:26:35 +0000 (19:26 +0000)]
Merge "doxygen: Fix trailing star in class member descriptions"

9 years agoUse as strict comparison to check whether an user name was provided in Special:ListFiles
Alexandre Emsenhuber [Wed, 27 Aug 2014 20:39:19 +0000 (22:39 +0200)]
Use as strict comparison to check whether an user name was provided in Special:ListFiles

Otherwise Special:ListFiles/0 will not behave as expected.

Change-Id: I1fa503b4b514a471ded798b54e867435d30b80c5

9 years agoMerge "Add missing space to log message"
jenkins-bot [Tue, 23 Sep 2014 18:25:07 +0000 (18:25 +0000)]
Merge "Add missing space to log message"

9 years agoMerge "Add mw-ui-icon"
jenkins-bot [Tue, 23 Sep 2014 16:28:35 +0000 (16:28 +0000)]
Merge "Add mw-ui-icon"

9 years agoDisable thumbnail chaining support for PNGs
Gilles Dubuc [Tue, 23 Sep 2014 15:09:36 +0000 (17:09 +0200)]
Disable thumbnail chaining support for PNGs

Bug: 67525
Change-Id: Id2a57d6fc6b0f415b88b7185220c33c70fee33e7
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/600

9 years agoAdd mw-ui-icon
Sam Smith [Wed, 16 Jul 2014 16:16:29 +0000 (09:16 -0700)]
Add mw-ui-icon

Compatible with IE8+ (because of the use of pseudo-elements).
This includes support for icons on the left of the element and
icons which hide the text of the containing element.

I attempted to make an mw-ui-icon-element which didn't use pseudo
elements but the problem with this is how it plays with things such
as mw-ui-button and the gutter. I'd suggest exploring this later as this gets greater
adoption.

In addition to this I have dropped mw-ui-icon-after since I don't see any
clear use cases for this yet and I think it is overengineering the solution.

Bug: 55535
Change-Id: I68a1b207d8a4af57879361921a5f8c3aeda3fd9a

9 years agoAdd missing space to log message
Alexandre Emsenhuber [Tue, 23 Sep 2014 10:18:57 +0000 (12:18 +0200)]
Add missing space to log message

Follow-up I72c5c3fb75 (6fc2e603).

Change-Id: I9375da8542b3c2fb33cf0b692ab38722445081bc

9 years agoMake linker warning useful
Niklas Laxström [Tue, 23 Sep 2014 07:13:33 +0000 (09:13 +0200)]
Make linker warning useful

Follow-up to I4c397de289ae51bc463b5ae

Change-Id: I4695172b13988fc333707e09fc9d909f20adb7c1

9 years agodoxygen: Fix leading space in class member descriptions
Timo Tijhof [Sat, 30 Aug 2014 16:50:35 +0000 (18:50 +0200)]
doxygen: Fix leading space in class member descriptions

Using ResourceLoader.php as example:
 $ php maintenance/mwdoc-filter.php includes/resourceloader/ResourceLoader.php

== Before ==

Filtered code:

    /**  Associative mapping ... */ protected array $moduleInfos = array();

    /**  $config */ private Config $config;

Note descriptions containing a leading slash which was matched after the type
hint in the original code.

== After ==

Filtered code:

    /** Associative mapping ... */ protected array $moduleInfos = array();

    /** $config */ private Config $config;

Change-Id: Idcdd487ad0f4fbabdd5665abfbb8492f5bac655a

9 years agodoxygen: Fix trailing star in class member descriptions
Timo Tijhof [Sat, 30 Aug 2014 16:10:26 +0000 (18:10 +0200)]
doxygen: Fix trailing star in class member descriptions

Currently lots of member descriptions in generated Doxygen pages
have a trailing star or even just a star as their description.

This is due to the regex we use to *change* the code before Doxygen
is given the code. This filter script translates the code to be
invalid PHP that looks more like Java's strongly typed class members.

The regex has been broken up into pieces for better readabilty
but not changed in any way.

The replacement is where the fix was made. Here we now replace
with "${2}/" instead of "${2} */".

Using ResourceLoader.php as example:
 $ php maintenance/mwdoc-filter.php includes/resourceloader/ResourceLoader.php

== Before ==

Filtered code:

    /** @var array Module name/ResourceLoaderModule object pairs */
    protected $modules = array();

    /**  Associative mapping ... * */ protected array $moduleInfos = array();

    /**  $config * */ private Config $config;

    /**
     *  Associative array mapping framework ids
     *      like array( 'ext.foo.tests', .. )
     * */ protected array $testModuleNames = array();

    /** @var array E.g. array( 'http://.../load.php' ) */
    protected $sources = array();

    /**  * */ protected bool $hasErrors = false;

Rendering currently at
https://doc.wikimedia.org/mediawiki-core/master/php/html/classResourceLoader.html

    bool   $hasErrors = false
           *
    array  $moduleInfos = array()
           Associative mapping ... *.
           $modules = array()
           $sources = array()
    array  $testModuleNames = array()
           Associative array mapping framework ids like array( 'ext.foo.tests', .
    Config $config
           $config *

Note the stray stars in hasErrors, moduleInfos and $config. $testModuleNames
doesn't have it because it has a multi-line block comment and presumably
Doxygen tolerates spaces in the final star sequence if it's on its own line.

== After ==

Filtered code:

    /** @var array Module name/ResourceLoaderModule object pairs */
    protected $modules = array();

    /**  Associative mapping ... */ protected array $moduleInfos = array();

    /**  $config */ private Config $config;

    /**
     *  Associative array mapping framework ids
     *      like array( 'qunit' => array( 'ext.foo.tests', .. ), .. )
     */ protected array $testModuleNames = array();

    /** @var array E.g. array( 'http://.../load.php' ) */
    protected $sources = array();

    /**  */ protected bool $hasErrors = false;

Change-Id: Id7c307dc2911ef4f1a6c2ca566c6b48735b763d7

9 years agoinputs.less: Add disabled state
Prateek Saxena [Mon, 22 Sep 2014 22:43:33 +0000 (15:43 -0700)]
inputs.less: Add disabled state

Bug: 71149
Change-Id: Ia97dcb26bdae65a681f3d33b2e32d59831a55191

9 years agoMerge "Begin logging RequestContexts relying on global title"
jenkins-bot [Mon, 22 Sep 2014 23:11:13 +0000 (23:11 +0000)]
Merge "Begin logging RequestContexts relying on global title"

9 years agoMerge "Special:ActiveUsers: Use mw-ui-input-inline"
jenkins-bot [Mon, 22 Sep 2014 23:06:18 +0000 (23:06 +0000)]
Merge "Special:ActiveUsers: Use mw-ui-input-inline"

9 years agoMerge "Break accidental references in Parser::__clone"
jenkins-bot [Mon, 22 Sep 2014 22:53:08 +0000 (22:53 +0000)]
Merge "Break accidental references in Parser::__clone"

9 years agoBegin logging RequestContexts relying on global title
Chad Horohoe [Mon, 22 Sep 2014 22:24:52 +0000 (15:24 -0700)]
Begin logging RequestContexts relying on global title

Change-Id: I72c5c3fb75c9ceff02390c91b3735f2da90845de

9 years agoMerge "Remove $wgTitle from WebStart forever"
jenkins-bot [Mon, 22 Sep 2014 22:00:27 +0000 (22:00 +0000)]
Merge "Remove $wgTitle from WebStart forever"

9 years agoMerge "Set site logo url in ResourceLoaderSiteModule instead of inline styles"
jenkins-bot [Mon, 22 Sep 2014 21:57:20 +0000 (21:57 +0000)]
Merge "Set site logo url in ResourceLoaderSiteModule instead of inline styles"

9 years agoRemove $wgTitle from WebStart forever
Chad Horohoe [Mon, 22 Sep 2014 21:51:58 +0000 (14:51 -0700)]
Remove $wgTitle from WebStart forever

Change-Id: Icdd091f81547b76a403fc78f2e832ef3e85a67a2

9 years agoSpecial:ActiveUsers: Use mw-ui-input-inline
Prateek Saxena [Mon, 22 Sep 2014 21:51:00 +0000 (14:51 -0700)]
Special:ActiveUsers: Use mw-ui-input-inline

Bug: 71142
Change-Id: Ie737b8bd74179ce916747c5e9cd23304e2ad8b16

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 22 Sep 2014 19:22:05 +0000 (21:22 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Icba92059caac149e239ee1a90d962dbddd7e5605

9 years agoMerge "mw.Title: Add method to get title relative to an arbitrary namespace"
jenkins-bot [Mon, 22 Sep 2014 18:22:49 +0000 (18:22 +0000)]
Merge "mw.Title: Add method to get title relative to an arbitrary namespace"

9 years agoSet site logo url in ResourceLoaderSiteModule instead of inline styles
tholam [Sun, 1 Dec 2013 00:49:21 +0000 (18:49 -0600)]
Set site logo url in ResourceLoaderSiteModule instead of inline styles

Requires skins to use the 'mw-wiki-logo' class on the logo element
for the styles to apply. This is backwards compatible with skins
not using that class and using inline styles instead.

Bug: 56257
Change-Id: I89e32fcd27c9f07e889aa5b67d7d97d06b412aea

9 years agoMerge "Delete maintenance/purgeOldText.inc"
jenkins-bot [Mon, 22 Sep 2014 18:02:06 +0000 (18:02 +0000)]
Merge "Delete maintenance/purgeOldText.inc"

9 years agoMerge "Add maxlength of 6 for time correction in preferences"
jenkins-bot [Mon, 22 Sep 2014 17:52:29 +0000 (17:52 +0000)]
Merge "Add maxlength of 6 for time correction in preferences"

9 years agoBreak accidental references in Parser::__clone
Brad Jorsch [Mon, 22 Sep 2014 16:49:28 +0000 (12:49 -0400)]
Break accidental references in Parser::__clone

If you have a reference *to* an object field (anywhere in the call
stack) when you clone the object, the field will be cloned as a
reference rather than as a value.

So we have to break those unexpected references in the cloned object
manually, which is easy enough by making a non-reference copy and then
rebinding the cloned object's reference to this copy.

Bug: 56226
Change-Id: I9c600e9c0845b4fde0366126ce3809d74e2240b4

9 years agoDelete maintenance/purgeOldText.inc
Kevin Israel [Fri, 12 Sep 2014 08:00:00 +0000 (04:00 -0400)]
Delete maintenance/purgeOldText.inc

The only function it contains (PurgeRedundantText()) was superseded by
Maintenance::purgeRedundantText() in r52006, yet the file had not been
deleted. I grepped core and extensions in Gerrit for the names of both
the function and the file and found no usage.

The purgeOldText.php maintenance script uses the "new" (since 1.16)
method and has been retained.

Change-Id: I40afbd264242eab7fadc8352380779074d61d7f8

9 years agomw.Title: Add method to get title relative to an arbitrary namespace
Alex Monk [Fri, 4 Jul 2014 17:02:07 +0000 (18:02 +0100)]
mw.Title: Add method to get title relative to an arbitrary namespace

I'm not sure where this kind of thing could be used outside of
dealing with templates/transclusion. Making it generic anyway.

Bug: 67448
Change-Id: Ie554adefec43997d362b5d7b45c30403912743b5

9 years agoMerge "Remove 'move' from LogPage::getTitleLink"
jenkins-bot [Mon, 22 Sep 2014 17:41:38 +0000 (17:41 +0000)]
Merge "Remove 'move' from LogPage::getTitleLink"

9 years agoMerge "Improve mod_security warning"
jenkins-bot [Mon, 22 Sep 2014 17:38:55 +0000 (17:38 +0000)]
Merge "Improve mod_security warning"

9 years agoAdd maxlength of 6 for time correction in preferences
Matthew Flaschen [Fri, 19 Sep 2014 04:33:01 +0000 (00:33 -0400)]
Add maxlength of 6 for time correction in preferences

* Supported formats (controlled by filterTimezoneInput) are:
** -12:34/01:23.  It says, "Max is +14:00 and min is -12:00", both
   of which fit in 6 (if someone uses -24:00/+24:00, it's the same width
   anyway).
** If it's not in that format, it's treated as a simple hour, which
   means it should be from -12 to +14 (max 3).

Bug: 70405
Change-Id: I47ec2c07929069cb5243c306a1c502751e57a31b

9 years agoArrays in PHP are a bit special...
Marius Hoch [Mon, 22 Sep 2014 17:12:02 +0000 (19:12 +0200)]
Arrays in PHP are a bit special...

Change-Id: Ic1c16e297f68417ba4a12c109e3a6e83974a82d5

9 years agoMerge "Update CLDRPluralRuleParser library"
jenkins-bot [Mon, 22 Sep 2014 17:02:00 +0000 (17:02 +0000)]
Merge "Update CLDRPluralRuleParser library"

9 years agoMerge "Add @covers tags to SpecialPageFactoryTest"
jenkins-bot [Mon, 22 Sep 2014 16:48:21 +0000 (16:48 +0000)]
Merge "Add @covers tags to SpecialPageFactoryTest"

9 years agoMerge "Allow logged-in users to view and use the login form again"
jenkins-bot [Mon, 22 Sep 2014 14:15:56 +0000 (14:15 +0000)]
Merge "Allow logged-in users to view and use the login form again"

9 years agoAllow logged-in users to view and use the login form again
Bartosz Dziewoński [Fri, 19 Sep 2014 15:10:40 +0000 (17:10 +0200)]
Allow logged-in users to view and use the login form again

The fix for bug 15484 (d0439af8) has introduced the behavior of
automatically redirecting users who view the login form when already
logged in to the requested 'returnto' location. If it was not given,
users were redirected to main page instead.

However, that has annoyed people who often switch between several
accounts and have grown accustomed to the old behavior of being able
to log in while logged in. Given that there are no conflicts between
these two features, let's just restore the old behavior when
Special:UserLogin is visited directly (no 'returnto' location given).

This reverts 5dfc57eb which removed then-dead code for showing login
form to logged-in users and tweaks an if() condition.

Bug: 70855
Change-Id: I7e40c13a6ca566b4d66d943c006af9edb6941ee9

9 years agoMerge "Fix special case at Special:MediaStatistics"
jenkins-bot [Mon, 22 Sep 2014 12:34:28 +0000 (12:34 +0000)]
Merge "Fix special case at Special:MediaStatistics"

9 years agoUpdate CLDRPluralRuleParser library
Santhosh Thottingal [Mon, 22 Sep 2014 10:41:06 +0000 (16:11 +0530)]
Update CLDRPluralRuleParser library

Upstream release:
https://github.com/santhoshtr/CLDRPluralRuleParser/releases/tag/v1.1.3

Does not have any feature changes.
License changed to MIT

Change-Id: Icb4c00cca86083d77028a4774122acd8c595152e

9 years agoMerge "Fix duplicate messages key in 'mediawiki.special.preferences' definition"
jenkins-bot [Mon, 22 Sep 2014 10:12:58 +0000 (10:12 +0000)]
Merge "Fix duplicate messages key in 'mediawiki.special.preferences' definition"

9 years agoImprove coverage of MailAddress::toString()
Kunal Mehta [Mon, 22 Sep 2014 01:17:38 +0000 (18:17 -0700)]
Improve coverage of MailAddress::toString()

Change-Id: I8d5a1e8f293afa03d94167b722d3078f467cf59e

9 years agoAdd @covers tags to SpecialPageFactoryTest
Kunal Mehta [Mon, 22 Sep 2014 01:01:27 +0000 (18:01 -0700)]
Add @covers tags to SpecialPageFactoryTest

Change-Id: I997cd4296a60eb9950f7fee0caed7a2349e07bd2

9 years agoFix duplicate messages key in 'mediawiki.special.preferences' definition
Kunal Mehta [Mon, 22 Sep 2014 00:25:51 +0000 (17:25 -0700)]
Fix duplicate messages key in 'mediawiki.special.preferences' definition

Follows up: Idb00f50a

Change-Id: I852e5965de8e0bee7e976637df95daded691e11c

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

Change-Id: I2a459df4c43343ca7988e8c702e68b912aa01112

9 years agomediawiki.api.edit: Remove "format: 'json'"
Fomafix [Sun, 21 Sep 2014 18:42:55 +0000 (18:42 +0000)]
mediawiki.api.edit: Remove "format: 'json'"

"format: 'json'" is in the defaultOptions in mediawiki.api.

Change-Id: Ifdf61205d94dbf918be5427cef89a037ce9f08a2

9 years agoMerge "Fix typo in release notes"
jenkins-bot [Sun, 21 Sep 2014 09:55:53 +0000 (09:55 +0000)]
Merge "Fix typo in release notes"

9 years agoMerge "Copy translations of Special:MyLanguage alias from Translate"
jenkins-bot [Sun, 21 Sep 2014 09:28:41 +0000 (09:28 +0000)]
Merge "Copy translations of Special:MyLanguage alias from Translate"

9 years agoFix typo in release notes
Niklas Laxström [Sun, 21 Sep 2014 09:22:47 +0000 (11:22 +0200)]
Fix typo in release notes

Change-Id: I2651bc9c8b6ace473a503719e2d2930cfb50bc04

9 years agoCopy translations of Special:MyLanguage alias from Translate
Amir E. Aharoni [Thu, 18 Sep 2014 23:18:01 +0000 (02:18 +0300)]
Copy translations of Special:MyLanguage alias from Translate

Tuvan (tyv) didn't have a special page section, so now it's added.

See also I6f84eaf414b6d4239522bad14e90b1cbfc82590f.

Bug: 69461
Change-Id: Ie6a4d878b87ee030f9c042b43f7b1fb424b54099

9 years agoMerge "Unset redirect param in MoveLogFormatter::getMessageParameters"
jenkins-bot [Sun, 21 Sep 2014 09:03:14 +0000 (09:03 +0000)]
Merge "Unset redirect param in MoveLogFormatter::getMessageParameters"

9 years agoMerge "Move default logo to resources/assets/ directory"
jenkins-bot [Sun, 21 Sep 2014 05:23:53 +0000 (05:23 +0000)]
Merge "Move default logo to resources/assets/ directory"

9 years agoMerge "jquery.confirmable: Add a space between buttons"
jenkins-bot [Sun, 21 Sep 2014 05:10:38 +0000 (05:10 +0000)]
Merge "jquery.confirmable: Add a space between buttons"

9 years agofindHooks.php, importSiteScripts.php: Use format=json
Kevin Israel [Mon, 30 Jun 2014 14:02:01 +0000 (10:02 -0400)]
findHooks.php, importSiteScripts.php: Use format=json

* Also added query continuation support to findHooks.php.
* Also fixed query continuation support in importSiteScripts.php
  (broken by 2b3f4d821cd4).

Change-Id: I7ef62d370f5e2f598ac4c5857ac0dbf3ee4c8fa2

9 years agoCSSJanus: Add Apache license header
Timo Tijhof [Sun, 21 Sep 2014 00:21:53 +0000 (17:21 -0700)]
CSSJanus: Add Apache license header

Follows-up f9e8d61 which removed the Python library and its copy
of the Apache license file.

Change-Id: Ic3ed4a2fb935e713916cb8eb6ba1673839f40532

9 years agoFix special case at Special:MediaStatistics
Mormegil [Sat, 20 Sep 2014 23:20:56 +0000 (23:20 +0000)]
Fix special case at Special:MediaStatistics

When a percentage was equal to 100 %, makePercentPretty
determined it should have zero decimal places, and the
resulting string "100" had "trailing 0's" removed, resulting
in a completely wrong "1".

We might either check if the number contains the decimal dot
prior to trimming, or spare the hassle for the special case
completely.

Change-Id: I15ac5caa275d72909adba27b6b88824a830bd574

9 years agoMerge "UserTest: Fix edit count test which incorrectly added user to db"
jenkins-bot [Sat, 20 Sep 2014 22:30:52 +0000 (22:30 +0000)]
Merge "UserTest: Fix edit count test which incorrectly added user to db"

9 years agoUserTest: Fix edit count test which incorrectly added user to db
aude [Sat, 20 Sep 2014 15:11:00 +0000 (17:11 +0200)]
UserTest: Fix edit count test which incorrectly added user to db

Although 'added' to the database, the user name was cleared
in User::loadDefaults() and not added correctly to the database.

Then if one has BetaFeatures extension, then the test fails.
Via a hook, BetaFeatures does "User::newFromName( $user->getName() );",
that produces a null object as name is '127.0.0.1' and then
$user->getOption() fails.

loadDefaults() is automatically called by addToDatabase() with correct
parameters, so we can just remove the call.

Bug: 68626
Change-Id: Ibb5c60192eb83b2608f72b59d7705854549a5dac

9 years agoMerge "maintenance: Remove cssjanus.py"
jenkins-bot [Sat, 20 Sep 2014 21:27:31 +0000 (21:27 +0000)]
Merge "maintenance: Remove cssjanus.py"

9 years agoMerge "DatabaseMysqlBase: Use VERSION() rather than server_info"
jenkins-bot [Sat, 20 Sep 2014 21:12:36 +0000 (21:12 +0000)]
Merge "DatabaseMysqlBase: Use VERSION() rather than server_info"

9 years agomaintenance: Remove cssjanus.py
Timo Tijhof [Sat, 20 Sep 2014 21:06:08 +0000 (14:06 -0700)]
maintenance: Remove cssjanus.py

Follows-up r55510 (aa4d684a82) which added it for use with the
Vector stylesheets at times where we didn't have CSSJanus.php.

This has been unused since we introduced ResourceLoader and the
PHP-port of CSSJanus.

Change-Id: I2c9a022354617060d99bf1c44f0726b495ec070d

9 years agoMove default logo to resources/assets/ directory
Bartosz Dziewoński [Thu, 18 Sep 2014 11:01:33 +0000 (13:01 +0200)]
Move default logo to resources/assets/ directory

The problem here is that the path to 'wiki.png' is saved in users'
LocalSettings.

We likely should not remap the path, like we did for footer license
icons in Ic7c32e56:

* It's likely that users changed their logo image by overwriting the
  file in skins/common/.
* If the normal upgrade process is followed (overwrite-uploading new
  files), the old file will still be there with the skins/common/
  directory.
* If it does cause problems, they'll be rather easy to notice and fix.

On the other hand, maybe we should?

* This is going to be annoying for git users.
* It will bite anyone who deletes all MediaWiki files when upgrading
  via tarball, which is more likely with the recent skin system
  changes encouraging users to remove old cruft from skins/ directory.

Bug: 69277
Change-Id: I175fe57048ebf9d348fb2fe67bf62cf5df389003

9 years agoFix CSSJanus flipping in LESS mixins and remove broken custom LESS functions
Bartosz Dziewoński [Thu, 18 Sep 2014 14:49:08 +0000 (16:49 +0200)]
Fix CSSJanus flipping in LESS mixins and remove broken custom LESS functions

Custom LESS functions are problematic for us for a number of reasons,
as outlined by Timo on bug 67368. We should get rid of them.

The only use case was implementing CSSMin data: URI embedding in LESS,
which used to be impossible due to lessc not preserving comments (bug
54673). However, thanks to new syntax added in f3779e06 we can insert
the annotations in such a way that the compiler won't mess with them.
The same technique is used in OOjs UI since 584ed144.

The LESS-function-based embedding implementation also meant that we
were unable to flip images for RTL (bug 66091 and friends: bug 66773,
bug 68326). The annotation one doesn't have this limitation.

Bug: 67368
Bug: 66091
Bug: 66773
Bug: 68326
Change-Id: I3062346ed63272a1c22b5df27b4cc1de2a699d9a

9 years agoSet mw.config wgFileCanRotate only on Special:Upload instead of
Fomafix [Thu, 18 Sep 2014 21:00:52 +0000 (21:00 +0000)]
Set mw.config wgFileCanRotate only on Special:Upload instead of
site-wide

UploadWizard also uses wgFileCanRotate and set the variable by
I3c50b56e6a11742cfc1c02d3d8dbeb0c151b0e91 itself.

Change-Id: Iff6a952c8f4f21c0e27bd6b4191f3b0b453eec03

9 years agoMerge "Automatic direction for the license in Special:Version"
jenkins-bot [Sat, 20 Sep 2014 19:34:31 +0000 (19:34 +0000)]
Merge "Automatic direction for the license in Special:Version"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 20 Sep 2014 18:01:28 +0000 (20:01 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I38d6fce89373f5ec424d44c757d3011ae9ea7eb4

9 years agoMerge "Strict standards: Static function PasswordTestCase::providePasswordTests(...
jenkins-bot [Sat, 20 Sep 2014 17:25:41 +0000 (17:25 +0000)]
Merge "Strict standards: Static function PasswordTestCase::providePasswordTests() should not be abstract"

9 years agoStrict standards: Static function PasswordTestCase::providePasswordTests() should...
Bartosz Dziewoński [Sat, 20 Sep 2014 17:09:04 +0000 (19:09 +0200)]
Strict standards: Static function PasswordTestCase::providePasswordTests() should not be abstract

Caused by 96771e3a655bad2d3a9440fababaf2dcf5a62bc5. No idea why that
change merged successfully.

Change-Id: I946f179699a5f249b032c4c8f90a9e6d2b033f55

9 years agoMerge "UserTest: Don't rely on the behavior of unknown user options"
jenkins-bot [Sat, 20 Sep 2014 17:13:03 +0000 (17:13 +0000)]
Merge "UserTest: Don't rely on the behavior of unknown user options"

9 years agoAutomatic direction for the license in Special:Version
Amir E. Aharoni [Sat, 19 Jul 2014 11:22:07 +0000 (14:22 +0300)]
direction for the license in Special:Version

Change-Id: I357d92eca18de9a7a79ddfb215337ec231250ca3

9 years agoUserTest: Don't rely on the behavior of unknown user options
Bartosz Dziewoński [Sat, 20 Sep 2014 16:56:04 +0000 (18:56 +0200)]
UserTest: Don't rely on the behavior of unknown user options

They are not actually expected to be preserved, although they might be.

Change-Id: I34e15f3d1e5b9b825e6fc14814c8e9a6ac151ce9

9 years agoImprove mod_security warning
Jackmcbarn [Sat, 20 Sep 2014 15:29:05 +0000 (11:29 -0400)]
Improve mod_security warning

Make it detect mod_security2 as well, and make the warning message
scarier.

Bug: 39463
Change-Id: Ic8dbd8425299f60e9fc0b54ff1b9a9a991d24190

9 years agoUnset redirect param in MoveLogFormatter::getMessageParameters
umherirrender [Wed, 6 Aug 2014 09:00:47 +0000 (11:00 +0200)]
Unset redirect param in MoveLogFormatter::getMessageParameters

The redirect param is used to get a different message key, so there is
no need to pass it to the message, because the value is stable.
'logentry-move-move' always get a '0' and
'logentry-move-move-noredirect' always a '1'
The value is only visible with uselang=qqx

Change-Id: Ib6a3303e7401e29561165355b3611c3c123bfcd0

9 years agoDatabaseMysqlBase: Use VERSION() rather than server_info
Kevin Israel [Sun, 31 Aug 2014 10:43:50 +0000 (06:43 -0400)]
DatabaseMysqlBase: Use VERSION() rather than server_info

I noticed enwiki's Special:Version page was reporting the version
of MariaDB 10 as "5.5.5-10.0.11-MariaDB-log" rather than just
"10.0.11-MariaDB-log". This change should fix that.

Change-Id: I6bf7e27e88014f70594b33d089636b09b6c97527

9 years agoMerge "Completely remove skin autodiscovery"
jenkins-bot [Sat, 20 Sep 2014 02:21:50 +0000 (02:21 +0000)]
Merge "Completely remove skin autodiscovery"

9 years agoCompletely remove skin autodiscovery
Bartosz Dziewoński [Mon, 26 May 2014 15:41:57 +0000 (17:41 +0200)]
Completely remove skin autodiscovery

Also update documentation.

Bug: 65748
Change-Id: I393896281e901de2000c09c0abd16ee2a0f41e2f

9 years agoRemove WMF deployment hack for 'Enlarge' image
Bartosz Dziewoński [Mon, 18 Aug 2014 13:27:43 +0000 (15:27 +0200)]
Remove WMF deployment hack for 'Enlarge' image

Follow-up to I849a2222. To be merged 31 days after that cut lands
(i.e.,  after 19 September).

Bug: 69673
Change-Id: I7a920105cadf3a4dea7d3bffee7ae6ff08e40887

9 years agoMerge "Fixed --maxtime handling by JobRunner"
jenkins-bot [Fri, 19 Sep 2014 22:57:45 +0000 (22:57 +0000)]
Merge "Fixed --maxtime handling by JobRunner"

9 years agoFixed --maxtime handling by JobRunner
Aaron Schulz [Fri, 19 Sep 2014 22:27:04 +0000 (15:27 -0700)]
Fixed --maxtime handling by JobRunner

Bug: 71073
Change-Id: I4ddebd5aad27d0882dd2e4614df91ac565a71d2d

9 years agoReduce new button min-width from 80px to 70px
kaldari [Fri, 19 Sep 2014 22:28:06 +0000 (15:28 -0700)]
Reduce new button min-width from 80px to 70px

80px is too large for mobile and causes some buttons to wrap to
other lines.

Change-Id: I00b44508e7783957a8c24c4890cc1ba4dfe265da

9 years agoBump 1.25
James D. Forrester [Fri, 19 Sep 2014 20:52:13 +0000 (13:52 -0700)]
Bump 1.25

Change-Id: I361206d6c0522e89f685a1b76fec56ec593032c5

9 years agoRemove redundant $db->resultObject() calls
Kevin Israel [Fri, 12 Sep 2014 04:12:38 +0000 (00:12 -0400)]
Remove redundant $db->resultObject() calls

DatabaseBase::query() already passes the value returned by the
database driver (usually an object or resource for SELECT queries)
through $db->resultObject(). There is no need to pass it through
the method a second time to get a ResultWrapper.

Change-Id: I5d34ab2bffb7f236d2f824b4ef0e8670f89d4599

9 years agoMerge "Re-apply Ic917c7d, don't cast SpecialPageFactory::$list to an object"
jenkins-bot [Fri, 19 Sep 2014 20:16:40 +0000 (20:16 +0000)]
Merge "Re-apply Ic917c7d, don't cast SpecialPageFactory::$list to an object"

9 years agoRemove 'move' from LogPage::getTitleLink
umherirrender [Mon, 4 Aug 2014 17:49:08 +0000 (19:49 +0200)]
Remove 'move' from LogPage::getTitleLink

LogPage::getTitleLink only called for log types which are in
$wgLogActions, but move is not there.

Change-Id: I230b25988f9a420970d807437263798e5ad1db69

9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Fri, 19 Sep 2014 19:42:35 +0000 (19:42 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoi18n: Native digits on 'mergehistory-success'
Reza [Sat, 13 Sep 2014 01:02:41 +0000 (01:02 +0000)]
i18n: Native digits on 'mergehistory-success'

Change-Id: If3319c20362785a4b0f875ad8b5c1526e3953b6c

9 years agoImprove test coverage of Title::isValidMoveOperation
Kunal Mehta [Fri, 19 Sep 2014 06:10:03 +0000 (23:10 -0700)]
Improve test coverage of Title::isValidMoveOperation

Change-Id: Ifd81b0a894714ca94ab3e627ba83c881d96c3377

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 19 Sep 2014 19:14:12 +0000 (21:14 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ibdc7c61789400b1ab18f05da42ecd62c54cc7bb3

9 years agoAdded missing NULL value to sql insert statement.
Bill Traynor [Fri, 19 Sep 2014 17:54:30 +0000 (13:54 -0400)]
Added missing NULL value to sql insert statement.

In tables.sql the page table is defined with 14 columns.  Following
this, the dummy table insert statement included 13 values causing
failure of the installation process.  This change adds the required 14th
value.

Bug: 71022
Change-Id: I8f8ee95fb4c0147ac09232ef253ecf7784b7fb52
Signed-off-by: Bill Traynor <btraynor@gmail.com>
9 years agoMerge "Fix some issues with Microsoft SQL Server Driver"
jenkins-bot [Fri, 19 Sep 2014 17:16:40 +0000 (17:16 +0000)]
Merge "Fix some issues with Microsoft SQL Server Driver"

9 years agoFix some issues with Microsoft SQL Server Driver
U-REDMOND\emadelw [Thu, 18 Sep 2014 20:36:46 +0000 (13:36 -0700)]
Fix some issues with Microsoft SQL Server Driver

* INSERT IGNORE now works properly
* Only return an inserted id if the INSERT was actually successful
* Fix syntax error when doing LIMIT queries

Bug: 71024
Change-Id: I4dddc5c9c234b17040a28937987406511ec6ea9f

9 years agoMerge "Remove unused message"
Prtksxna [Fri, 19 Sep 2014 16:56:33 +0000 (16:56 +0000)]
Merge "Remove unused message"

9 years agoRe-apply Ic917c7d, don't cast SpecialPageFactory::$list to an object
aude [Fri, 19 Sep 2014 11:58:32 +0000 (13:58 +0200)]
Re-apply Ic917c7d, don't cast SpecialPageFactory::$list to an object

applied on top of Ia2107dc

Change-Id: I7420b9ec9df2ebd8e983fddfc7ee17655788cfde