lhc/web/wiklou.git
10 years agoAvoid exceptions by first checking language code validity
Niklas Laxström [Tue, 11 Jun 2013 16:42:10 +0000 (16:42 +0000)]
Avoid exceptions by first checking language code validity

Bug: 49423
Change-Id: I3fd98ba08393856311a48fa40769027460c72ef9

10 years agoMerge "Only show notoken as possible API error once"
jenkins-bot [Tue, 11 Jun 2013 13:40:03 +0000 (13:40 +0000)]
Merge "Only show notoken as possible API error once"

10 years agoMerge "(bug 42253) link user in accountcreatedtext msg"
jenkins-bot [Tue, 11 Jun 2013 07:22:01 +0000 (07:22 +0000)]
Merge "(bug 42253) link user in accountcreatedtext msg"

10 years agoMerge "Remove unnecessary exception from Title::getLatestRevID()"
jenkins-bot [Tue, 11 Jun 2013 07:02:43 +0000 (07:02 +0000)]
Merge "Remove unnecessary exception from Title::getLatestRevID()"

10 years agoRemove unnecessary exception from Title::getLatestRevID()
Tim Starling [Thu, 6 Jun 2013 06:45:50 +0000 (16:45 +1000)]
Remove unnecessary exception from Title::getLatestRevID()

Bug 37209: An exception was thrown where the data cached in the Title
object was inconsistent with the data in LinkCache. It shouldn't be
surprising that this happens, since there is no guarantee that the data
was derived from the same transaction or even the same DB server.

But I don't think it is a problem worth troubling the user over, since
with $flags=0, the slave DB server will be used, and no special guarantee
of consistency should be expected by callers. If callers do need
consistency, then they should make their own arrangements to get it,
such as clearing the LinkCache.

Since we have to pick a winner, and the choice is mostly arbitrary since
it's not possible to tell which is fresher, I think LinkCache is a better
choice since the lifetime of its cache entries can be controlled.

Change-Id: I0add48463341e56fe8c155b1007487278ad2705d

10 years ago(bug 42253) link user in accountcreatedtext msg
S Page [Sat, 8 Dec 2012 02:31:25 +0000 (18:31 -0800)]
(bug 42253) link user in accountcreatedtext msg

Why not provide links to new user's page and talk page?  This is only
when a logged-in user creates a new account, so presumably he or she
knows what he's doing and appreciates the convenience links.

Also improve documentation of accountcreated in MessagesQqq.php.

Change-Id: I4e88829d8665c5c61a59877962a8a14b55c91aa0

10 years agoMerge changes I4950496e,I849c4bd1
jenkins-bot [Tue, 11 Jun 2013 03:55:40 +0000 (03:55 +0000)]
Merge changes I4950496e,I849c4bd1

* changes:
  Remove all uses of obsolete .editsection class
  Remove Wikimedia-specific hack in ParserOutput

10 years agoAllow patrolling pages by revision id
Marius Hoch [Sun, 9 Jun 2013 00:44:01 +0000 (02:44 +0200)]
Allow patrolling pages by revision id

This became necessary as it's quite hard to
get the rc id of a change from the html after
I1e24733c.

Bug: 49259
Change-Id: Ia7d3960cf11bf8ae0fc06ae1a0f7fcfb3c080f21

10 years ago[Database] Tweaked LoadMonitor::getLagTimes() to further reduce stampedes
Aaron Schulz [Wed, 22 May 2013 23:19:16 +0000 (16:19 -0700)]
[Database] Tweaked LoadMonitor::getLagTimes() to further reduce stampedes

Change-Id: I79e3232e3e87bb298ae1a3fe214fcd2506818884

10 years agoDrop __autoload.
Daniel Friesen [Mon, 3 Jun 2013 09:13:42 +0000 (02:13 -0700)]
Drop __autoload.

spl_autoload_register exists in >=5.1.2, we require >=5.3.2
We no longer support hphpc and it looks like hhvm supports spl_autoload_register

We've got no reason to keep using __autoload.
We'll also need to exclusively use spl_autoload_register when we start using composer.json stuff.

Change-Id: I694b7b96825e5d136fa76461511efc9a002149fa

10 years agoOnly show notoken as possible API error once
Marius Hoch [Sun, 9 Jun 2013 01:14:15 +0000 (03:14 +0200)]
Only show notoken as possible API error once

Currently notoken is being listed as possible
API error twice if it's explicitly set as
required parameter and needsToken() returns
true.

See:
https://www.wikidata.org/w/api.php?action=paraminfo&modules=edit

Change-Id: Ia17c5cfa634919b43affa146df0d1dc0ff06b758

10 years agoAdd new hook AbortTalkPageEmailNotification
bsitu [Mon, 10 Jun 2013 22:11:39 +0000 (15:11 -0700)]
Add new hook AbortTalkPageEmailNotification

