lhc/web/wiklou.git
10 years agoCreated DatabaseBase::trxTimestamp method and added usage in ActiveUsers query
Aaron Schulz [Tue, 23 Sep 2014 22:38:44 +0000 (15:38 -0700)]
Created DatabaseBase::trxTimestamp method and added usage in ActiveUsers query

Change-Id: Iba3c83ce8010583908f9dbaa8348f7226f524793

10 years agoMerge "Made JobQueueDB::doWaitForBackups wait for the right slaves"
jenkins-bot [Wed, 24 Sep 2014 20:15:59 +0000 (20:15 +0000)]
Merge "Made JobQueueDB::doWaitForBackups wait for the right slaves"

10 years agoMade JobQueueDB::doWaitForBackups wait for the right slaves
Aaron Schulz [Wed, 24 Sep 2014 20:07:34 +0000 (13:07 -0700)]
Made JobQueueDB::doWaitForBackups wait for the right slaves

Change-Id: I6022fea7add5c317da89d5361d166a047bcc95e4

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

Change-Id: I66241c255b5cf101a32f239df9b4276ca3c37946

10 years agoMerge "Fix function case: WebRequest::getIntorNull -> getIntOrNull"
jenkins-bot [Wed, 24 Sep 2014 19:24:39 +0000 (19:24 +0000)]
Merge "Fix function case: WebRequest::getIntorNull -> getIntOrNull"

10 years agoSECURITY: Enhance CSS filtering in SVG files
csteipp [Thu, 4 Sep 2014 23:05:47 +0000 (16:05 -0700)]
SECURITY: Enhance CSS filtering in SVG files

* Filter <style> elements
* Normalize style elements and attributes before filtering
* Add checks for attributes that contain css
* Add unit tests for html5sec and reported bugs

Bug:69008
Change-Id: I732eece710f1bfaaeea1e5de541fcd4cfb375de7

10 years agoFix function case: WebRequest::getIntorNull -> getIntOrNull
umherirrender [Wed, 24 Sep 2014 18:49:08 +0000 (20:49 +0200)]
Fix function case: WebRequest::getIntorNull -> getIntOrNull

Change-Id: I3cdbb17ae00b9565f522a80e1455edf375043763

10 years agoHtmlForm: Add @since annotation for methods added to UI standardization
Prateek Saxena [Wed, 24 Sep 2014 18:09:16 +0000 (11:09 -0700)]
HtmlForm: Add @since annotation for methods added to UI standardization

Change-Id: I74f58df9de79d2ad055eaf9760763005996dc0a0

10 years agoMerge "HtmlForm: Use mw-ui-checkbox only if wgUseMediaWikiUIEverywhere is enabled"
jenkins-bot [Wed, 24 Sep 2014 18:15:21 +0000 (18:15 +0000)]
Merge "HtmlForm: Use mw-ui-checkbox only if wgUseMediaWikiUIEverywhere is enabled"

10 years agoMerge "Remove unused system messages "loginstart", "loginend" and "loginend-https""
jenkins-bot [Wed, 24 Sep 2014 17:29:54 +0000 (17:29 +0000)]
Merge "Remove unused system messages "loginstart", "loginend" and "loginend-https""

10 years agoMerge "Per 5a4a33a, remove support for magic quotes gpc"
jenkins-bot [Wed, 24 Sep 2014 17:26:56 +0000 (17:26 +0000)]
Merge "Per 5a4a33a, remove support for magic quotes gpc"

10 years ago$wgTitle is not needed for running parser tests
Chad Horohoe [Wed, 24 Sep 2014 16:56:43 +0000 (09:56 -0700)]
$wgTitle is not needed for running parser tests

Change-Id: Iaf14b1bc15763207a30cf624d5876120b0d5ce01

10 years agoAdd a process cache for fetchLanguageNames
Tim Starling [Tue, 23 Sep 2014 05:27:13 +0000 (15:27 +1000)]
Add a process cache for fetchLanguageNames

