lhc/web/wiklou.git
10 years agoPass along tagFilter to ContribsPager, it already expects it
Matthias Mullie [Mon, 17 Jun 2013 20:23:35 +0000 (22:23 +0200)]
Pass along tagFilter to ContribsPager, it already expects it

ContribsPager already has this below line:

    $this->tagFilter = isset( $options['tagfilter'] ) ? $options['tagfilter'] : false;

The reason the code already works fine is because, in ChangeTags.php, there's this fallback:

    if ( $filter_tag === false ) {
     $filter_tag = $wgRequest->getVal( 'tagfilter' );
    }

Which essentially boils down to the same result as passing along tagfilter, which in
SpecialContributions is read from $wgRequest, passed to ContribsPager, and (well, currently
not) passed to ChangeTags

Change-Id: I12c0336ae31c5524e41fa0087afe2ba104dc7d37

10 years agoMerge "Do not output numberofviews, if $wgDisableCounters = true"
Parent5446 [Mon, 17 Jun 2013 19:22:23 +0000 (19:22 +0000)]
Merge "Do not output numberofviews, if $wgDisableCounters = true"

10 years agoDo not output numberofviews, if $wgDisableCounters = true
umherirrender [Mon, 17 Jun 2013 19:09:06 +0000 (21:09 +0200)]
Do not output numberofviews, if $wgDisableCounters = true

Follow up I9975dceedeffafadf560ed71238c51b94eb8c3ad
But now for the parser function

Change-Id: I18261b884b7f3be57a42c0b10594384fab6f9c9a

10 years agoMerge "Remove Selenium tests from core"
jenkins-bot [Mon, 17 Jun 2013 19:05:50 +0000 (19:05 +0000)]
Merge "Remove Selenium tests from core"

10 years agoMerge "jquery.makeCollapsible: cleanup"
jenkins-bot [Mon, 17 Jun 2013 18:44:49 +0000 (18:44 +0000)]
Merge "jquery.makeCollapsible: cleanup"

10 years agoFixed mysql warning about expecting a resource.
Aaron Schulz [Sun, 16 Jun 2013 22:56:41 +0000 (15:56 -0700)]
Fixed mysql warning about expecting a resource.