This hook will allow extension to disable the regular talk page email notification,
Echo is doing this with a hackish solution of setting global variable
wgEnotifUserTalk to false on the fly, this approach is problematic and will
be replaced with this hook

Change-Id: Ie043d9a1a771d64e4b05b7ddeca75c7542a6c575

10 years agoMerge "Add user rights 'editmyuserjs' and 'editmyusercss'"
jenkins-bot [Mon, 10 Jun 2013 20:58:49 +0000 (20:58 +0000)]
Merge "Add user rights 'editmyuserjs' and 'editmyusercss'"

10 years agoMerge "Remove revision patrol links from normal page views"
jenkins-bot [Mon, 10 Jun 2013 20:26:36 +0000 (20:26 +0000)]
Merge "Remove revision patrol links from normal page views"

10 years agoAdd user rights 'editmyuserjs' and 'editmyusercss'
Brad Jorsch [Mon, 10 Jun 2013 17:33:48 +0000 (13:33 -0400)]
Add user rights 'editmyuserjs' and 'editmyusercss'

These are needed for OAuth grants.

Change-Id: I52f8e4a5cb48573cb2dbc26fc508e61a95d748c3

10 years agoMerge "Revert "Introducing ContentGetParserOutput hook.""
jenkins-bot [Mon, 10 Jun 2013 19:28:08 +0000 (19:28 +0000)]
Merge "Revert "Introducing ContentGetParserOutput hook.""

10 years agoRevert "Introducing ContentGetParserOutput hook."
Ori.livneh [Mon, 10 Jun 2013 19:13:00 +0000 (19:13 +0000)]
Revert "Introducing ContentGetParserOutput hook."

This change removed getHtml(), but not the call to it from fillParserOutput.
It has a few other issues that I'll flag in-line after deploying the revert.

This reverts commit fda090a7e7f85f146ec84798fda45232ab67613e

Bug: 49398
Change-Id: Idcef8d4cedc7c03f72bc1743e0f89cc5ed4ad7a7

10 years agoMerge "Add vendor to mwdocgen's excludes list."
Parent5446 [Mon, 10 Jun 2013 18:37:56 +0000 (18:37 +0000)]
Merge "Add vendor to mwdocgen's excludes list."

10 years agoMerge "Fix bad copy-paste error in deprecated method"
Tychay [Mon, 10 Jun 2013 18:29:52 +0000 (18:29 +0000)]
Merge "Fix bad copy-paste error in deprecated method"

10 years agoMerge "mw.toolbar: Clean up code and jsduckify"
jenkins-bot [Mon, 10 Jun 2013 17:43:27 +0000 (17:43 +0000)]
Merge "mw.toolbar: Clean up code and jsduckify"

10 years agomw.toolbar: Clean up code and jsduckify
Timo Tijhof [Mon, 10 Jun 2013 02:59:17 +0000 (04:59 +0200)]
mw.toolbar: Clean up code and jsduckify

* Removed remnants of the 7th 'selectText' parameter. This
  was still tossed around in a few places, but in the function
  it ends up in (toolbar.insertTags) it is no longer used.
* Per code conventions, don't use jQuery's magic attrMap
  argument, instead call the (in this case attr) method directly.
* Optimise way we get the reference to the detached Array#slice,
  access 'slice' on local array instead of global variabile
  lookup for 'Array' and accessing prototype (learned from jQuery core).
* Link "mw.toolbar.addButton" is invalid in jsduck, members
  of modules are accessed by a hash sign. Should be
  "mw.toolbar#addButton" or even just #addButton in this case.
* Eliminated scrollEditBox function by inlining its contents into the
  $( document ).ready handler.

Change-Id: I867f2bcfd97e00a498a963e5d9730e5b0d36dcae

10 years agoMerge "Kill <meta name="keywords" content="..."> in a blazing fire."
Brion VIBBER [Mon, 10 Jun 2013 15:53:15 +0000 (15:53 +0000)]
Merge "Kill <meta name="keywords" content="..."> in a blazing fire."

10 years agoMerge "Followup mistake in I82711cee"
Alex Monk [Mon, 10 Jun 2013 15:13:16 +0000 (15:13 +0000)]
Merge "Followup mistake in I82711cee"