Since it is slow and is called many times when articles with lots of
interlanguage links are viewed.

Change-Id: Ib826ea6f1c105ffd43e456fb1c0c3b8aa6d8e391

10 years agoProfiling for Language::fetchLanguageNames
Tim Starling [Tue, 23 Sep 2014 03:54:34 +0000 (13:54 +1000)]
Profiling for Language::fetchLanguageNames

It is 16% of an enwiki Main Page parser cache hit, under HHVM.

Change-Id: Ifb2ce7592fa5b5cb9c7fb5af5949c43fecf18ca3

10 years agoMerge "Split SkinTemplate.php per-class"
jenkins-bot [Wed, 24 Sep 2014 15:59:08 +0000 (15:59 +0000)]
Merge "Split SkinTemplate.php per-class"

10 years agoMerge "Fix API-related 1.25 release notes"
jenkins-bot [Wed, 24 Sep 2014 15:56:42 +0000 (15:56 +0000)]
Merge "Fix API-related 1.25 release notes"

10 years agoFix API-related 1.25 release notes
Brad Jorsch [Wed, 24 Sep 2014 15:47:23 +0000 (11:47 -0400)]
Fix API-related 1.25 release notes

Use the section headers from 1.24, and move an entry that was placed in
the wrong section in Iff8d444c.

Change-Id: I460551491f23352f08e64aa3f216e2e5f39b5a6f

10 years agoAPI: ApiBase::PROP_* constants are deprecated
Brad Jorsch [Wed, 24 Sep 2014 15:42:22 +0000 (11:42 -0400)]
API: ApiBase::PROP_* constants are deprecated

They should have been marked so along with Ie11a401d.

Change-Id: I029f81dabf89c1765fc514579f44a6a0c940b572

10 years agoMerge "Add cURL constants test"
jenkins-bot [Wed, 24 Sep 2014 15:35:33 +0000 (15:35 +0000)]
Merge "Add cURL constants test"

10 years agoMerge "Add API output skin"
jenkins-bot [Wed, 24 Sep 2014 15:20:41 +0000 (15:20 +0000)]
Merge "Add API output skin"

10 years agoAdd API output skin
Brad Jorsch [Tue, 16 Sep 2014 17:47:34 +0000 (13:47 -0400)]
Add API output skin

The API output for help and 'fm' formats will soon have need of
including ResourceLoader modules on an otherwise-bare page. The easiest
way to do this is to use OutputPage, but that requires a skin. So let's
add a skin that outputs a basic page without any navigation elements or
other chrome (that may be added later, but that can wait for Design to
decide they want to design it).

Change-Id: Ifa95fae5acaa3cfbf2ca58a15f8d0c51d84b455a

10 years agoMerge "Fixes to prevent duplicate rows in ActiveUser cache"
jenkins-bot [Wed, 24 Sep 2014 14:49:38 +0000 (14:49 +0000)]
Merge "Fixes to prevent duplicate rows in ActiveUser cache"

10 years agoSplit SkinTemplate.php per-class
Bartosz Dziewoński [Wed, 24 Sep 2014 09:54:26 +0000 (11:54 +0200)]
Split SkinTemplate.php per-class

Change-Id: Id964cdc3bd362d696628d62cd34615aa1fa6b014

10 years agoHtmlForm: Use mw-ui-checkbox only if wgUseMediaWikiUIEverywhere is enabled
Prateek Saxena [Tue, 23 Sep 2014 23:34:53 +0000 (16:34 -0700)]
HtmlForm: Use mw-ui-checkbox only if wgUseMediaWikiUIEverywhere is enabled

Change-Id: I5d8f1bbcea72253d71df8c9e13253ff5612be363

10 years agoMerge "MediaWikiTestCase: Centralise insertPage() logic from SearchEngineTest"
jenkins-bot [Wed, 24 Sep 2014 01:26:57 +0000 (01:26 +0000)]
Merge "MediaWikiTestCase: Centralise insertPage() logic from SearchEngineTest"