Change-Id: I799d063fec7a8e96f49db34ce669453bd26c3fb3

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Sun, 16 Jun 2013 20:49:38 +0000 (20:49 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoMerge "Don't reinvent the wheel in SpecialRecentchangeslinked::getExtraOptions"
TheDJ [Sun, 16 Jun 2013 20:41:12 +0000 (20:41 +0000)]
Merge "Don't reinvent the wheel in SpecialRecentchangeslinked::getExtraOptions"

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 16 Jun 2013 19:50:24 +0000 (19:50 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I352ed34fa912240395a72e84e60f19c42fe10fb3

10 years agoResourceLoader: Serve stylesheets with "Access-Control-Allow-Origin: *"
Derk-Jan Hartman [Sun, 21 Apr 2013 14:38:23 +0000 (16:38 +0200)]
ResourceLoader: Serve stylesheets with "Access-Control-Allow-Origin: *"

This allows Javascript to access our styling information (cssRules and
related cross domain protected dom information) even if it is hosted
on a different domain.

Bug: 25886
Change-Id: I8e05c13ae1a1589fd120d5c439b1a7128ce2b659

10 years agojquery.makeCollapsible: cleanup
MatmaRex [Sat, 23 Mar 2013 14:27:46 +0000 (15:27 +0100)]
jquery.makeCollapsible: cleanup

* Ensure correct handling of togglers which hook to multiple elements
  and elements which have multiple togglers
* Move the `options === undefined` check outside the loop
  per CR on I8dd4f0d0
* Get rid of the old private toggling functions for various kinds of
  toggles (obsoleted, but left alone, in Id3f457a8)
* Don't use separate logic for initial toggling of custom togglers
* Consistently use collapseText/expandText (uppercase T) instead of
  collapsetext/expandtext (lowercase t) where possible
* Adjust comments and whitespace

Change-Id: Id8ecd8f577fb4cd3f640a7830a85436a301b3e2c

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 15 Jun 2013 20:09:53 +0000 (20:09 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ice334feb284bd21c83c26ea92705a1345d10b225

10 years agoMerge "Cleaned up variable/type order in docs."
jenkins-bot [Fri, 14 Jun 2013 22:38:43 +0000 (22:38 +0000)]
Merge "Cleaned up variable/type order in docs."

10 years agoFix typo ('associed' => 'associated').
Ori Livneh [Fri, 14 Jun 2013 22:26:00 +0000 (15:26 -0700)]
Fix typo ('associed' => 'associated').

Change-Id: I5ea2eec92ebe397f2d269562f1650e59cb969a19

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Fri, 14 Jun 2013 21:59:39 +0000 (21:59 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoFixed doc typo
Aaron Schulz [Fri, 14 Jun 2013 21:14:59 +0000 (14:14 -0700)]
Fixed doc typo

Change-Id: I1e4ab410cd02a74e667cc8611e58ad791558896a

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 14 Jun 2013 21:05:13 +0000 (21:05 +0000)]
Localisation updates from translatewiki.net.

Change-Id: If58755fdcfc3c12f16436c4a245a520cb037d994

10 years agoRemove Selenium tests from core
Chad Horohoe [Fri, 14 Jun 2013 20:20:09 +0000 (16:20 -0400)]
Remove Selenium tests from core

This never really worked properly, doesn't conform to coding
conventions, and isn't actually used by anyone for testing.

Our selenium stuff these days are in the qa/browsertests repo

Change-Id: I8f1efaa118fe41821fb3f4a6099d75a33681f17b

10 years ago(bug 47449) {{#special:}} should always return a usable title
Mormegil [Sat, 20 Apr 2013 12:42:22 +0000 (14:42 +0200)]
(bug 47449) {{#special:}} should always return a usable title

{{#special:}} should always return a usable title in NS_SPECIAL,
even when given an unknown special page title. Currently, it returns
"No such special page" text for such unknown names, which is
surprising.

Bug: 47449
Change-Id: I7f184956ec9d56c849f201f1230736fcedd0fadf

10 years agoMerge "Fix FOUC on preferences."
jenkins-bot [Fri, 14 Jun 2013 03:29:59 +0000 (03:29 +0000)]
Merge "Fix FOUC on preferences."

10 years agoMerge "(Bug 48952) Show debug output in toolbar"
jenkins-bot [Fri, 14 Jun 2013 03:14:38 +0000 (03:14 +0000)]
Merge "(Bug 48952) Show debug output in toolbar"

10 years agoAPI: Fix action=parse without any page or title or text
Brad Jorsch [Fri, 10 May 2013 15:59:11 +0000 (11:59 -0400)]
API: Fix action=parse without any page or title or text

action=parse was raising an error about missing 'text' with 'title' even
when 'title' wasn't actually passed, due to a fix for bug 33865. But
this broke using action=parse to parse an edit summary without also
giving it wikitext to parse.

Instead, let's give the client a warning (unless it seems clear they
know what they are doing) and assume the empty string for 'text'.

Also, while we're editing the file, add some more examples as also
requested in bug 48319.

Bug: 48319
Change-Id: I03c1fbcb0bd31dea8bd84e164104f7ced0ace449

10 years agoMerge "Added parsoid-only tests for parsoid's native cite implementation"
jenkins-bot [Thu, 13 Jun 2013 23:45:27 +0000 (23:45 +0000)]
Merge "Added parsoid-only tests for parsoid's native cite implementation"

10 years agoMade purgeDeletedFiles.php delete files still in the public zone.
Aaron Schulz [Wed, 12 Jun 2013 17:46:37 +0000 (10:46 -0700)]
Made purgeDeletedFiles.php delete files still in the public zone.

* This makes purges more useful since the file won't come back.
* This only applies for files that are confirmed to already be
  in the deleted zone too. This is for sanity.

Change-Id: I60316c1d9323347d09607e36a334fc5eb0b6a2e7

10 years agoAdded parsoid-only tests for parsoid's native cite implementation
Subramanya Sastry [Thu, 13 Jun 2013 23:36:05 +0000 (18:36 -0500)]
Added parsoid-only tests for parsoid's native cite implementation

Change-Id: If5cf091d7c6c864f6bd90165086a19ae38ec257e

10 years agoFix patrolling where NP patrol isn't explicitly enabled
Marius Hoch [Thu, 13 Jun 2013 23:04:57 +0000 (01:04 +0200)]
Fix patrolling where NP patrol isn't explicitly enabled

Hot fix! Follow-up fc5bcf1147f9

Change-Id: Iba7e70e1a1ddd9826f6e5f4022b88ccafc5f571d

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 13 Jun 2013 18:48:12 +0000 (18:48 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I4e12c5f98fb8da8d7b83e167363668b2504b26b2

10 years agoCleaned up variable/type order in docs.
Aaron Schulz [Thu, 13 Jun 2013 18:18:52 +0000 (11:18 -0700)]
Cleaned up variable/type order in docs.

* A few other minor doc cleanups and obvious type hints.

Change-Id: I454fad0c1942068b4f3632ebd1b605bfbb9dfe7c

10 years agoAPI: Fix IPv6 handling in list=blocks
Brad Jorsch [Mon, 6 May 2013 14:27:46 +0000 (10:27 -0400)]
API: Fix IPv6 handling in list=blocks

The current handling of the bkip parameter assumes IPv4, and breaks for
IPv6 CIDR ranges (it also isn't working right for IPv6 non-CIDR, but not
in an obvious way).

This rewrite handles IPv6 correctly. It also necessarily adds validation
for the bkip parameter, which would formerly return (not very sensible)
results when passed invalid values.

Bug: 48129
Change-Id: I02471bb32c3a217004d07a79d9f98b62133b31ef

10 years agoMerge "Add section preview mode to API action=parse"
jenkins-bot [Thu, 13 Jun 2013 13:50:38 +0000 (13:50 +0000)]
Merge "Add section preview mode to API action=parse"

10 years agoMerge "Ensure <h5> and <h6> have different computed font size"
jenkins-bot [Thu, 13 Jun 2013 06:40:36 +0000 (06:40 +0000)]
Merge "Ensure <h5> and <h6> have different computed font size"

10 years ago(Bug 48952) Show debug output in toolbar
physikerwelt [Mon, 3 Jun 2013 09:56:30 +0000 (09:56 +0000)]
(Bug 48952) Show debug output in toolbar

The debug output written with the function wfDebugLog should  be
printed to the debug toolbar in the same way as wfDebug does.

Change-Id: Ib979df080332e16c8e0e6a89eab8741986ab39c3

10 years agoPrepare DatabaseMysql for mysqli
Jakub Vrana [Fri, 3 May 2013 01:39:16 +0000 (18:39 -0700)]
Prepare DatabaseMysql for mysqli

PHP extensions mysql and mysqli have lots in common.
In order to support mysqli, this diff separates common MySQL behavior to abstract class DatabaseMysqlBase and implements the mysql-extension specific in DatabaseMysql.
Outside behavior remains the same.

I've tried to minimize future code duplication by introducing mysql*() methods even if the parent method just unwraps the result.

Bug: 45288
Change-Id: I905d4a4550377bc849a860f0962dad710d9dc71f

10 years agoFixme comment for bug 49504
Tim Starling [Wed, 12 Jun 2013 23:21:18 +0000 (09:21 +1000)]
Fixme comment for bug 49504

Change-Id: Ie229e84b299c357cfe9a2db0a5ba07713aac7597

10 years agoAdd section preview mode to API action=parse
Max Semenik [Wed, 12 Jun 2013 22:46:04 +0000 (02:46 +0400)]
Add section preview mode to API action=parse

In https://gerrit.wikimedia.org/r/#/c/67266/, it was enabled automatically
when a section was specified in preview mode. However, this only works for
previews of a saved page's content, failing for user input previews which
might contain several sections of various degrees of nestedness.

Change-Id: I987144e5e315ed9e0a67f599083461a78879c0df

10 years agoMerge "Remove non UTF-8 chars from debug output"
jenkins-bot [Wed, 12 Jun 2013 21:01:44 +0000 (21:01 +0000)]
Merge "Remove non UTF-8 chars from debug output"

10 years agoRemoved redundant documentation for some methods.
Aaron Schulz [Wed, 12 Jun 2013 05:35:37 +0000 (22:35 -0700)]
Removed redundant documentation for some methods.

Change-Id: I72f132c0b6e9a300efff6c15957f163d84e7d9c2

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Wed, 12 Jun 2013 20:04:28 +0000 (20:04 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoRemoved redundant documentation for some methods.
Aaron Schulz [Tue, 11 Jun 2013 22:09:46 +0000 (15:09 -0700)]
Removed redundant documentation for some methods.

Change-Id: Iad422716f6796cc4b69405182f4a74daa0c93663

10 years agosupport setting Memcached::OPT_SERVER_FAILURE_LIMIT, Memcached::OPT_RETRY_TIMEOUT
asher [Wed, 12 Jun 2013 19:39:39 +0000 (12:39 -0700)]
support setting Memcached::OPT_SERVER_FAILURE_LIMIT, Memcached::OPT_RETRY_TIMEOUT

Change-Id: Ib1fcae92b65e8fd23baee7af7ed64abd908b600e

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 12 Jun 2013 19:14:13 +0000 (19:14 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I599770c4c8b53d0d46c74f1426168a5c3d963a81

10 years agoRemove unused searchhelp-url and searchmenu-help
Federico Leva [Wed, 12 Jun 2013 08:29:21 +0000 (10:29 +0200)]
Remove unused searchhelp-url and searchmenu-help

searchhelp-url was introduced around r43595 to improve
searchmenu-help (r43376). Both were part of a Special:Search redesign
that never really happened. Commented out in r50207, and removed
in r51228

See also Ic0469c6c51a4d54ee214347fc416615c2f6cb1f0

Change-Id: I82259bd836ba8c4a3042cb81c99165c312ca04cc

10 years agoFix return type of MessageCache::getMsgFromNamespace for existing
Tyler Anthony Romeo [Fri, 17 May 2013 12:10:31 +0000 (12:10 +0000)]
Fix return type of MessageCache::getMsgFromNamespace for existing

Functions expect the message cache to return a string if a message
exists, even empty, and false if it does not exist. This adds casting
to the substr() function, which would return false for existing
messages that were just blank.

Bug: 14176
Change-Id: Id91914a3701fe53f1e2e894824512489392c628b

10 years agoMerge "Setting tooltip gravity to 's' so that the tooltip shows above"
jenkins-bot [Tue, 11 Jun 2013 21:35:19 +0000 (21:35 +0000)]
Merge "Setting tooltip gravity to 's' so that the tooltip shows above"

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Tue, 11 Jun 2013 21:01:59 +0000 (21:01 +0000)]
Merge "Localisation updates from translatewiki.net."

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

Change-Id: I7458f257824c9b1a4f14d6cc7a9567ee454749c7

10 years agoIn 'uctop', replace 'top' with 'current' [revision]
Federico Leva [Mon, 8 Apr 2013 05:16:48 +0000 (07:16 +0200)]
In 'uctop', replace 'top' with 'current' [revision]

We can continue calling the "top revision" such in English,
but no need to confuse everyone looking at Special:Contributions.
The closest "translation" to human English would be "last",
however that can be confused with "last by you" etc.
Most translations are already "current" or "last revision/for the page".
https://translatewiki.net/w/i.php?title=Special%3ATranslations&message=Uctop&namespace=8

Also changed on en.wiki, 24 February 2013, by WilliamH:
«"top" is vague and its meaning must be inferred».
<https://en.wikipedia.org/w/index.php?title=MediaWiki:Uctop&oldid=540122804>
Kudos to the first sysop caring 9 years after complaints on talk.

Change-Id: I75d28d344d2e4e468295b0d6bbb0dcf19b459427

10 years agoSetting tooltip gravity to 's' so that the tooltip shows above
kaldari [Tue, 11 Jun 2013 18:57:59 +0000 (11:57 -0700)]
Setting tooltip gravity to 's' so that the tooltip shows above

Right now the tooltip gravity is defaulting to north which causes
the tooltip to be partially overlapped by the cursor. Setting it
to south makes it easier to read since it appears above the icon
and isn't obscured by the cursor.

Change-Id: I9aa43c9ff93fbded1b51bf34c084ec0f8cad28b7

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"

11 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

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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

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

11 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()"

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

Change-Id: Ia6a394a0dd4fc74c2c2435e48104df367a6b714a

11 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

11 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

11 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."

11 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."

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

Change-Id: I54387a6ca5ed020e66594d4bf410a042d4ae010f

11 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."

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

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

11 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."

11 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

11 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

11 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

11 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."

11 years agoEnsure <h5> and <h6> have different computed font size
Entlinkt [Fri, 7 Jun 2013 09:55:32 +0000 (11:55 +0200)]
Ensure <h5> and <h6> have different computed font size

Browsers tend to have a default font size of 16px and the Vector and Monobook
skins use various techniques to end up at 12.8px resp. 12.7px for the bodytext.

Now, in commonElements.css, we have 105% for <h5> and 100% for <h6>. This gives
rounded values of 13px for <h5> and <h6> in Vector and Monobook, making them
hard to distinguish.

This patch enlarges <h5> to 108% in Vector and Monobook.

Bug: 48671
Change-Id: I9d0fccc687ceba05a6af847efc374fdef04f9b38