lhc/web/wiklou.git
10 years agoMove toctoggle from mediawiki.util.js to separate file mediawiki.toc.js
Fomafix [Fri, 24 Jan 2014 08:36:20 +0000 (08:36 +0000)]
Move toctoggle from mediawiki.util.js to separate file mediawiki.toc.js

* New file mediawiki.toc.js without global function.
* Keep minimal function mediaWiki.util.toggleToc() for compatibility.
* Mark mediaWiki.util.toggleToc() as deprecated.
* Adapt mediawiki.util.test.js.
* Add new file mediawiki.toc.test.js.
* Solves bug 60030 and allow multiple toc.

Bug: 60030
Change-Id: I3ca2acb70db98d00e3f1bd2227091bd32d8e18a5

10 years agoFix testValidyntax to testValidSyntax
Reedy [Fri, 24 Jan 2014 06:29:11 +0000 (06:29 +0000)]
Fix testValidyntax to testValidSyntax

Change-Id: I6157fec56a5455888200752d757602ddb640fd1e

10 years agoMerge "AutoLoaderTest: Add support for class aliases"
jenkins-bot [Fri, 24 Jan 2014 02:15:40 +0000 (02:15 +0000)]
Merge "AutoLoaderTest: Add support for class aliases"

10 years agoMerge "Do not load special pages in WatchedItem::load"
jenkins-bot [Fri, 24 Jan 2014 02:01:28 +0000 (02:01 +0000)]
Merge "Do not load special pages in WatchedItem::load"

10 years agoMerge "Remove TODO for use of TRUNCATE and replace with comment"
jenkins-bot [Fri, 24 Jan 2014 02:00:29 +0000 (02:00 +0000)]
Merge "Remove TODO for use of TRUNCATE and replace with comment"

10 years agoMerge "ChangesListSpecialPage and subclasses: Reorder functions"
jenkins-bot [Fri, 24 Jan 2014 00:56:12 +0000 (00:56 +0000)]
Merge "ChangesListSpecialPage and subclasses: Reorder functions"

10 years agoMerge "Changes list legend modules cleanup"
jenkins-bot [Fri, 24 Jan 2014 00:55:23 +0000 (00:55 +0000)]
Merge "Changes list legend modules cleanup"

10 years agoMerge "Create ChangesListSpecialPage as a base class for Watchlist and RC"
jenkins-bot [Fri, 24 Jan 2014 00:51:07 +0000 (00:51 +0000)]
Merge "Create ChangesListSpecialPage as a base class for Watchlist and RC"

10 years agoMerge "Don't pass $this by reference to SkinVectorStyleModules hook."
jenkins-bot [Thu, 23 Jan 2014 23:44:28 +0000 (23:44 +0000)]
Merge "Don't pass $this by reference to SkinVectorStyleModules hook."

10 years agoMerge "Replace a bunch of extension_loaded() checks with checkPHPExtension()"
jenkins-bot [Thu, 23 Jan 2014 23:43:42 +0000 (23:43 +0000)]
Merge "Replace a bunch of extension_loaded() checks with checkPHPExtension()"

10 years agoMerge "Begin abstracting more of the database-specific search backend out"
jenkins-bot [Thu, 23 Jan 2014 23:39:34 +0000 (23:39 +0000)]
Merge "Begin abstracting more of the database-specific search backend out"

10 years agoDon't pass $this by reference to SkinVectorStyleModules hook.
Alexandre Emsenhuber [Sun, 15 Dec 2013 13:58:20 +0000 (14:58 +0100)]
Don't pass $this by reference to SkinVectorStyleModules hook.

Fix for Ica0b69ad95 (8b6ed4d0).

$this cannot be changed, so there is not any reason to pass
it by reference.

Change-Id: I916ccabbaff9f60edb344550111f62c833bb137b

10 years agoReplace a bunch of extension_loaded() checks with checkPHPExtension()
Platonides [Sat, 23 Nov 2013 19:20:23 +0000 (20:20 +0100)]
Replace a bunch of extension_loaded() checks with checkPHPExtension()

Change-Id: I7bd9bc3a753975f45e63532d4f07aeff853b9970

10 years agoAdd $context to the ArticleFromTitle hook
Brian Wolff [Wed, 11 Dec 2013 21:59:48 +0000 (14:59 -0700)]
Add $context to the ArticleFromTitle hook

Most of the time people wouldn't need this - this hook is mostly
used to inject a custom Article subclass for a specific
namespace to do fancy things, but lets give users the most
flexibility.