10 years agoMerge "Randomize the JobRunner slave lags checks a bit"
jenkins-bot [Wed, 24 Sep 2014 01:20:34 +0000 (01:20 +0000)]
Merge "Randomize the JobRunner slave lags checks a bit"

10 years agoRandomize the JobRunner slave lags checks a bit
Aaron Schulz [Fri, 19 Sep 2014 20:28:05 +0000 (13:28 -0700)]
Randomize the JobRunner slave lags checks a bit

Change-Id: Iee777426776c12051761d29c90da80cea27619b1

10 years agoSlave lag check tweaks to JobRunner
Aaron Schulz [Sat, 20 Sep 2014 20:53:16 +0000 (13:53 -0700)]
Slave lag check tweaks to JobRunner

* Do not block forever, but wait up to 10 seconds. Likewise,
  check the lag times in memcached on startup. This at least
  lets runners avoid lagged wikis but still work on others.
* Made a few small related documentation and code cleanups.

Change-Id: Ic1339bab54cba6b6cbea7d97a80ff87c7c5c87af

10 years agoMerge "Special:BookSources: Use getConfig instead of Global"
jenkins-bot [Wed, 24 Sep 2014 00:39:48 +0000 (00:39 +0000)]
Merge "Special:BookSources: Use getConfig instead of Global"

10 years agoMerge "Fixed bug in BloomCacheRedis::getConnection"
jenkins-bot [Wed, 24 Sep 2014 00:33:02 +0000 (00:33 +0000)]
Merge "Fixed bug in BloomCacheRedis::getConnection"

10 years agoSpecial:BookSources: Use getConfig instead of Global
Prateek Saxena [Wed, 24 Sep 2014 00:29:33 +0000 (17:29 -0700)]
Special:BookSources: Use getConfig instead of Global

follow up to I00c4a00d4a2aeb7f6b39ede6fca1725991b68d7c

Change-Id: Ice8ec212e5a5fbb0e34ad02f4fffdcc4ce1424fc

10 years agoFixed bug in BloomCacheRedis::getConnection
Aaron Schulz [Wed, 24 Sep 2014 00:26:00 +0000 (17:26 -0700)]
Fixed bug in BloomCacheRedis::getConnection

* The array keys need to be re-indexed to avoid picking a deleted one

Change-Id: I3c22674a0194597598d66179bb5e3625da1dd38c

10 years agoMerge "Special:BookSources Add global"
jenkins-bot [Wed, 24 Sep 2014 00:10:09 +0000 (00:10 +0000)]
Merge "Special:BookSources Add global"

10 years agoSpecial:BookSources Add global
Prateek Saxena [Tue, 23 Sep 2014 23:53:44 +0000 (16:53 -0700)]
Special:BookSources Add global

Follow up to I00c4a00d4a2aeb7f6b39ede6fca1725991b68d7c

Change-Id: I7d09d6b648ccd710c4e3147c0c2b33d6ecaca15a

10 years agoMerge "Tweak checkbox sizes to be relative depending on where used."
jenkins-bot [Tue, 23 Sep 2014 23:40:29 +0000 (23:40 +0000)]
Merge "Tweak checkbox sizes to be relative depending on where used."

10 years agoMerge "Special:BlockList: Use mw-ui-progressive for search button"
jenkins-bot [Tue, 23 Sep 2014 23:34:28 +0000 (23:34 +0000)]
Merge "Special:BlockList: Use mw-ui-progressive for search button"

10 years agoTweak checkbox sizes to be relative depending on where used.
jdlrobson [Thu, 14 Aug 2014 20:01:00 +0000 (13:01 -0700)]
Tweak checkbox sizes to be relative depending on where used.

Use ems rather than pixels.
Add margins

Bug: 70133
Change-Id: Ia6adc4bda000508f14acf4214e778118efa35be0