10 years agoMerge "Remove unneeded parenthesis from warning text in prop=revisions"
jenkins-bot [Mon, 10 Jun 2013 14:37:15 +0000 (14:37 +0000)]
Merge "Remove unneeded parenthesis from warning text in prop=revisions"

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 10 Jun 2013 07:13:06 +0000 (07:13 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I826587e7cb21c3bf1376701839b1a8c11c2e751e

10 years agoMerge "Move post-edit font-family rule to Vector-specific selector"
Ori.livneh [Mon, 10 Jun 2013 03:26:46 +0000 (03:26 +0000)]
Merge "Move post-edit font-family rule to Vector-specific selector"

10 years agoMerge "mediawiki.user: Simplify implementation and jsduckify"
Hoo man [Mon, 10 Jun 2013 00:01:01 +0000 (00:01 +0000)]
Merge "mediawiki.user: Simplify implementation and jsduckify"

10 years agoRemove unneeded parenthesis from warning text in prop=revisions
umherirrender [Sun, 9 Jun 2013 10:07:41 +0000 (12:07 +0200)]
Remove unneeded parenthesis from warning text in prop=revisions

Change-Id: I8d2ca6a4b7199fa1f4fe3b3e63dbefb2cc273d7b

10 years agoMerge "CSSJanus: don't mangle 5+ consecutive numeric values"
jenkins-bot [Sun, 9 Jun 2013 09:26:41 +0000 (09:26 +0000)]
Merge "CSSJanus: don't mangle 5+ consecutive numeric values"

10 years agomediawiki.user: Simplify implementation and jsduckify
Timo Tijhof [Sun, 9 Jun 2013 09:21:44 +0000 (11:21 +0200)]
mediawiki.user: Simplify implementation and jsduckify

Similar to mediawiki.util:
* Return plain object instead of an instantiated function.
* Refer to local reference instead of 'this' which makes it
  possible to use all methods "detached" without needing
  a specific context bound.
* Fix documentation comments be valid in jsduck syntax.
  - @example was invalid
  - "foo String : desc" was invalid, changed to:
    "{string} foo Desc"
  - type {false} was invalid, changed to {boolean}
  - reference mw.user.foo was invalid, changed to
    mw.user#foo.
  - getUserInfo was missing @private.
* Include in JSDuck index.

Change-Id: I2732cd7422f444b5cad1c6737a2de5dafb12d541

10 years agoRemove revision patrol links from normal page views
Marius Hoch [Sun, 9 Jun 2013 01:41:48 +0000 (03:41 +0200)]
Remove revision patrol links from normal page views

Users want and expect it this way, per bug 49123

Follow up to I1e24733c

Bug: 49123
Change-Id: Ib4d72179e4029f0c089c3147bdf4bd6daac0374e

10 years agoMove post-edit font-family rule to Vector-specific selector
kaldari [Wed, 5 Jun 2013 22:24:03 +0000 (15:24 -0700)]
Move post-edit font-family rule to Vector-specific selector

The post-edit confirmation message is rendered in the same font-family
across skins due to the font-family rule not being scoped to Vector. This
change moves the font-family rule to a Vector-specific selector, making
the font-family in other skins the inherited one.

Change-Id: I6dd0d0aa5fc6f4773529bec416a7ab35606a1bbc

10 years agoKill <meta name="keywords" content="..."> in a blazing fire.
Daniel Friesen [Sat, 8 Jun 2013 13:30:54 +0000 (06:30 -0700)]
Kill <meta name="keywords" content="..."> in a blazing fire.

meta-keywords is completely and totally useless. It has absolutely no effect
on search engine and no-one uses it anymore. Time to euthanize it.

There isn't a single user of OutputPage::addKeywords inside any extension
inside of Gerrit. So I'm just deleting this method without a deprecation.

Change-Id: I188755521dcde3a9e191975d1ae3cabf7a5d67cd

10 years agoFollowup If21705c2, Shorten remaining urls to the whatwg HTML spec.
Daniel Friesen [Sat, 8 Jun 2013 11:48:01 +0000 (04:48 -0700)]
Followup If21705c2, Shorten remaining urls to the whatwg HTML spec.

Finish up with the /specs/web-apps/current-work/multipage/ urls that
haven't been updated to /html/.

Change-Id: I4dbee0477eea440b0e8f113b1d393c6e0c739c4c

10 years agoAdd vendor to mwdocgen's excludes list.
Daniel Friesen [Sat, 8 Jun 2013 11:07:57 +0000 (04:07 -0700)]
Add vendor to mwdocgen's excludes list.

Now that we support composer libraries we should exclude vendor/
so that our Doxygen script doesn't go generating documentation
for 3rd party libraries we use.

Change-Id: I40502015820f0b9b4b1ef5810bcddcc5970134c5

10 years agoFollowup mistake in I82711cee
Daniel Friesen [Sat, 8 Jun 2013 11:02:49 +0000 (04:02 -0700)]
Followup mistake in I82711cee

Can't believe the fact the @deprecated has the wrong version number
made it through our review process.

Change-Id: If9beea75bb909484b242c1c4cb787fef8f6501d3

10 years agoMerge "Fix XmlTypeCheck docs"
jenkins-bot [Sat, 8 Jun 2013 10:58:53 +0000 (10:58 +0000)]
Merge "Fix XmlTypeCheck docs"

10 years agoMerge "Fix comment for mw.user.sessionId()"
jenkins-bot [Sat, 8 Jun 2013 10:54:37 +0000 (10:54 +0000)]
Merge "Fix comment for mw.user.sessionId()"

10 years agoFix XmlTypeCheck docs
Matthew Flaschen [Fri, 7 Jun 2013 23:29:20 +0000 (19:29 -0400)]
Fix XmlTypeCheck docs

Change-Id: Ia6a394a0dd4fc74c2c2435e48104df367a6b714a

10 years agoFix comment for mw.user.sessionId()
S Page [Sat, 8 Jun 2013 06:15:27 +0000 (23:15 -0700)]
Fix comment for mw.user.sessionId()

Change-Id: I19ab8b6de9f7bfe4418a6cab863ee97b77905795

10 years agoFix Thai link trail regexp
Gabriel Wicke [Sat, 8 Jun 2013 01:37:42 +0000 (18:37 -0700)]
Fix Thai link trail regexp

Escaping the end anchor is unlikely to be useful. This was noticed as it
resulted in an invalid regexp after being transformed in Parsoid.

Change-Id: I955215c83ff29032f8276b0fa3e6b9701a1f2359

10 years agoMerge "Made SwiftFileBackend::loadObjectListing() populate stat entries in reverse...
jenkins-bot [Fri, 7 Jun 2013 23:40:44 +0000 (23:40 +0000)]
Merge "Made SwiftFileBackend::loadObjectListing() populate stat entries in reverse order."

10 years agoMerge "Hide exceptions in MediaWiki::doJobs() as deferred updates do."
jenkins-bot [Fri, 7 Jun 2013 23:37:25 +0000 (23:37 +0000)]
Merge "Hide exceptions in MediaWiki::doJobs() as deferred updates do."

10 years agoGitweb -> Gitblit
Alex Monk [Fri, 7 Jun 2013 22:03:18 +0000 (23:03 +0100)]
Gitweb -> Gitblit

Change-Id: I54387a6ca5ed020e66594d4bf410a042d4ae010f

10 years agoMerge "Support installing PHPUnit using composer."
jenkins-bot [Fri, 7 Jun 2013 21:09:31 +0000 (21:09 +0000)]
Merge "Support installing PHPUnit using composer."

10 years agoMerge "Enhancement: Allow XmlTypeCheck for strings"
jenkins-bot [Fri, 7 Jun 2013 20:07:08 +0000 (20:07 +0000)]
Merge "Enhancement: Allow XmlTypeCheck for strings"

10 years agoMerge "Allow server selection when running sql.php"
jenkins-bot [Fri, 7 Jun 2013 18:28:12 +0000 (18:28 +0000)]
Merge "Allow server selection when running sql.php"

10 years agoMerge "Use getPrefixedDBkey() for template profile call."
jenkins-bot [Fri, 7 Jun 2013 18:18:41 +0000 (18:18 +0000)]
Merge "Use getPrefixedDBkey() for template profile call."

10 years agoEnhancement: Allow XmlTypeCheck for strings
physikerwelt [Sun, 2 Jun 2013 17:24:32 +0000 (17:24 +0000)]
Enhancement: Allow XmlTypeCheck for strings

This change allows that the class XmlTypeCheck can be used to
check strings as well as files. Therefore the constructor has
been extended to one further element that indicates if the
input to be checked is a file or a string.

The functionality is tested with php unit tests.

Change-Id: I7432a754a512e0324c171667c3eac9d8e7838e0e

10 years agoShow rollback link on changes list only for RC_EDIT
umherirrender [Thu, 30 May 2013 05:25:07 +0000 (07:25 +0200)]
Show rollback link on changes list only for RC_EDIT

Changing from !RC_NEW to RC_EDIT to have no rollback links, when this
method is called accidently for RC_LOG or RC_EXTERNAL (or for the old
RC_MOVE/RC_MOVE_OVER_REDIRECT). For that types there are 0 revisions to
rollback.

Change-Id: I1cbdc87a8b8e0cecf6fbfa3b3a64d5015057bccf

10 years agoUse getPrefixedDBkey() for template profile call.
Aaron Schulz [Fri, 7 Jun 2013 17:42:59 +0000 (10:42 -0700)]
Use getPrefixedDBkey() for template profile call.

Change-Id: Iac5183635984aa9261c1e85e32f6bb173ec513ae

10 years agoMerge "Fixed long memcached keys for infoaction."
Aaron Schulz [Fri, 7 Jun 2013 17:11:18 +0000 (17:11 +0000)]
Merge "Fixed long memcached keys for infoaction."

10 years agoRemove all uses of obsolete .editsection class
MatmaRex [Fri, 26 Apr 2013 21:48:29 +0000 (23:48 +0200)]
Remove all uses of obsolete .editsection class

Cleanup after I6a6c12a9. To be merged after appropriate caches are purged.

Change-Id: I4950496e584735a3ceeb0e1c4123dfe6597f2ae1

10 years agoRemove Wikimedia-specific hack in ParserOutput
MatmaRex [Fri, 26 Apr 2013 21:42:31 +0000 (23:42 +0200)]
Remove Wikimedia-specific hack in ParserOutput

Cleanup after I6a6c12a9. To be merged after appropriate caches are purged.

Change-Id: I849c4bd1fe59e582f9f16789e8b511719e2a5d06

10 years agoSupport installing PHPUnit using composer.
Daniel Friesen [Mon, 3 Jun 2013 10:35:35 +0000 (03:35 -0700)]
Support installing PHPUnit using composer.

"phpunit/phpunit" already exists inside our composer.json's "require-dev" however this has been
entirely useless as we don't include the autoloader which would load composer's PHPUnit.

This change begins including composer's autoloader when present and also tweaks phpunit.php
to ensure PHPUnit isn't double loaded. As a result besides supporting PHPUnit via composer this
also means that we're ready to make use of any library we add to our composer.json in the future.

Change-Id: I891740e8fd3d237c5f473862027205d951f564b9

10 years agoMerge ""Your domain" appearance fixes for new forms"
jenkins-bot [Thu, 6 Jun 2013 21:54:40 +0000 (21:54 +0000)]
Merge ""Your domain" appearance fixes for new forms"

10 years agoFixed long memcached keys for infoaction.
Aaron Schulz [Thu, 6 Jun 2013 20:40:07 +0000 (13:40 -0700)]
Fixed long memcached keys for infoaction.

* One place was already using SHA1, so invalidation was broken.

Change-Id: Ie0d3b9274ed2e1c5a7b1616cd237a5e25fd99d12

10 years agoedit.php maintenance script not setting up context, just globals
Alex Monk [Thu, 6 Jun 2013 20:20:20 +0000 (21:20 +0100)]
edit.php maintenance script not setting up context, just globals

Was breaking one of Echo's hooks

Bug: 49271
Change-Id: Ie1b5f5bc4a672bcfff3c99b9a76b37c502c09985

10 years agoaction=parse now can parse in preview mode
Max Semenik [Thu, 6 Jun 2013 16:04:40 +0000 (20:04 +0400)]
action=parse now can parse in preview mode

Bug: 49239
Change-Id: Iacfea0219ef21dc91d669f51140ec129c2f41f76

10 years agoCSSJanus: don't mangle 5+ consecutive numeric values
MatmaRex [Thu, 6 Jun 2013 14:48:42 +0000 (16:48 +0200)]
CSSJanus: don't mangle 5+ consecutive numeric values

Don't mangle 5+ consecutive numeric values in the
'four_notation_quantity' and 'four_notation_color' rules. This
prevents box-shadow rules from being utterly broken in RTL (but still
doesn't flip them properly).

Bug: 45677
Change-Id: I16cb9e171a79c6f299b40fa02908b0c045e3c474

10 years ago"Your domain" appearance fixes for new forms
S Page [Thu, 6 Jun 2013 01:47:04 +0000 (18:47 -0700)]
"Your domain" appearance fixes for new forms

* Restore lost id=mw-user-domain-section (so wikitech can hide it).
* Remove obsolete pos-above class.
* Fix message key.

Bug: 49225
Change-Id: I73bcd44eff10a4fd2d1a392e82427e42e92fc3bf

10 years agoRefactored WikiPage::updateCategoryCounts() to use upsert().
Aaron Schulz [Tue, 4 Jun 2013 18:59:34 +0000 (11:59 -0700)]
Refactored WikiPage::updateCategoryCounts() to use upsert().

* Also made it avoid inserting aggregate rows on membership
  decrement if there was no prior row aggregate row.

Change-Id: I7e6d07e42cc06cedbd9d10ed9f276f20636dc222

10 years agoMerge "Doc fix for MediaHandler::getThumbType"
jenkins-bot [Thu, 6 Jun 2013 01:33:12 +0000 (01:33 +0000)]
Merge "Doc fix for MediaHandler::getThumbType"

10 years agoThe language used to render SVGs should be definable
jarry1250 [Fri, 24 May 2013 12:56:06 +0000 (14:56 +0200)]
The language used to render SVGs should be definable

See bug for context.

The implementation is slightly untidy because I've written it so
as to avoid invalidating the existing SVG thumbs -- there will be
no immediate difference (visual/performance/other) as a result of
this.

Tested by me in both...
* [[File:Example.svg|thumb|lang=fr]] AND
* http://example.org/w/index.php?title=File:Example.svg&lang=fr
...modes. Example file on
https://commons.wikimedia.org/wiki/File:Gerrit_patchset_25838_test.svg

Added parser tests.

Bug: 32987
Change-Id: I4cadf96ecd5e169a88ad468a0478d355db980103

10 years agoDoc fix for MediaHandler::getThumbType
Brian Wolff [Wed, 5 Jun 2013 17:28:13 +0000 (14:28 -0300)]
Doc fix for MediaHandler::getThumbType

Change-Id: I892937b3bcaf976537c89cb4f52fab20a2fba5b0

10 years agoFollow up I6e64a missing global deceleration for $wgHTTPConnectTimeout
Brian Wolff [Wed, 5 Jun 2013 15:38:09 +0000 (12:38 -0300)]
Follow up I6e64a missing global deceleration for $wgHTTPConnectTimeout

Bug: 47027
Change-Id: I3e2a84ee8a759dd2bdb2fd0837e0cd5605541816

10 years agoMerge "RefreshLinks on imagelinks on new uploads to kill tracking cat."
jenkins-bot [Wed, 5 Jun 2013 16:35:41 +0000 (16:35 +0000)]
Merge "RefreshLinks on imagelinks on new uploads to kill tracking cat."

10 years agoShorten our in-comment urls to the whatwg HTML spec.
Daniel Friesen [Mon, 13 May 2013 03:21:13 +0000 (20:21 -0700)]
Shorten our in-comment urls to the whatwg HTML spec.

whatwg.org has a redirect to /specs/web-apps/current-work/multipage/ from /html/.

Change-Id: If21705c214ca8f14db5a0c6dda3c43c22f9ca811

10 years agoRefreshLinks on imagelinks on new uploads to kill tracking cat.
Brian Wolff [Mon, 15 Apr 2013 23:06:23 +0000 (20:06 -0300)]
RefreshLinks on imagelinks on new uploads to kill tracking cat.

When someone uploads a new file, we should refresh all the pages
that use that image, so that [[Category:Pages with broken file links]]
gets removed.

Future fixme would to run this again on file deletes, but that's
less critical as they will eventually get added on next reparse
and people don't expect that to happen instantly like when fixing
the issue. Ditto for someone creating a new file redirect.

Bug: 46749
Change-Id: I7889598eee54a1c07c64f750b8499e922ba59704

10 years agoMerge "jquery.client: Fix profile of some UAs and add exactMatchOnly param"
jenkins-bot [Wed, 5 Jun 2013 12:31:24 +0000 (12:31 +0000)]
Merge "jquery.client: Fix profile of some UAs and add exactMatchOnly param"

10 years agojquery.client: Fix profile of some UAs and add exactMatchOnly param
Ed Sanders [Tue, 4 Jun 2013 18:56:13 +0000 (19:56 +0100)]
jquery.client: Fix profile of some UAs and add exactMatchOnly param

Fix detection of Iceweasel (add to wildUserAgents), Safari (make
comma after KHTML optional) and Android (add to versionPrefixes
and names).

Add 'exactMatchOnly' parameter to test function which triggers
a return value of false if the browser is not found (previously
was always true). Also making ltr/rtl splitting in support map
optional.

Change-Id: I541a6c134e9668f6bf5af49d4508a82d4f546bb6

10 years agoMerge "jquery.tablesorter: Reset unaffected columns' sort counts when sorting"
jenkins-bot [Wed, 5 Jun 2013 11:48:07 +0000 (11:48 +0000)]
Merge "jquery.tablesorter: Reset unaffected columns' sort counts when sorting"

10 years ago[LockManager] Made it easier to get both SH and EX locks at once.
Aaron Schulz [Sat, 20 Apr 2013 07:10:19 +0000 (00:10 -0700)]
[LockManager] Made it easier to get both SH and EX locks at once.

* This also makes it possible for subclasses to optimize this case.
* Added a timeout parameter to ScopedLock::factory().
* Cleaned up a few bits of documentation.

Change-Id: Id3e9cf01f25ab498ea00d87ffb6d00aa8b05052b

10 years agoAllow setting of connection timeouts for HTTP requests using cURL
Chad Horohoe [Mon, 8 Apr 2013 23:45:05 +0000 (19:45 -0400)]
Allow setting of connection timeouts for HTTP requests using cURL

Bug: 47027
Change-Id: I6e64a8bfc58e899149463d305eac672c1e8ad2ba

10 years agoRemove unused global
Platonides [Tue, 4 Jun 2013 21:40:30 +0000 (23:40 +0200)]
Remove unused global

Follow-up 22eb569

Change-Id: I2c34b1f02c7304bd6864a7402c8be0ab313c7162

10 years agoFollow-up 05077dc3740
Platonides [Tue, 4 Jun 2013 21:30:16 +0000 (23:30 +0200)]
Follow-up 05077dc3740

* s/___METHOD__/__METHOD__/
* Remove the mention to cur table as deprecation reason,
since it is obviously not trying to use cur (removed in 1.5),
this code is clearly newer (expecting data from a mixture of
tables), although using an old interface.

Change-Id: I0b4fdf7de4f56c1100ef3cdd7705e8f6701bc7cf

10 years agoMerge "Remove the $wgHandheldForIPhone config variable entirely"
TheDJ [Tue, 4 Jun 2013 19:58:06 +0000 (19:58 +0000)]
Merge "Remove the $wgHandheldForIPhone config variable entirely"

10 years agoRemove the $wgHandheldForIPhone config variable entirely
MatmaRex [Sat, 11 May 2013 19:05:43 +0000 (21:05 +0200)]
Remove the $wgHandheldForIPhone config variable entirely

It only really made sense in pair with $wgHandheldStyle, and that has
been removed in Ia8d79b4a.

Remove irrelevant tests, adjust still relevant ones.

Change-Id: I7c24128f7b148d0244538ad95bb60bf09ec4b5cb

10 years agoMerge "More cleanup when removing accounts with removeUnusedAccounts.php"
jenkins-bot [Tue, 4 Jun 2013 19:34:44 +0000 (19:34 +0000)]
Merge "More cleanup when removing accounts with removeUnusedAccounts.php"

10 years agoMerge "mediawiki.icon: Move arrow icons to a separate module"
jenkins-bot [Tue, 4 Jun 2013 19:10:12 +0000 (19:10 +0000)]
Merge "mediawiki.icon: Move arrow icons to a separate module"

10 years agoMore cleanup when removing accounts with removeUnusedAccounts.php
Alexandre Emsenhuber [Tue, 4 Jun 2013 19:02:33 +0000 (21:02 +0200)]
More cleanup when removing accounts with removeUnusedAccounts.php

Delete entries from user_groups, user_former_groups and user_properties tables too

Change-Id: I581e5e6b749b9718fee3187513adc02e78c1a71b

10 years agoAdded tests for new DatabaseBase::upsert
umherirrender [Tue, 4 Jun 2013 18:34:49 +0000 (20:34 +0200)]
Added tests for new DatabaseBase::upsert

Follow up Id7fc6652
Pass function name to begin/rollback/commit
Use __METHOD__ as default param (see I86cbdeab)

Change-Id: I9eb326c035d4a604db5b3492f090d8dd9d21c920

10 years agoMerge "User: Clean up coding style and documentation"
jenkins-bot [Tue, 4 Jun 2013 16:57:57 +0000 (16:57 +0000)]
Merge "User: Clean up coding style and documentation"

10 years agoIntroducing ContentGetParserOutput hook.
daniel [Tue, 16 Oct 2012 10:38:20 +0000 (12:38 +0200)]
Introducing ContentGetParserOutput hook.

This hooks allows extensions to override the normal model-specific rendering
of page content. A typical use would be to provide syntax highlighting for
pages that contain scripts. In that sense, ContentGetParserOutput is a
generalization of the old ShowRawCssJs hook.

Change-Id: Ibfb2cbefea44eeee9f2a027f47e7721bf177ba0f

10 years agomediawiki.icon: Move arrow icons to a separate module
Brad Jorsch [Sat, 25 May 2013 09:24:42 +0000 (11:24 +0200)]
mediawiki.icon: Move arrow icons to a separate module

The arrow icons for the enhanced watchlist/recent changes could be
useful elsewhere. But to do that, we need to be able to load them
separately; this does that by adding a new module just for the CSS
needed for the arrows.

Also, this fixes a use of OutputPage::addModuleStyles that really should
have been OutputPage::addModules so dependencies are resolved.

Change-Id: I639a5ccbc3b7b2794e7b12ecb64e5ee6b10a640a

10 years agoUser: Clean up coding style and documentation
Timo Tijhof [Mon, 3 Jun 2013 22:02:10 +0000 (00:02 +0200)]
User: Clean up coding style and documentation

* Parameter type hint should be a variable type or a class
  name. Types Null, Bool, Boolean, Int, Integer, String do
  not exist and are invalid values. Changed to their PHP
  type names (basically just lowercase).
* Made inline comments consistently use "//" instead of "#".
* Removed various odd spurious spaces sequences in @param
  lines. They are sometimes used to pretty-align multi-line
  descriptions. Though I think that is silly, I've left those
  alone. I've only removed the spaces where it seems arbitrary
  and not aligning with anything. Last I checked the common
  convention for multi-line descriptions is to simply continue
  on the next line with one extra space as indention.
* Swapped "$var Type" in cases where the surrounding @param's
  already use "Type $var".

Change-Id: I6b315e308271194815879c509d3ac6aeb409851b

10 years agoMerge "RecentChange: deprecate newFromCurRow and loadFromCurRow"
jenkins-bot [Tue, 4 Jun 2013 13:31:30 +0000 (13:31 +0000)]
Merge "RecentChange: deprecate newFromCurRow and loadFromCurRow"

10 years agoMerge "Cologne Blue: add missing 'undeletethispage' message"
jenkins-bot [Tue, 4 Jun 2013 13:07:25 +0000 (13:07 +0000)]
Merge "Cologne Blue: add missing 'undeletethispage' message"

10 years agoMerge "Allow patrolling page creations from Special:RecentChanges"
jenkins-bot [Tue, 4 Jun 2013 12:58:56 +0000 (12:58 +0000)]
Merge "Allow patrolling page creations from Special:RecentChanges"

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 4 Jun 2013 09:19:06 +0000 (09:19 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ibaaab99ded40c3a8badde9abfcc9710d01555dd9

10 years ago[Database] Added an upsert() function to perform/emulate ON DUPLICATE KEY UPDATE.
Aaron Schulz [Thu, 2 May 2013 22:50:29 +0000 (15:50 -0700)]
[Database] Added an upsert() function to perform/emulate ON DUPLICATE KEY UPDATE.

Change-Id: Id7fc6652268a439af0457309a678677351867f37

10 years agoAdd a script to remove deleted files from storage
Aaron Schulz [Tue, 7 May 2013 00:03:38 +0000 (17:03 -0700)]
Add a script to remove deleted files from storage

Bug: 47990
Change-Id: I2fcc2b2c3e92cd851c38f947de6756a982cf194d

10 years agoremove invalid comment from SkinVector::setupSkinUserCss
MatmaRex [Tue, 16 Apr 2013 20:13:55 +0000 (22:13 +0200)]
remove invalid comment from SkinVector::setupSkinUserCss

It seems to refer to pre-ResourceLoader situation (or at least
pre-skins.vector one). Originally added in 6df94d49, back in 2010.

Change-Id: I759fa99041db465ec6baff94b6b96a79b47438dd

10 years agoMerge "Fix edit patrolling in multi Diffs"
jenkins-bot [Mon, 3 Jun 2013 18:54:52 +0000 (18:54 +0000)]
Merge "Fix edit patrolling in multi Diffs"

10 years agoinvalidparammix/missingparam get the module prefix twice
Matthias Mullie [Mon, 3 Jun 2013 18:23:16 +0000 (20:23 +0200)]
invalidparammix/missingparam get the module prefix twice

dieUsage will call encodeParamName, which will already prefix the error code with the module prefix

E.g. for ApiViewFeedbackArticleFeedbackv5 (prefix afvf), this error code was
(incorrectly): afvfafvfinvalidparammix. Should be: afvfinvalidparammix

Change-Id: Ia351678b49e96ef58dce773331ebe9a1b3ebf824

10 years agomediawiki.legacy.ajax: Wrap Sajax methods in mw.log.deprecate
Alex Monk [Fri, 31 May 2013 02:27:58 +0000 (03:27 +0100)]
mediawiki.legacy.ajax: Wrap Sajax methods in mw.log.deprecate

Bug: 40785
Change-Id: I52f01e4e7d8a0ee595b4775068c8a3d630140092

10 years agoMerge "Make headers in FauxRequest case insensitive"
jenkins-bot [Mon, 3 Jun 2013 15:06:43 +0000 (15:06 +0000)]
Merge "Make headers in FauxRequest case insensitive"

10 years agoMerge "Remove occurence of $wgOut in HTMLForm::displayForm()'s documentation"
jenkins-bot [Mon, 3 Jun 2013 14:48:47 +0000 (14:48 +0000)]
Merge "Remove occurence of $wgOut in HTMLForm::displayForm()'s documentation"

10 years agoMake headers in FauxRequest case insensitive
daniel [Fri, 31 May 2013 13:43:31 +0000 (15:43 +0200)]
Make headers in FauxRequest case insensitive

HTTP headers are case insensitive per spec, and WebRequest
treats them like that, so FauxRequest should too.

Change-Id: I4257af7a8de2792ac556c670dcc7f28e4af4cb44

10 years agoMerge "mediawiki.legacy.ajax: Pass JSHint"
jenkins-bot [Mon, 3 Jun 2013 13:42:35 +0000 (13:42 +0000)]
Merge "mediawiki.legacy.ajax: Pass JSHint"