Asked for by leaves on irc.

Change-Id: I3386ff4abe0e5b3eb783604ae222b7703428db44

10 years agoFix git repository viewer URLs so they support more variants of the Wikimedia URLs
Simon Walker [Sun, 6 Oct 2013 03:18:40 +0000 (04:18 +0100)]
Fix git repository viewer URLs so they support more variants of the Wikimedia URLs

I've tested this against the URLs that are exposed within gitblit and gerrit, specifically:

* https://gerrit.wikimedia.org/r/p/mediawiki/extensions/AbuseFilter.git
* ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/AbuseFilter.git
* https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter
* ssh://stwalkerster@gerrit.wikimedia.org:29418/mediawiki/extensions/AbuseFilter
* https://stwalkerster@gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter

Change-Id: I36008eced60e32d554a5801bae155611f259f2d1

10 years agoCreate and move some functions for class ArrayUtils
Liangent [Thu, 18 Oct 2012 09:33:15 +0000 (09:33 +0000)]
Create and move some functions for class ArrayUtils

Change-Id: Id9ca20925f49e314918810fb54b3819ba9cf9c39

10 years agoFollow-up I49b7d8a - Add api module for common metadata
Brian Wolff [Mon, 12 Aug 2013 14:24:11 +0000 (11:24 -0300)]
Follow-up I49b7d8a - Add api module for common metadata

Change-Id: I0d957891e0778ba0454f6fecb06524211506f6b9

10 years agoCreate ApiBase::requireAtLeastOneParameter helper
Tyler Anthony Romeo [Tue, 21 May 2013 00:51:23 +0000 (00:51 +0000)]
Create ApiBase::requireAtLeastOneParameter helper

Added new ApiBase::requireAtLeastOneParameter() helper method for modules
that need one or more of a combination of parameters. The associated help
message function has also been added.

Change-Id: Iae6649ed503fdbf14b313d0be1a82f3dca8d7162

10 years agoAutoLoaderTest: Add support for class aliases
Kevin Israel [Thu, 23 Jan 2014 20:49:39 +0000 (15:49 -0500)]
AutoLoaderTest: Add support for class aliases

* Changed the regex to match class aliases, and added a check to
  also ensure that all aliases for a class are in the same file as
  the class (see cb77e59f7c99 for explanation).
* Removed support for the seemingly unmaintained Parsekit extension
  (no release since 2009, and known not to compile against PHP 5.4).
  The test would currently fail if Parsekit were used anyway because
  the class MyLocalSettingsGenerator is commented out.