10 years agoMerge "Special:EditWatchlist: Use destructive button and style checkboxes"
jenkins-bot [Tue, 23 Sep 2014 23:32:00 +0000 (23:32 +0000)]
Merge "Special:EditWatchlist: Use destructive button and style checkboxes"

10 years agoMerge "Special:BookSources: Use appropriate mediawiki.ui classes and update strings"
jenkins-bot [Tue, 23 Sep 2014 23:18:27 +0000 (23:18 +0000)]
Merge "Special:BookSources: Use appropriate mediawiki.ui classes and update strings"

10 years agoMerge "Make "/*@noflip*/ /*@embed*/" annotation work without CSSJanus hacks"
jenkins-bot [Tue, 23 Sep 2014 22:57:18 +0000 (22:57 +0000)]
Merge "Make "/*@noflip*/ /*@embed*/" annotation work without CSSJanus hacks"

10 years agoMerge "Move non-user specific things from Title::isValidMoveOperation() to MovePage"
jenkins-bot [Tue, 23 Sep 2014 22:48:44 +0000 (22:48 +0000)]
Merge "Move non-user specific things from Title::isValidMoveOperation() to MovePage"

10 years agoMake "/*@noflip*/ /*@embed*/" annotation work without CSSJanus hacks
Bartosz Dziewoński [Sat, 20 Sep 2014 21:26:13 +0000 (23:26 +0200)]
Make "/*@noflip*/ /*@embed*/" annotation work without CSSJanus hacks

This reverts most of commit 2d842f14250646475b5c2ffa2fe4f5a131f94236,
leaving only the test added in it, and reimplements the same
functionality better.

Instead of stripping /*@noflip*/ annotations in CSSJanus, which is
incompatible with other implementations that preserve it, extend
CSSMin to allow other CSS comments to be present before the
rule-global @embed annotation. (This required making the regex logic
in it even worse than it was, but it's actually slightly less terrible
than I expected it would be. Good thing we have tests!)

Bug: 69698
Change-Id: I58603ef64f7d7cdc6461b34721a4d6b15f15ad79

10 years agoUpdate OOjs UI to v0.1.0-pre (880100c45e)
James D. Forrester [Tue, 23 Sep 2014 22:28:49 +0000 (15:28 -0700)]
Update OOjs UI to v0.1.0-pre (880100c45e)

New changes:
e43584b Re-clip popups after resizing them

Change-Id: Ic4fa16be8e7bb0af9b05c9ad46ddbb45880b9ccc

10 years agoSpecial:BlockList: Use mw-ui-progressive for search button
Prateek Saxena [Tue, 23 Sep 2014 22:24:51 +0000 (15:24 -0700)]
Special:BlockList: Use mw-ui-progressive for search button

Bug: 71144
Change-Id: I56969edb6651a26ff2579e1ed9f9da34a9536e46

10 years agoFixes to prevent duplicate rows in ActiveUser cache
Aaron Schulz [Tue, 23 Sep 2014 16:45:04 +0000 (09:45 -0700)]
Fixes to prevent duplicate rows in ActiveUser cache

* Handle repeatable-read snapshots better for web requests
* In CLI mode, handle automatic reconnects better (rolling
  back). It has to abort since it lost the lock in that case.

bug: 71086
Change-Id: I5228889cf05857c87a06f7d073b5aa46f0c240be

10 years agoSpecial:EditWatchlist: Use destructive button and style checkboxes
Prateek Saxena [Tue, 23 Sep 2014 21:53:12 +0000 (14:53 -0700)]
Special:EditWatchlist: Use destructive button and style checkboxes

Bug: 71147
Change-Id: Icddec7a3b66ba1cc86459c2776a471391e92c8c7

10 years agoMerge "Add tests for Job::toString"
jenkins-bot [Tue, 23 Sep 2014 21:42:30 +0000 (21:42 +0000)]
Merge "Add tests for Job::toString"

10 years agoResourceLoaderWikiModule: Only check content format instead of namespace
Kunal Mehta [Mon, 15 Sep 2014 05:01:21 +0000 (22:01 -0700)]
ResourceLoaderWikiModule: Only check content format instead of namespace

Follows up I64e86c741.

Bug: 70835
Change-Id: Ieb9e5d045ed9b59cc83749234a9157689244c597

10 years agoSpecial:BookSources: Use appropriate mediawiki.ui classes and update strings
Prateek Saxena [Mon, 22 Sep 2014 22:00:06 +0000 (15:00 -0700)]
Special:BookSources: Use appropriate mediawiki.ui classes and update strings

Bug: 71145
Change-Id: I00c4a00d4a2aeb7f6b39ede6fca1725991b68d7c

10 years agoMerge "Restore Composer hook providing MediaWiki version"
jenkins-bot [Tue, 23 Sep 2014 21:27:35 +0000 (21:27 +0000)]
Merge "Restore Composer hook providing MediaWiki version"

10 years agoMessage: Correct output of wfMessage( 'non-existent-msg' )->text()
Erik Bernhardson [Wed, 4 Jun 2014 21:06:03 +0000 (14:06 -0700)]
Message: Correct output of wfMessage( 'non-existent-msg' )->text()

The output of Message::text() should always be acceptable to pass into
external html escaping, such as when the response is returned over an
API request and escaped by the client side code. Calling ->text() on a
non-existent key was returning the entity encoded value which leads to
double encoding down the line, this patch fixes that oversight.

Bug: 66199
Change-Id: Ieec94d4e4c7e5c36e5e68bbf01792e96368e54e0

10 years agoAdd tests for Job::toString
addshore [Tue, 23 Sep 2014 20:52:39 +0000 (21:52 +0100)]
Add tests for Job::toString

Change-Id: I00f41808af42a198a1e45a93201dd7bb3e4d9c2c

10 years agoMerge "Update OOjs UI to v0.1.0-pre (4ea8e2cba9)"
jenkins-bot [Tue, 23 Sep 2014 20:54:19 +0000 (20:54 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (4ea8e2cba9)"

10 years agoMerge "mediawiki.api: Support assert parameter in getToken and postWithToken"
jenkins-bot [Tue, 23 Sep 2014 20:52:53 +0000 (20:52 +0000)]
Merge "mediawiki.api: Support assert parameter in getToken and postWithToken"

10 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

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

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

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

10 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

10 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

10 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

10 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

10 years agoRestore Composer hook providing MediaWiki version
Bryan Davis [Tue, 23 Sep 2014 19:31:30 +0000 (13:31 -0600)]
Restore Composer hook providing MediaWiki version

Restores the Composer hook integration first implemented in
I8df66a92971146ab79cd4fcbd181e559115ca240 to composer.json.

Change-Id: I708f619d2de8a760eaaeaf6be54d8ae0db1b18d6

10 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

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

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

10 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

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

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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

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

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

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

10 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

10 years agoPer 5a4a33a, remove support for magic quotes gpc
Chad Horohoe [Mon, 22 Sep 2014 22:01:11 +0000 (15:01 -0700)]
Per 5a4a33a, remove support for magic quotes gpc

Change-Id: I6110b843e6c6ef3431206d25b8fd72ed4f113ee8

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

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

10 years agoMediaWikiTestCase: Centralise insertPage() logic from SearchEngineTest
Timo Tijhof [Thu, 18 Sep 2014 00:02:24 +0000 (17:02 -0700)]
MediaWikiTestCase: Centralise insertPage() logic from SearchEngineTest

Make it re-usable for other tests and update SearchEngineTest to
use the addDBData (which is called automatically) instead of
manually keeping track of the state.

Change-Id: I75a6951545d9824e71e00f0f96936c53b400dce6

10 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

10 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

10 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

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

10 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

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

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

10 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

10 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

10 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

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

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

10 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

10 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

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

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