Change-Id: I7be2352f4659abc7b4952a9f74a14d0cef911614

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Thu, 23 Jan 2014 20:27:41 +0000 (20:27 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoMerge "Add Status outparam for AbortNewAccount hook to fix API error handling"
jenkins-bot [Thu, 23 Jan 2014 20:27:00 +0000 (20:27 +0000)]
Merge "Add Status outparam for AbortNewAccount hook to fix API error handling"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 23 Jan 2014 20:05:14 +0000 (20:05 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I6034169b0cb9f50d581683b2b66854a733c552c7

10 years agoMerge "Split documentation for $wgRCLinkLimits/$wgRCLinkDays"
jenkins-bot [Thu, 23 Jan 2014 20:04:07 +0000 (20:04 +0000)]
Merge "Split documentation for $wgRCLinkLimits/$wgRCLinkDays"

10 years agoMerge "Remove `login-throttled` system message reuse"
jenkins-bot [Thu, 23 Jan 2014 19:13:03 +0000 (19:13 +0000)]
Merge "Remove `login-throttled` system message reuse"

10 years agoMerge "Remove the fade in image in favour of background gradient"
jenkins-bot [Thu, 23 Jan 2014 18:12:41 +0000 (18:12 +0000)]
Merge "Remove the fade in image in favour of background gradient"

10 years agoRemove the fade in image in favour of background gradient
jrobson [Wed, 22 Jan 2014 00:43:04 +0000 (16:43 -0800)]
Remove the fade in image in favour of background gradient

* Introduces vertical-gradient mixin (tried and tested
in MobileFrontend)
* Add additional LESS variables
* Just dont give versions with no vertical gradient support a fade
effect - it's not a big deal
* Save a single asset download

Change-Id: Ie36708f32edf0d83a0be843c115ad82d8014e4e1

10 years agoAdd Status outparam for AbortNewAccount hook to fix API error handling
Brion Vibber [Fri, 17 Jan 2014 20:26:41 +0000 (12:26 -0800)]
Add Status outparam for AbortNewAccount hook to fix API error handling

With this fix and relevant fix for ConfirmEdit in, an API account creation
attempt that fails the captcha check will return a much cleaner error such as:

{
  'error': {
    'code': 'captcha-createaccount-fail',
    'info': 'Incorrect or missing CAPTCHA.'
  }
}

Abort hooks that use the old interface and send a text message will now
be reported with the generic 'createaccount-hook-abort' message code, with the
string passed back intact.

Previously, the returned result would list the contents of the message
_as_ the error code, making it hard for a client to determine the error.

'AbortNewAccount' hook clients can add a '&$status=null' function paramater
on their signature, and along with the back-compat message parameter
you can set something like:

  $msg = wfMessage( 'captcha-createaccount-fail' )->text(); // back-compat
  $status = Status::newFatal( 'captcha-createaccount-fail' ); // new

This is done for ConfirmEdit in If9cc08e

Bug: 60008
Change-Id: I6ae34c00d1051d34363b6d654424be17dcb1ea30

10 years agoMerge "Installer: Remove two environmental checks"
jenkins-bot [Thu, 23 Jan 2014 18:01:05 +0000 (18:01 +0000)]
Merge "Installer: Remove two environmental checks"

10 years agoMerge "(Bug 60030) Use $content of the hook for toc hiding"
jenkins-bot [Thu, 23 Jan 2014 17:55:34 +0000 (17:55 +0000)]
Merge "(Bug 60030) Use $content of the hook for toc hiding"

10 years agoSplit documentation for $wgRCLinkLimits/$wgRCLinkDays
umherirrender [Sun, 19 Jan 2014 20:27:15 +0000 (21:27 +0100)]
Split documentation for $wgRCLinkLimits/$wgRCLinkDays

Each var should have it own doc block

Change-Id: Iec2b37687c009be9412103081ff5fc020c6dad03

10 years agoCorrect Title::getInterwiki method name case on call
Adrian Lang [Thu, 23 Jan 2014 09:21:57 +0000 (10:21 +0100)]
Correct Title::getInterwiki method name case on call

Change-Id: Iad9652b3d43ec1d80a8152c41f114acaa7ec3997

10 years agoMerge "Generate CSS for KSS through ResourceLoader"
jenkins-bot [Thu, 23 Jan 2014 06:56:54 +0000 (06:56 +0000)]
Merge "Generate CSS for KSS through ResourceLoader"

10 years agoInstaller: Remove two environmental checks
Kevin Israel [Wed, 22 Jan 2014 22:23:09 +0000 (17:23 -0500)]
Installer: Remove two environmental checks

* envCheckPHP531: Message is outdated ("downgrade to 5.3.0"; the
  current minimum PHP version is 5.3.2), and PHP Bug #50394 has
  not reappeared in any later version.
* envCheckZE1: zend.ze1_compatibility_mode was removed in 5.3.0.

Also updated the error message for envCheckBrokenXML to remove
the "Upgrade to PHP 5.2.9 or later" wording.

Change-Id: Ifc8754151dd23a0314c6739cb78c7ac61a306bc4

10 years agoRemove some deprecated global functions
Siebrand Mazeland [Sat, 11 Jan 2014 20:08:56 +0000 (21:08 +0100)]
Remove some deprecated global functions

Some uses remained in Gerrit extensions, and patches have been submitted
to replace the usages. See below for details.

* in_string (deprecated in 1.21)
* wfGenerateToken (deprecated in 1.20) (had 2 uses)
* wfStreamFile (deprecated in 1.19) (had 1 use)
* wfUILang (deprecated in 1.18)

Change-Id: Ic67a968da8f37daf44503b98d00710eb99180805

10 years agoGenerate CSS for KSS through ResourceLoader
Matthew Flaschen [Wed, 22 Jan 2014 04:27:42 +0000 (20:27 -0800)]
Generate CSS for KSS through ResourceLoader

This ensures the LESS is processed the same, so the behavior and output
exactly match.

Change-Id: I9bba8f2c328c9f9b9f7763cd335e280e973d03d6

10 years agoMerge "Re-remove experiment code for moduleStorage"
jenkins-bot [Thu, 23 Jan 2014 00:29:17 +0000 (00:29 +0000)]
Merge "Re-remove experiment code for moduleStorage"

10 years agoRe-remove experiment code for moduleStorage
Ori.livneh [Thu, 23 Jan 2014 00:25:02 +0000 (00:25 +0000)]
Re-remove experiment code for moduleStorage

The second iteration of the experiment is done, so this can once again be
removed. This patch reverts commit Ifa97d36d3.

Change-Id: If85b392d3e29de57316d32ba81c9b172bef758dd

10 years agoRemove deprecated ParserOptions::getSkin()
Siebrand Mazeland [Sat, 11 Jan 2014 09:11:38 +0000 (10:11 +0100)]
Remove deprecated ParserOptions::getSkin()

Has been deprecated since 1.18. One remaining use in a Gerrit extension
replaced.

Change-Id: I7eba24593368047ca48a5e1cb60378319c1e51b2

10 years agoMerge "Remove deprecated MediaWiki::articleFromTitle() and WikiPage::createUpdates()"
jenkins-bot [Wed, 22 Jan 2014 23:37:44 +0000 (23:37 +0000)]
Merge "Remove deprecated MediaWiki::articleFromTitle() and WikiPage::createUpdates()"

10 years agoMerge "Provide correct type as input for LoadMonitor::postConnectionBackoff()"
jenkins-bot [Wed, 22 Jan 2014 22:06:12 +0000 (22:06 +0000)]
Merge "Provide correct type as input for LoadMonitor::postConnectionBackoff()"

10 years agoMerge "Update/add documentation in the LoadBalancer class"
jenkins-bot [Wed, 22 Jan 2014 22:05:20 +0000 (22:05 +0000)]
Merge "Update/add documentation in the LoadBalancer class"

10 years agoMerge "Expand documentation around $wgAPI*Modules"
jenkins-bot [Wed, 22 Jan 2014 21:27:48 +0000 (21:27 +0000)]
Merge "Expand documentation around $wgAPI*Modules"

10 years agoRemove TODO for use of TRUNCATE and replace with comment
umherirrender [Wed, 22 Jan 2014 20:17:05 +0000 (21:17 +0100)]
Remove TODO for use of TRUNCATE and replace with comment

The new comment explain why truncate is not possible

Change-Id: I8dacff0784a07a0e20a4da0cc71043379ded6eb0

10 years agoRemove deprecated MediaWiki::articleFromTitle() and WikiPage::createUpdates()
Siebrand Mazeland [Sat, 11 Jan 2014 20:16:51 +0000 (21:16 +0100)]
Remove deprecated MediaWiki::articleFromTitle() and WikiPage::createUpdates()

No uses found in core or Gerrit extensions.

* MediaWiki::articleFromTitle() (deprecated in 1.18)
* WikiPage::createUpdates() (deprecated in 1.18)

Change-Id: I689249b579ee89f883b97fdb4ac79fb3502c45dc

10 years agoRemove FakeMemCachedClient
Siebrand Mazeland [Sat, 11 Jan 2014 19:49:38 +0000 (20:49 +0100)]
Remove FakeMemCachedClient

Was deprecated in 1.18. Not used in core or Gerrit extensions.

Change-Id: I06bc9c6f01f21386c772fa7fad57b55a7c7b2fe4

10 years agoShort circuit in notifyRCFeeds
Reedy [Wed, 22 Jan 2014 07:14:13 +0000 (07:14 +0000)]
Short circuit in notifyRCFeeds

Save instantiating classes unnecesserily

Add getEngine return type hint. Also make public

Change-Id: Ie2610516f99fe7b01742e7e95e13c4b1b90c77d7

10 years agoBegin abstracting more of the database-specific search backend out
Chad Horohoe [Sat, 18 Jan 2014 00:43:40 +0000 (16:43 -0800)]
Begin abstracting more of the database-specific search backend out

There's a lot in the base search implementations that is specific
to the database backed search. This starts moving some of that out
into a shared base class for those.

For starters, let's not grab a connection to the slave DB for
every single search for backends unless they need it.

Change-Id: Ib66696841eea901e04b21dd309784af889a45ab1

10 years agoMerge "Clean up whitespace in various javascript files"
jenkins-bot [Wed, 22 Jan 2014 00:39:15 +0000 (00:39 +0000)]
Merge "Clean up whitespace in various javascript files"

10 years agoClean up whitespace in various javascript files
Fomafix [Tue, 21 Jan 2014 20:49:07 +0000 (20:49 +0000)]
Clean up whitespace in various javascript files

Change-Id: I62fe370493b269618a0277ea06ed6ad22b97616a

10 years agoMerge "Move initial setting of $extNode out of the conditional"
jenkins-bot [Tue, 21 Jan 2014 22:49:38 +0000 (22:49 +0000)]
Merge "Move initial setting of $extNode out of the conditional"

10 years agoMove initial setting of $extNode out of the conditional
Reedy [Thu, 16 Jan 2014 02:04:32 +0000 (02:04 +0000)]
Move initial setting of $extNode out of the conditional

Change-Id: I3d13bfde15085d8c17ef41c6729bec2e9f8f84a2

10 years agoCheck for very old PCRE versions in installer and updater
Kevin Israel [Mon, 16 Dec 2013 16:02:51 +0000 (11:02 -0500)]
Check for very old PCRE versions in installer and updater

RE_IPV6_ADD uses (?(-n)) ("relative reference condition"), and CSSMin uses
\K ("reset start of match"), which only work in PCRE 7.2 and later -- newer
versions than the PCRE 6.6 included with Red Hat Enterprise Linux 5 and its
derivatives (e.g. CentOS 5).

Because the WMF developers, in general, do not seem to support maintaining
compatibility with such old software versions, I have opted to add a check
to the MediaWiki installer for these versions of PCRE. Affected users are
directed to a MediaWiki.org page advising the use of a different PHP package
that uses the bundled PCRE version instead of the older system version.

For now, the minimum PCRE version is set to 7.2, the oldest version not
known to break MediaWiki core. Once PHP 5.3 support is dropped, we may be
able to require PCRE 8.12 (bundled with PHP 5.4.0) or later.

The existing check for mere existence of the PCRE functions is removed;
since PHP 5.3, it is impossible to compile PHP without PCRE support.

Bug: 58213
Change-Id: Icf3732b6f84eeb25990178ae8fe3bd0fe4cc833f

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 21 Jan 2014 19:45:39 +0000 (19:45 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I2bf221ca2d246108335c61947a464d23961a6551

10 years agoMerge "Removed RdfMetaData"
jenkins-bot [Tue, 21 Jan 2014 17:02:18 +0000 (17:02 +0000)]
Merge "Removed RdfMetaData"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 20 Jan 2014 20:17:10 +0000 (20:17 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I36b88d4b387ed2313b2160a6ba9fc6be056ded96

10 years agoRemove `login-throttled` system message reuse
Douglas Gardner [Mon, 20 Jan 2014 05:55:06 +0000 (05:55 +0000)]
Remove `login-throttled` system message reuse

Replaced calls to the `login-throttled` system message to new, separate system
messages for [[Special:ChangeEmail]] and [[Special:ChangePassword]] in order to
minimise message reuse.

* [[Special:ChangeEmail]] now uses `changeemail-throttled` instead of
  `login-throttled`.
* [[Special:ChangePassword]] now uses `changepassword-throttled` instead of
  `login-throttled`.

Follow-up to I565971a90fc383327a51d717a80013cb7a3e9c9b.

Bug: 53655
Change-Id: Icc7ad829b381514627dca16cde62ccf0831967b6

10 years agoMerge "Allow extensions to set a custom error message in the BlockIp hook"
jenkins-bot [Mon, 20 Jan 2014 15:22:03 +0000 (15:22 +0000)]
Merge "Allow extensions to set a custom error message in the BlockIp hook"

10 years agoAllow extensions to set a custom error message in the BlockIp hook
Kunal Mehta [Sat, 18 Jan 2014 21:31:47 +0000 (13:31 -0800)]
Allow extensions to set a custom error message in the BlockIp hook

Change-Id: I2e3773e22c78370e6ca1de49e7b0976b68d8d76b

10 years agoRemove outdated comment from Preferences.php
umherirrender [Sun, 19 Jan 2014 20:41:33 +0000 (21:41 +0100)]
Remove outdated comment from Preferences.php

There is a cleanupPreferences.php script

Change-Id: I29c55b3ba5d296a06e3c26e98b28779cb3959282

10 years agoExpand documentation around $wgAPI*Modules
umherirrender [Sun, 19 Jan 2014 20:19:21 +0000 (21:19 +0100)]
Expand documentation around $wgAPI*Modules

Change-Id: I095fa03596c05d292faf1e6c1dce808deeee1a66

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 19 Jan 2014 20:07:30 +0000 (20:07 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I1bc4622fa5c9c489fddd386c95fb9dbe05df7ce5

10 years agoRemove outdated fixme/todo in CoreParserFunctions.php
umherirrender [Sun, 19 Jan 2014 10:13:44 +0000 (11:13 +0100)]
Remove outdated fixme/todo in CoreParserFunctions.php

Title::getLength is not used and documentation of parameter is there

Change-Id: I50679ff19695a3afedd556e242f27e4172a9774a

10 years agoMake 2 messages optional for translation
raymond [Sat, 18 Jan 2014 22:03:47 +0000 (23:03 +0100)]
Make 2 messages optional for translation

Spotted by Joseph
https://translatewiki.net/wiki/Thread:Support/Optional_messages_(10)

Change-Id: Iaf9e42ed21edffd2d36f4ba09a5316f369b4812c

10 years agoMerge "Add $wgHideUserContribLimit config setting"
jenkins-bot [Sat, 18 Jan 2014 21:44:26 +0000 (21:44 +0000)]
Merge "Add $wgHideUserContribLimit config setting"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 18 Jan 2014 21:11:17 +0000 (21:11 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I8b17b1f8ea175c4f1cf75bece53b79eba39bb509

10 years agoAdd $wgHideUserContribLimit config setting
umherirrender [Tue, 17 Dec 2013 18:56:33 +0000 (19:56 +0100)]
Add $wgHideUserContribLimit config setting

Replace const in Special:Block by a config setting in
DefaultSettings.php
Setting to false will disable the limit (instead of setting to a
very high number).

The value is unchanged, but now it is possible to change it in
LocalSettings.php
Also add the value to the message to give better feedback to the
performer of the action.

Change-Id: I3fd39c1c9dfa65a24a3451800dc623b40162aeb5

10 years agoMerge "Improved vague/incomplete $1 thumb.php error messages"
jenkins-bot [Sat, 18 Jan 2014 02:58:00 +0000 (02:58 +0000)]
Merge "Improved vague/incomplete $1 thumb.php error messages"

10 years agoImproved vague/incomplete $1 thumb.php error messages
Aaron Schulz [Wed, 8 Jan 2014 09:38:42 +0000 (01:38 -0800)]
Improved vague/incomplete $1 thumb.php error messages

Change-Id: I64d05e25f82242e92abbcbf20252fc17d5790d8b

10 years agoAlso show a warning on page deletion if a page is transcluded
Sorawee Porncharoenwase [Sat, 18 Jan 2014 01:09:09 +0000 (08:09 +0700)]
Also show a warning on page deletion if a page is transcluded

[[gerrit:65162]] warns on page deletion if a page which is about to delete
has at least one link to it. This patch improves the previous patch to
warn if at least one page transcludes the deleting page.

Change-Id: If8cb4956297f5d0b040e378f07fcbc43728d687c

10 years agoMerge "Add hooks in API action=createaccount for Captcha"
jenkins-bot [Sat, 18 Jan 2014 00:48:01 +0000 (00:48 +0000)]
Merge "Add hooks in API action=createaccount for Captcha"

10 years agoRemoved RdfMetaData
Aaron Schulz [Sat, 18 Jan 2014 00:20:53 +0000 (16:20 -0800)]
Removed RdfMetaData

* Unused by core or extensions

Change-Id: I3454d605a741bc97a51a1ad471a17eb3053d662f

10 years agoMerge "Expand load.php's "no modules requested" output to be friendlier"
jenkins-bot [Sat, 18 Jan 2014 00:15:35 +0000 (00:15 +0000)]
Merge "Expand load.php's "no modules requested" output to be friendlier"

10 years agoExpand load.php's "no modules requested" output to be friendlier
MZMcBride [Fri, 17 Jan 2014 07:43:31 +0000 (02:43 -0500)]
Expand load.php's "no modules requested" output to be friendlier

Change-Id: I9300ec4d86a364034a70ce4204a0d9c1ac44b60f

10 years agoRemoved expiremental LSLockManager class
Aaron Schulz [Fri, 17 Jan 2014 23:15:57 +0000 (15:15 -0800)]
Removed expiremental LSLockManager class

* This is pretty much obsoleted by RedisLockManager

Change-Id: I0feff44b5833072c8eb5a598169e1bb271d49de2

10 years agoMerge "Improve API query RevDel handling"
jenkins-bot [Fri, 17 Jan 2014 22:58:45 +0000 (22:58 +0000)]
Merge "Improve API query RevDel handling"

10 years agoMerge "Remove deprecated $wgBetterDirectionality"
jenkins-bot [Fri, 17 Jan 2014 20:47:17 +0000 (20:47 +0000)]
Merge "Remove deprecated $wgBetterDirectionality"

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Fri, 17 Jan 2014 20:43:42 +0000 (20:43 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoAdd hooks in API action=createaccount for Captcha
Brion Vibber [Fri, 10 Jan 2014 23:16:40 +0000 (15:16 -0800)]
Add hooks in API action=createaccount for Captcha

New hooks:
* AddNewAccountApiForm
* AddNewAccountApiResult

These hooks are used in ConfirmEdit here: Id628def

Sample API client: https://github.com/brion/api-createaccount

Bug: 46072

Change-Id: If5b7dab80ac85dbfa0f7a54a445356783df5e914

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 17 Jan 2014 20:40:24 +0000 (20:40 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib0c5b0c2b4d450e2ed7ec2b2a4de418bdf6fa36d

10 years agoMerge "Remove methods in Block deprecated in 1.18"
jenkins-bot [Fri, 17 Jan 2014 20:40:06 +0000 (20:40 +0000)]
Merge "Remove methods in Block deprecated in 1.18"

10 years agoMerge "Remove methods in Article deprecated in 1.18"
jenkins-bot [Fri, 17 Jan 2014 19:42:37 +0000 (19:42 +0000)]
Merge "Remove methods in Article deprecated in 1.18"

10 years agoMerge "Allow SearchResults to specify that they matched file content"
jenkins-bot [Fri, 17 Jan 2014 19:33:24 +0000 (19:33 +0000)]
Merge "Allow SearchResults to specify that they matched file content"

10 years agoImprove API query RevDel handling
Brad Jorsch [Wed, 18 Dec 2013 21:58:39 +0000 (16:58 -0500)]
Improve API query RevDel handling

* ApiQueryDeletedrevs, ApiQueryFilearchive, ApiQueryRecentChanges, and
  ApiQueryWatchlist will now return entires where fields have been
  revision-deleted. "Hidden" indicators will be provided as appropriate.
* ApiQueryImageInfo, ApiQueryLogEvents, ApiQueryRevisions,
  ApiQueryContributions will now return field values in addition to the
  "hidden" indicators when the requesting user has the necessary rights.
* Modules that return "hidden" indicators will now also return a
  "suppressed" indicator.
* ApiQueryImageInfo will now return info for DELETED_FILE file revisions
  if the requesting user has the 'deletedtext' right.
* ApiQueryLogEvents, when searching by user or title, will now return
  entries where the user or action are revision-deleted if the
  requesting user has the 'deletedhistory' right.
* ApiQueryContributions now uses the correct user rights rather than
  'hideuser' to determine when to show contributions where the username
  was revision-deleted.
* ApiQueryContributions will now indicate when the revision text is
  hidden.
* Fix a bug in ApiQueryDeletedrevs found during testing where specifying
  the "content" prop along with the "tags" prop or "drtag" parameter
  would cause an SQL error.
* Fix various PHP warnings in ApiQueryFilearchive caused by the lack of
  ArchivedFile::selectFields() fields.
* ApiQueryImageInfo::getInfo's $metadataOpts parameter has been renamed
  $opts, and now may have an option to indicate the user to use for
  RevDel visibility checks.
* ApiQueryWatchlist now properly uses the actual user's rights for
  checking whether wlprop=patrol is allowed, rather than using the
  wlowner's rights.

Bug: 27747
Bug: 27748
Bug: 28261
Bug: 34926
Bug: 48966
Change-Id: Idec2199976f460e1c73a26d0717e9fc4ab8042bb

10 years agoExtend FileRepo::findFile private option to accept a User object
Brad Jorsch [Fri, 17 Jan 2014 16:42:45 +0000 (11:42 -0500)]
Extend FileRepo::findFile private option to accept a User object

Callers may want to test visibility for a user other than $wgUser when
specifying the 'private' option. It seems a natural extension to allow
'private' to be a User object, with boolean true retaining its old
meaning of $wgUser.

Change-Id: Idbed0f3055c0135b5c11068de1bf1ef668e13456

10 years agoFix LocalRepo::findFiles and 'time' option
Brad Jorsch [Fri, 17 Jan 2014 16:42:01 +0000 (11:42 -0500)]
Fix LocalRepo::findFiles and 'time' option

It's looking in the wrong place for the 'time' option so it never
actually queries for the old revisions.

Change-Id: Ifcb626fb27f8b602ff37cf33d4c66c4fc2fd3d56

10 years agoAllow SearchResults to specify that they matched file content
Chad Horohoe [Fri, 3 Jan 2014 19:00:22 +0000 (11:00 -0800)]
Allow SearchResults to specify that they matched file content

Change-Id: I214406250d10b971dcca025da508272d9805567b

10 years agoMerge "Remove deprecated Article::forUpdate()"
jenkins-bot [Fri, 17 Jan 2014 12:46:01 +0000 (12:46 +0000)]
Merge "Remove deprecated Article::forUpdate()"

10 years agoMerge "assertValidHtml for checking html in test cases."
jenkins-bot [Fri, 17 Jan 2014 11:55:50 +0000 (11:55 +0000)]
Merge "assertValidHtml for checking html in test cases."

10 years agoassertValidHtml for checking html in test cases.
daniel [Tue, 3 Dec 2013 17:42:48 +0000 (18:42 +0100)]
assertValidHtml for checking html in test cases.

implemented using tidy.

Change-Id: Idb98af785ca07ecd7afeebadf7396ecdc03a91bc

10 years agoPut ActiveUsers behind the miser mode flag
Aaron Schulz [Fri, 17 Jan 2014 00:07:09 +0000 (16:07 -0800)]
Put ActiveUsers behind the miser mode flag

This is the second most problematic query showing up in dberror.log (timeouts).
Something like this needs denormalization for larger wikis.

Change-Id: If786dea8a6195d11c812d46a583d272c7aa70fe7

10 years agoWorkaround ip2long limitation
Aaron Schulz [Wed, 15 Jan 2014 03:58:03 +0000 (19:58 -0800)]
Workaround ip2long limitation

* This was resulting in bogus queries that did ipblock table scans

bug: 60035
Change-Id: Id8f8846e002abcc0010c8706c664db86257786bf

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 16 Jan 2014 22:59:11 +0000 (22:59 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ibc3cffd4793d8201841e2ba0c92e6b3b7abe4412

10 years agoMerge "Avoid expensive backlink counts for info action in miser mode"
jenkins-bot [Thu, 16 Jan 2014 21:06:52 +0000 (21:06 +0000)]
Merge "Avoid expensive backlink counts for info action in miser mode"

10 years agoMerge "Removed ZhClient; unused by core and extensions"
jenkins-bot [Thu, 16 Jan 2014 20:42:55 +0000 (20:42 +0000)]
Merge "Removed ZhClient; unused by core and extensions"

10 years agoAvoid expensive backlink counts for info action in miser mode
Aaron Schulz [Thu, 16 Jan 2014 20:39:33 +0000 (12:39 -0800)]
Avoid expensive backlink counts for info action in miser mode

Change-Id: I13b64db1b23afd995cd0a2f5872fcedadd86c8ea

10 years agoRemoved ZhClient; unused by core and extensions
Aaron Schulz [Thu, 16 Jan 2014 20:25:41 +0000 (12:25 -0800)]
Removed ZhClient; unused by core and extensions

Change-Id: Ieda34368b8e1c4a09dc244f47f7e09d943849b1e

10 years agoMoved SpecialPageFactory to specialpage/
Aaron Schulz [Thu, 16 Jan 2014 20:11:45 +0000 (12:11 -0800)]
Moved SpecialPageFactory to specialpage/

Change-Id: Iaef958ea7831ec61e76002362672d5340e596348

10 years agoMerge "Remove DBABagOStuff"
jenkins-bot [Thu, 16 Jan 2014 19:51:47 +0000 (19:51 +0000)]
Merge "Remove DBABagOStuff"

10 years agoRemove DBABagOStuff
Chad Horohoe [Thu, 16 Jan 2014 19:32:33 +0000 (11:32 -0800)]
Remove DBABagOStuff

Isn't useful outside of testing as the comments state, but it's
barely even useful for that. People who are testing the cache
code can use CACHE_DB if CACHE_MEMCACHED is too hard.

Change-Id: Ief0aa148376957fdd844c8bb585a133b854a012c

10 years agoMerge "Ehcache more like mehcache"
jenkins-bot [Thu, 16 Jan 2014 19:43:11 +0000 (19:43 +0000)]
Merge "Ehcache more like mehcache"