lhc/web/wiklou.git
10 years agoPer wikitech-l, remove premature wfDeprecated()
Max Semenik [Sat, 5 Apr 2014 21:51:50 +0000 (01:51 +0400)]
Per wikitech-l, remove premature wfDeprecated()

This way of deprecation is way too rushed, we generally don't mark as
@deprecated and put wfDeprecated() in the same release.

Change-Id: I5dc07d9819b6fb77fcf3194ed16676eaacb834a8

10 years agoFix spacing after @param and friends in comments
umherirrender [Sat, 5 Apr 2014 19:54:24 +0000 (21:54 +0200)]
Fix spacing after @param and friends in comments

Searched for:
\@(param|return|throws|since|deprecated|access|todo|var)[ \t]{2,}

Change-Id: Icce22ba9fe0635455691ca58d9872d618151f346

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Sat, 5 Apr 2014 19:57:38 +0000 (19:57 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 5 Apr 2014 19:35:17 +0000 (19:35 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I44b9547b386f7c169a7add27096e2708d5a3cce9

10 years agofix typo in comment in Preferences.php
umherirrender [Sat, 5 Apr 2014 19:13:38 +0000 (21:13 +0200)]
fix typo in comment in Preferences.php

The name of the preference was spelled wrong.

Change-Id: I443d0a8fc67c89da36b5c725dd3f3513d4170357

10 years agoMerge "Remove trailing line break check from MemcachedBagOStuff::debugLog()"
jenkins-bot [Sat, 5 Apr 2014 19:11:24 +0000 (19:11 +0000)]
Merge "Remove trailing line break check from MemcachedBagOStuff::debugLog()"

10 years agoCorrectly order AutoLoader class definitions
Alexandre Emsenhuber [Sat, 5 Apr 2014 09:06:37 +0000 (11:06 +0200)]
Correctly order AutoLoader class definitions

- Group per directory
- Sort by class name for each directory

Change-Id: If4771f2868c2183f60a6321533142a1ad5cdc7cd

10 years agoRemove trailing line break check from MemcachedBagOStuff::debugLog()
Alexandre Emsenhuber [Sat, 5 Apr 2014 18:28:06 +0000 (20:28 +0200)]
Remove trailing line break check from MemcachedBagOStuff::debugLog()

wfDebugLog() already does the same, so it's unnecessary here.

Change-Id: Ia7bbbd2806fcd638861d010835c33969322d262a

10 years agoFix path after file got moved
jeroendedauw [Sat, 5 Apr 2014 17:49:21 +0000 (19:49 +0200)]
Fix path after file got moved

Change-Id: Ic67f590fb53f2b96cfd8a0192968cb4953bb0d2b

10 years agoFix documentation typo
Rob Moen [Sat, 5 Apr 2014 03:01:42 +0000 (20:01 -0700)]
Fix documentation typo

Change-Id: I535dd23eeccd6686c64a885f06e030b756e67fec

10 years agoRevert "Localisation updates from https://translatewiki.net."
Raimond Spekking [Fri, 4 Apr 2014 20:34:27 +0000 (20:34 +0000)]
Revert "Localisation updates from https://translatewiki.net."

wtf?

This reverts commit ff744475d7d37d4887ebaba3d69884317a736c34.

Change-Id: Ie7ea50de88f87aa527205a816837dbfa5950bb0b

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 4 Apr 2014 20:32:02 +0000 (20:32 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Idfe1499c79cd459377b31ca022fc45a9e0b3e833

10 years agoMerge "mw.hook: Make hook.fire actually chainable"
jenkins-bot [Fri, 4 Apr 2014 19:43:07 +0000 (19:43 +0000)]
Merge "mw.hook: Make hook.fire actually chainable"

10 years agoMerge "Update jquery.fullscreen to newer version (fix IE11 support)"
jenkins-bot [Fri, 4 Apr 2014 19:43:05 +0000 (19:43 +0000)]
Merge "Update jquery.fullscreen to newer version (fix IE11 support)"

10 years agomw.hook: Make hook.fire actually chainable
Timo Tijhof [Fri, 4 Apr 2014 01:35:33 +0000 (18:35 -0700)]
mw.hook: Make hook.fire actually chainable

It was being called without being bound to the mw.hook instance,
as such the (detachable) callbackList.fireWith method (which
returns its given 'this') returned the callbackList instance
instead of the mw.hook object literal.

The tests weren't catching it because it was just checking one
can call .fire() without it crashing, but it was in fact calling
list.fire instead of hook.fire (which unlike #add and #remove are
not compatible, and we might add new methods later on).

Change-Id: If3d4dfbed494e7ff9f32514e539cfa089aea18ac

10 years agoMerge "Add a dot at the end of the deprecate messages"
jenkins-bot [Fri, 4 Apr 2014 08:11:44 +0000 (08:11 +0000)]
Merge "Add a dot at the end of the deprecate messages"

10 years agoresourceloader: Refactor module links output
Timo Tijhof [Thu, 14 Nov 2013 16:54:19 +0000 (17:54 +0100)]
resourceloader: Refactor module links output

Changes:

* Removed hardcoded logic in OutputPage regarding modules
  being "enabled".
  Previously we would always output state=loading and use
  $wgAllowUserJs (and others) to decide whether to output
  state=ready or makeResourceLoaderLink.

  Now, we no longer unconditionally output state=loading and
  simply always call makeResourceLoaderLink. That method takes
  care of checking whether modules are enabled and non-empty
  and returns state=ready when that is the case.

  This cleans up cases where the duplicated and incomplete logic
  in OutputPage thought the module was non-empty but turned out
  to be empty and thus would output both state=loading and later
  state=ready for the same module.

* Clean up documentation for makeResourceLoaderLink (inconsistent
  ordering of type hint and $var, and @return was missing the fact
  that the returned html can also contain <link>).

* makeResourceLoaderLink now returns an array of html and module
  states. This allows the consumer of this method to combine the
  states in 1 larger script tag on top of multiple
  makeResourceLoaderLink calls (e.g. one state script followed
  by multiple <script src=load.php>).
  This isn't to reduce html output, but to make sure we inform
  mw.loader about modules before the <script src=load.php>.
  If we were to mix/alternate the state script and load.php
  requests (which are blocking in html), it is possible for those
  scripts to request other modules. We need to prevent duplicate
  loading of modules we already know are going to be requested
  by the HTML output futher down.

* Removed spurious new line.

Example of change in HTML output:

* The output has been reduced from:
  - loader.state( site: loading, user: loading, user.groups: loading )
  - loader.load( .. )
  - <script src="load.php?modules=site ..">
  - loader.state( user: ready, user.groups: ready )

  to:
  - loader.state( site: loading, user: ready, user.groups: ready )
  - loader.load( .. )
  - <script src="load.php?modules=site ..">

Change-Id: I91754ce5fae3d05b4bfa7372372eba81ee2fc579

10 years agoMerge "Callers of ResourceLoader::getModule should check for null return"
jenkins-bot [Fri, 4 Apr 2014 00:54:54 +0000 (00:54 +0000)]
Merge "Callers of ResourceLoader::getModule should check for null return"

10 years agoCallers of ResourceLoader::getModule should check for null return
Ori Livneh [Thu, 3 Apr 2014 23:09:09 +0000 (16:09 -0700)]
Callers of ResourceLoader::getModule should check for null return

ResourceLoader::getModule returns null if cannot find a ResourceLoaderModule
instance or a module configuration array matching the requested name. Existing
callers of that method chain ResourceLoaderModule method calls to the return
value of ResourceLoader::getModule without bothering to check for a null
result. This patch makes the documentation for the method more explicit, and it
adds checks for the return value to existing calls of the method. In some
cases, it is possible to reason to that the call will succeed, on the
assumption that missing modules would have been filtered out by earlier
iterations through the modules array. But in the interest of robustness, it is
always good to check.

Bug: 63310
Change-Id: Ic32f1e61ffee0383f7a8761423099041e3b6b8cc

10 years agoUpdate OOjs UI to v0.1.0-pre (eaa1b7f06d)
James D. Forrester [Thu, 3 Apr 2014 23:56:26 +0000 (16:56 -0700)]
Update OOjs UI to v0.1.0-pre (eaa1b7f06d)

New changes:
468b1c8 Localisation updates from https://translatewiki.net.
3e2a5e1 Update OOjs to v1.0.9
eaa1b7f Add pressed state to option widgets and use instead of initializing items

Change-Id: I6e93d9ab0e4a926c09c5e08e3db045cff99d2098

10 years agoMerge "New API module, list=prefixsearch"
jenkins-bot [Thu, 3 Apr 2014 23:07:58 +0000 (23:07 +0000)]
Merge "New API module, list=prefixsearch"

10 years agoAdded per-wiki queue stats information
Aaron Schulz [Thu, 3 Apr 2014 00:25:14 +0000 (17:25 -0700)]
Added per-wiki queue stats information

Change-Id: I25f42408c9a7a368aa99f4ceb04214f188a74be6

10 years agoUse rgba() for gallery caption background instead of opacity
Brian Wolff [Sat, 1 Mar 2014 07:18:45 +0000 (03:18 -0400)]
Use rgba() for gallery caption background instead of opacity

Opacity applies to child elements, and can't be unset.

Change-Id: Id4b58ccf82cf3b6d23f67408c5311da0eb92fbce

10 years agoMerge "mediawiki.api: Refactor getToken and postWithToken methods"
jenkins-bot [Thu, 3 Apr 2014 17:41:19 +0000 (17:41 +0000)]
Merge "mediawiki.api: Refactor getToken and postWithToken methods"

10 years agoMerge "ApiFeedRecentChanges: Validate param target"
jenkins-bot [Thu, 3 Apr 2014 14:59:24 +0000 (14:59 +0000)]
Merge "ApiFeedRecentChanges: Validate param target"

10 years agoAdd a dot at the end of the deprecate messages
Fomafix [Thu, 3 Apr 2014 14:52:35 +0000 (14:52 +0000)]
Add a dot at the end of the deprecate messages

Change-Id: I73b4bc296051bf506683434de9bc7b56f3ff825f

10 years agoApiFeedRecentChanges: Validate param target
Niklas Laxström [Sat, 29 Mar 2014 16:00:18 +0000 (16:00 +0000)]
ApiFeedRecentChanges: Validate param target

Change-Id: I6933177d47c25d48b9b55d479afa4dedcc64299d

10 years agoMerge "mediawiki.html: Add missing @return documentation"
jenkins-bot [Thu, 3 Apr 2014 07:42:44 +0000 (07:42 +0000)]
Merge "mediawiki.html: Add missing @return documentation"

10 years agomediawiki.html: Add missing @return documentation
Timo Tijhof [Thu, 3 Apr 2014 01:05:13 +0000 (18:05 -0700)]
mediawiki.html: Add missing @return documentation

Change-Id: I63f12ee44aace6cf4f7762dd67244648b95d7301

10 years agoMerge "Update OOjs UI to v0.1.0-pre (8986c46d35)"
jenkins-bot [Thu, 3 Apr 2014 00:52:23 +0000 (00:52 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (8986c46d35)"

10 years agoAdapt signup form numbers to new Vector typography
S Page [Wed, 2 Apr 2014 23:25:22 +0000 (16:25 -0700)]
Adapt signup form numbers to new Vector typography

The .mw-number-text CSS was less specific than Vector's typography
styling of 'div#content h3'.  Match Vector's serif font stack.

Bug: 63450
Change-Id: I23041c356ad4356dcf085479721cb950a89b33d0

10 years agoUpdate OOjs to v1.0.9
James D. Forrester [Wed, 2 Apr 2014 21:40:24 +0000 (14:40 -0700)]
Update OOjs to v1.0.9

Code:
 https://oojs.github.io/releases/oojs-1.0.9.js

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fcore.git/v1.0.9/History.md

Change-Id: Ic1fea7dd3a07af32a29511191c45da90bc306b17

10 years agomediawiki.api: Refactor getToken and postWithToken methods
Timo Tijhof [Wed, 5 Feb 2014 20:54:20 +0000 (12:54 -0800)]
mediawiki.api: Refactor getToken and postWithToken methods

* getToken now keeps promise objects around so that it can:
  1) Re-use already retrieved tokens instead of always making
     a new request (this was previously done locally inside
     one of the callers, namely #postWithToken).
  2) By storing promises instead of the tokens, we can re-use
     it asynchronously. While it is unlikely that one module
     calls getToken twice in a short period amount of time,
     it is quite likely that two separate modules (both using
     mediawiki.api) request similar tokens from the API at the
     same time (e.g. at page load).

  This cache has to be additionally keyed by API endpoint since
  mw.Api is a generic class that can be (and in practice, is)
  instantied for foreign wiki as well.

* Initialise the cache with pre-resolved promises for values
  from user.tokens from the local wiki (embedded in the page
  output, no point in requesting these again from the API).

* postWithToken no longer has its own token cache, it now
  unconditionally uses getToken.

* postWithToken already took care of clearing the token cache when
  the server responds with a 'badtoken' error. However, it then
  changed the request to delete the 'token' query and try again
  without any token. That seems rather silly. Change this to
  instead have getToken fetch a fresh one and re-submit with that.

* Add unit tests.

Bug: 34733
Change-Id: I5c25ae5ea4bf3336899bc60fd94ec3b0948050e1

10 years agoBetter memory reporting when running in HHVM
Erik Bernhardson [Wed, 2 Apr 2014 20:22:33 +0000 (13:22 -0700)]
Better memory reporting when running in HHVM

Change-Id: If06b7b3ff4dc7ba8b873361f7878f8abb718f571

10 years agoVisualize profile output in debug toolbar
Erik Bernhardson [Sat, 28 Dec 2013 22:08:32 +0000 (14:08 -0800)]
Visualize profile output in debug toolbar

This adds a new pane for the debug toolbar labeled Profiler.  It groups
together events sent to wfProfileIn/Out and draws a timeline giving a
visual representation of what the page was doing at a particular point
in time. Hovering over a timeline brings up a flyout about the contained
events.

Depends on I08854d80f57286129f19cb14566f84ed3c7fa21c for proper positioning
of the flyout.

Change-Id: I23a0ce4137abcd74ad87967fb263214c08cb9685

10 years agoMerge "Made BagOStuff fail fast in cas/lock on certain errors"
jenkins-bot [Wed, 2 Apr 2014 21:50:27 +0000 (21:50 +0000)]
Merge "Made BagOStuff fail fast in cas/lock on certain errors"

10 years agoMerge "mediawiki.ui: Do not depend on divs being present inside .mw-ui-vform"
jenkins-bot [Wed, 2 Apr 2014 21:23:29 +0000 (21:23 +0000)]
Merge "mediawiki.ui: Do not depend on divs being present inside .mw-ui-vform"

10 years agoMerge "Fix language statistics after messages have been moved to JSON"
jenkins-bot [Wed, 2 Apr 2014 19:20:54 +0000 (19:20 +0000)]
Merge "Fix language statistics after messages have been moved to JSON"

10 years agoRespect sizing from user-supplied class
Erik Bernhardson [Mon, 30 Dec 2013 20:03:50 +0000 (12:03 -0800)]
Respect sizing from user-supplied class

A user-supplied class provided to tipsy that affects the
height or width of the flyout breaks tipsys positioning.
Adjust tipsy to apply the user-supplied class earlier so
its css rules are taken into account during positioning.

Also clean up trailing whitespace.

Change-Id: I08854d80f57286129f19cb14566f84ed3c7fa21c

10 years agoMerge "Cleaning up function definitions in Language.php"
jenkins-bot [Wed, 2 Apr 2014 18:29:40 +0000 (18:29 +0000)]
Merge "Cleaning up function definitions in Language.php"

10 years agoCleaning up function definitions in Language.php
kaldari [Tue, 1 Apr 2014 00:31:06 +0000 (17:31 -0700)]
Cleaning up function definitions in Language.php

Some of these were confusing or incorrect.

Change-Id: I2dd02669a7cf9d8b92e2d5c1b86ab8c5e0cbf6bd

10 years agoUpdate jquery.fullscreen to newer version (fix IE11 support)
Gilles Dubuc [Tue, 1 Apr 2014 06:49:37 +0000 (08:49 +0200)]
Update jquery.fullscreen to newer version (fix IE11 support)

jquery.fullscreen wouldn't work properly in IE11. This commit fixes the
issues that were preventing it from working in that browser.

Source
* https://github.com/theopolisme/jquery-fullscreen/blob/9f8f97d127/jquery.fullscreen.js

Change log
* https://github.com/theopolisme/jquery-fullscreen/compare/v2.0.0...9f8f97d127

Change-Id: I6cb853f05ef9a464990a785827074c78ac61ac7f

10 years agoRe-organized PoolCounter files
Aaron Schulz [Wed, 2 Apr 2014 18:08:22 +0000 (11:08 -0700)]
Re-organized PoolCounter files

* No actual changes to the classes

Change-Id: I4e35a2b097e4bc72315688d0390d3f5c4c1ca4ed

10 years agoFix language statistics after messages have been moved to JSON
Alexandre Emsenhuber [Wed, 2 Apr 2014 18:05:51 +0000 (20:05 +0200)]
Fix language statistics after messages have been moved to JSON

Statistics are now showing always no messages since languages.inc
does not manage to load the JSON messages.

Had to make LocalisationCache::readJSONFile() public so that it can
be used in  languages.inc; since all methods from LocalisationCache
return localisations merged with fallbacks, which is not what we
want here.

Fix for I918cfdc46c (0dd91d5).

Change-Id: Ib52287db618b9d072e847130070d165a3e7ae44b

10 years agoMerge "Adding debugging for bug 62241"
jenkins-bot [Wed, 2 Apr 2014 17:26:33 +0000 (17:26 +0000)]
Merge "Adding debugging for bug 62241"

10 years agoRename $p to $parts in Special:Search
aude [Wed, 2 Apr 2014 15:37:25 +0000 (17:37 +0200)]
Rename $p to $parts in Special:Search

Change-Id: I794fca2d24fcebb59067d5e619b68d86cbaa2a8f

10 years agoFix variable naming in SpecialSearch, $t => $title
aude [Wed, 2 Apr 2014 15:31:06 +0000 (17:31 +0200)]
Fix variable naming in SpecialSearch, $t => $title

Change-Id: I70ec1e147f99a73bc0b12511669ab5a799018695

10 years agoNew API module, list=prefixsearch
Max Semenik [Tue, 1 Apr 2014 22:35:20 +0000 (02:35 +0400)]
New API module, list=prefixsearch

It's pretty much like action=opensearch but can be used as a generator
which can be handy when you need to retrieve both the list of pages and
some information about them.

Change-Id: Iaffe30a0f7402e1316c4885a805692a34bbe1a6a

10 years agoRename $t to $title in SpecialSearch
aude [Wed, 2 Apr 2014 14:54:52 +0000 (16:54 +0200)]
Rename $t to $title in SpecialSearch

$title is a bit more informative than $t

Change-Id: I66deeb6672dc45161e0fcc30988bcc1efcb93f56

10 years agoi18n: Fix the parser function name
shirayuki [Wed, 2 Apr 2014 11:51:37 +0000 (20:51 +0900)]
i18n: Fix the parser function name

- Fix the parser function name "#ifexist"
- Put the parser function in code tags

Spotted by Siebrand
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Expensive-parserfunction-category-desc/en

Change-Id: If29585ceda7f409c668804ff13c821b4eece95fd

10 years agoAdd punctuation to "pool-servererror"
Siebrand Mazeland [Wed, 2 Apr 2014 09:24:05 +0000 (11:24 +0200)]
Add punctuation to "pool-servererror"

Follow-up on eb03cf3f7dda4.

Change-Id: Iee1fd4ca9f4baad0d03998dbc1ea1e24f2210ba7

10 years agoMerge "Put LESS test back into extension suite in XML"
jenkins-bot [Wed, 2 Apr 2014 04:37:46 +0000 (04:37 +0000)]
Merge "Put LESS test back into extension suite in XML"

10 years agoUpdate OOjs UI to v0.1.0-pre (8986c46d35)
James D. Forrester [Wed, 2 Apr 2014 02:33:44 +0000 (19:33 -0700)]
Update OOjs UI to v0.1.0-pre (8986c46d35)

New changes:
735cebc Filter calls to selectItem and highlightItem on SelectWidget
897b30f Return null in Element#getDocument
b5ede88 Add Element#isElementAttached
68df19f Disable tool groups when all its tools are disabled
1aaa507 Grunt-watch less files
e4dd7b2 build: Update devDependencies
64d6c32 Localisation updates from https://translatewiki.net.
b5c6db5 Localisation updates from https://translatewiki.net.
b9460cb apex/button: Reset border-color of disabled button when not hovered
32c4799 Localisation updates from https://translatewiki.net.
674165e Enable jscs for OOjs UI repo
d98b338 grunt: Add messageDocumentation task to ensure each 'en' message has a 'qqq'
d421dd6 demos/tools: Indentation fix

Change-Id: Ic9b7ff01fe066eb5cba6a0fd0fc515ff3c62b66a

10 years agoAdded a Redis pool counter class
Aaron Schulz [Sat, 15 Mar 2014 21:17:16 +0000 (14:17 -0700)]
Added a Redis pool counter class

* This should be easier to set up for typical installs

Change-Id: Icb4a7481b944fa0818c4635e3edbe12d08af9924

10 years agovector: Remove redundant margin-top reset
Timo Tijhof [Tue, 1 Apr 2014 19:47:32 +0000 (12:47 -0700)]
vector: Remove redundant margin-top reset

There is nothing setting this to anything else. The only other
preceeding relevant rule inherited before this is "h1, h2, h3 .."
which sets "margin: 0;" already.

Change-Id: If6531221891ae3c7eb792c5bdc930ddaaf613f52

10 years agoPut LESS test back into extension suite in XML
Matthew Flaschen [Tue, 1 Apr 2014 21:27:35 +0000 (17:27 -0400)]
Put LESS test back into extension suite in XML

Followup to 13f3e21e9c7ddcef0d59982aeb3bb4b9e240e5f4

Change-Id: I1a15a0d8aba05b774f072673787b712f6ba97fcd

10 years agoMigrate translations for core to JSON format
Siebrand Mazeland [Tue, 1 Apr 2014 13:36:07 +0000 (15:36 +0200)]
Migrate translations for core to JSON format

Largest patch set in the history of MediaWiki!

Change-Id: I918cfdc46c099017ca3622d1bcbbdd30c4fd00f6

10 years agoPreparations for migrating core to use JSON based i18n
Siebrand Mazeland [Tue, 1 Apr 2014 10:32:00 +0000 (12:32 +0200)]
Preparations for migrating core to use JSON based i18n

LocalisationCache and Language have to take the JSON files into account
in deciding if a language is present or not.

Standardizing language validity checking with isSupportedLanguage
and isValidBuiltInCode.

Co-Authored-By: Niklas Laxström <niklas.laxstrom@gmail.com>
Co-Authored-By: Siebrand Mazeland <siebrand@kitano.nl>
Change-Id: I35bbb3a7a145fc48d14fff620407dff5ecfdd4fc

10 years agoMade BagOStuff fail fast in cas/lock on certain errors
Aaron Schulz [Tue, 1 Apr 2014 20:25:42 +0000 (13:25 -0700)]
Made BagOStuff fail fast in cas/lock on certain errors

* This avoids wasting time waiting on down servers

bug: 63058
Change-Id: Ia78a2036ffa7a20102ec9e8bf941cacb7fa63435

10 years agoSend profiled items under the correct name
Alexandre Emsenhuber [Tue, 1 Apr 2014 12:52:33 +0000 (14:52 +0200)]
Send profiled items under the correct name

Fix for Ie8481a2e13 (811a084). The "-total" item
was send under the name "close" since it's ended
by close().

Bug: 63347
Change-Id: Iad91f1d12303e5cfb92c111f79c0ce5a8187f53b

10 years agoMerge "Include parsed revision ID in parser cache"
jenkins-bot [Tue, 1 Apr 2014 16:49:56 +0000 (16:49 +0000)]
Merge "Include parsed revision ID in parser cache"

10 years agoNew Hook rc/watchlist hook ChangesListInitRows
Erik Bernhardson [Mon, 3 Mar 2014 21:26:54 +0000 (13:26 -0800)]
New Hook rc/watchlist hook ChangesListInitRows

An extension hooking into recent changes may need to load additional
data that did not fit into the recentchanges table.  This hook gives
extensions an opportunity to see the full result prior to rendering
and batch load where approprite rather than loading piecemeal during
the render process.

This is implemented as an optional method called by the ChangesList
consumer, since the ChangesList never sees the full result set. Hook
implementers must be able to work regardless of the hook being called,
they just have the oportunity to be more efficient when it is called.

Change-Id: If74ae600ffba949364dd381dd3d466cbbaa27286

10 years agoInclude parsed revision ID in parser cache
Brad Jorsch [Tue, 1 Apr 2014 14:52:24 +0000 (10:52 -0400)]
Include parsed revision ID in parser cache

One theory for what's behind bug 46014 is that the vandal submits the
edit, then someone (maybe the vandal) gets into the branch of
Article::view that uses PoolWorkArticleView, then ClueBot comes along
and reverts before the PoolWorkArticleView actually executes. Once that
PoolWorkArticleView actually does execute, it overwrites the parser
cache entry from ClueBot's revert with the one from the old edit.

To detect this sort of thing, let's include the revision id in the
parser cache entry and consider it expired if that doesn't match. Which
makes sense to do anyway.

And for good measure, let's have PoolWorkArticleView not save to the
parser cache if !$isCurrent.

Bug: 46014
Change-Id: Ifcc4d2f67f3b77f990eb2fa45417a25bd6c7b790

10 years agoMerge "i18n: add "Special:MyLanguage/""
jenkins-bot [Tue, 1 Apr 2014 12:09:53 +0000 (12:09 +0000)]
Merge "i18n: add "Special:MyLanguage/""

10 years agoMerge "Fix order of expected, actual in some tests"
jenkins-bot [Tue, 1 Apr 2014 12:04:45 +0000 (12:04 +0000)]
Merge "Fix order of expected, actual in some tests"

10 years agoFix order of expected, actual in some tests
Niklas Laxström [Tue, 1 Apr 2014 11:59:46 +0000 (11:59 +0000)]
Fix order of expected, actual in some tests

Change-Id: Iabd431517586c06d411a0894e5d3621a4c4ddf05

10 years agoi18n: add "Special:MyLanguage/"
shirayuki [Mon, 31 Mar 2014 10:42:39 +0000 (19:42 +0900)]
i18n: add "Special:MyLanguage/"

Change-Id: I791399e1a9bdff0bc672fc6ae69f4c2374690636

10 years agoAdd newline at the end of converted json files
Niklas Laxström [Tue, 1 Apr 2014 08:03:05 +0000 (08:03 +0000)]
Add newline at the end of converted json files

1) Some text editors add missing newline at the end of the file
automatically.
2) It's generally a nice thing to do to avoid messing up display
for example when cat'ing a file

Change-Id: Icf636721c4edcf4ae706c9a346fe36233928cae8

10 years agoSpeed up LocalFile locking behavior
Aaron Schulz [Mon, 31 Mar 2014 20:36:14 +0000 (13:36 -0700)]
Speed up LocalFile locking behavior

* Lowered the lock() timeout
* Wrap the destination DB write with memcached locks for move
  ops since it is easier to control that lock timeout than the
  DB lock timeouts.
* Cleanup locks in the destructor (e.g. on exceptions). Other
  process can pile up more if locks have to expire.

bug: 63058
Change-Id: I38b28d81ec96daa80ece2354db284a614289ba0b

10 years agoAdjust debug log for caches being used
Antoine Musso [Tue, 1 Apr 2014 09:02:03 +0000 (11:02 +0200)]
Adjust debug log for caches being used

I always found out the debug message listing the cache being in use to
be slightly confusing:

    MemcachedPeclBagOStuff[main] MemcachedPeclBagOStuff[message]
    MemcachedPhpBagOStuff[parser]

Swap the class name and identifier to output:

    main: MemcachedPeclBagOStuff, message: MemcachedPeclBagOStuff,
    parser: MemcachedPhpBagOStuff

Change-Id: If069dec70eb31ed2dafe0e88ec4d4653005ff7e3

10 years agoMerge "Add a LESS test suite"
jenkins-bot [Tue, 1 Apr 2014 03:14:43 +0000 (03:14 +0000)]
Merge "Add a LESS test suite"

10 years agoAdd a LESS test suite
Sam Smith [Mon, 17 Mar 2014 13:24:52 +0000 (13:24 +0000)]
Add a LESS test suite

Add the LessFileCompilationTest test case class, which represents the
validation of a LESS file by compilation.

Add the LessTestSuite test suite, which tests all LESS files registered
with the ResourceLoader, and use this to rewrite the checkLess.php
maintenance script.

Bug: 54665
Change-Id: Iedb8dc31e4817d8b4e40b655cf9b8fb092979e90

10 years agoMerge "mediawiki.log: Fix unknown method "apply" error in IE9 and below"
jenkins-bot [Mon, 31 Mar 2014 22:24:59 +0000 (22:24 +0000)]
Merge "mediawiki.log: Fix unknown method "apply" error in IE9 and below"

10 years agomediawiki.log: Fix unknown method "apply" error in IE9 and below
Gilles Dubuc [Mon, 31 Mar 2014 13:57:05 +0000 (15:57 +0200)]
mediawiki.log: Fix unknown method "apply" error in IE9 and below

In IE < 10, the console.log function is implemented as a non-standard
host function (not inheriting the regular Function prototype) which
doesn't provide an "apply" method.

Change-Id: I6ecf933589ec430ff4d1748a5f3c511b692e3b9a

10 years agoAdding debugging for bug 62241
kaldari [Mon, 31 Mar 2014 20:50:03 +0000 (13:50 -0700)]
Adding debugging for bug 62241

In the event of a bad filename warning record the relavent variables
so that we can figure out what is causing the failure.

See also change I532f8ee7c7455e43862b0204a7fff23d6792412e

Bug: 62241
Change-Id: If5d8b9e7f34c0f9bd09684d7dada8fafd7f5f7c2

10 years agoMerge "MWException: Fix sitename appearing twice in <title>"
jenkins-bot [Mon, 31 Mar 2014 20:56:39 +0000 (20:56 +0000)]
Merge "MWException: Fix sitename appearing twice in <title>"

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

Change-Id: I54a8e52634c1e36fadd7a84f236747765fc98684

10 years agoMWException: Fix sitename appearing twice in <title>
Timo Tijhof [Fri, 14 Mar 2014 05:02:45 +0000 (06:02 +0100)]
MWException: Fix sitename appearing twice in <title>

The MWException::getPageTitle method is wrapping the page title
in the 'pagetitle' ($1 - sitename) message, but OutputPage does
this as well when outputing <title>.

OutputPage::prepareErrorPage takes the first parameter as page
title (unwrapped, appears in <h1>,) and the second optional one
is for <title>, which (if omitted, like before) results in
pagetitle being applied by OutputPage.

Now that we specify them separately, this also removes the
sitename from the <h1> on the page, which always looked weird.

It also fixes DBQueryError (extends MWException) where previously
no sitename was added, it just returns 'databaseerror' from
its DBQueryError::getPageTitle() method.

Change-Id: I85d65d89e72b4497a050f440524ff6f959518b88

10 years agoMerge "Adjust margin between h2 and special page table element"
jenkins-bot [Mon, 31 Mar 2014 18:23:06 +0000 (18:23 +0000)]
Merge "Adjust margin between h2 and special page table element"

10 years agoAdjust margin between h2 and special page table element
aude [Mon, 31 Mar 2014 18:01:28 +0000 (20:01 +0200)]
Adjust margin between h2 and special page table element

With the recent typography update, this margin is much too small.

.mw-specialpages-table applies "margin-top: -1em;" style which
doesn't fit with the vector styles. So this provides an override
for vector.

Bug: 63312
Change-Id: I18a711802a18b5976cf749d76138a1a6f59e0a4e

10 years agoMerge "API: Allow for format modules that cannot handle errors"
jenkins-bot [Mon, 31 Mar 2014 17:48:47 +0000 (17:48 +0000)]
Merge "API: Allow for format modules that cannot handle errors"

10 years agoMerge "Expose thumbnail file to extensions"
jenkins-bot [Mon, 31 Mar 2014 17:13:30 +0000 (17:13 +0000)]
Merge "Expose thumbnail file to extensions"

10 years agoMerge "Improve handling of uncommitted DB txns with "uncaught" exceptions"
jenkins-bot [Mon, 31 Mar 2014 16:30:33 +0000 (16:30 +0000)]
Merge "Improve handling of uncommitted DB txns with "uncaught" exceptions"

10 years agoMerge "Provide RequestContext from fixDoubleRedirects"
jenkins-bot [Mon, 31 Mar 2014 16:21:21 +0000 (16:21 +0000)]
Merge "Provide RequestContext from fixDoubleRedirects"

10 years agoMerge "Send the profiler output to the 'profileoutput' log group"
jenkins-bot [Mon, 31 Mar 2014 16:16:22 +0000 (16:16 +0000)]
Merge "Send the profiler output to the 'profileoutput' log group"

10 years agoMerge "Add missing line breaks to wfDebug() calls"
jenkins-bot [Mon, 31 Mar 2014 11:50:41 +0000 (11:50 +0000)]
Merge "Add missing line breaks to wfDebug() calls"

10 years agoMerge "Update IRCLineURL hook to include RecentChange object"
jenkins-bot [Mon, 31 Mar 2014 10:24:30 +0000 (10:24 +0000)]
Merge "Update IRCLineURL hook to include RecentChange object"

10 years agoFollow-up I7d4bb90: Message tweak + add code comment
Brian Wolff [Mon, 31 Mar 2014 01:04:08 +0000 (22:04 -0300)]
Follow-up I7d4bb90: Message tweak + add code comment

When I was saying it in my head, "No description available."
sounded better to me than "Description not available", although
perhaps that's just me.

Add a code comment to Parser::addTrackingCategory telling people
to register their tracking categories.

Change-Id: I17bb0cf4b3118dda8647e0607588685c2b5cdb86

10 years agoMerge "Implement listing for tracking categories"
jenkins-bot [Sun, 30 Mar 2014 22:44:08 +0000 (22:44 +0000)]
Merge "Implement listing for tracking categories"

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

Change-Id: Ifc65d7c3844bfaabd97c803b2c72dc8a49cdcc65

10 years agoMerge "vector: Style .mw-editsection-like in addition to .mw-editsection"
jenkins-bot [Sat, 29 Mar 2014 21:52:31 +0000 (21:52 +0000)]
Merge "vector: Style .mw-editsection-like in addition to .mw-editsection"

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

Change-Id: I6ac7ce50b6204e9e9d63695c9532d33796d4cc7d

10 years agoMerge "commonElements: Move sup, sub styling from Vector's CSS to common styles"
TheDJ [Sat, 29 Mar 2014 19:59:09 +0000 (19:59 +0000)]
Merge "commonElements: Move sup, sub styling from Vector's CSS to common styles"

10 years agoSend the localisation store debug message to the "caches" log group
Alexandre Emsenhuber [Sat, 29 Mar 2014 16:42:08 +0000 (17:42 +0100)]
Send the localisation store debug message to the "caches" log group

Rationale is the same as for Ifb6dc2666f (96b04ce): ability to
separate it form the main log group, as it always has a predicitible
value.

Change-Id: I0ac5baf5ab8fbe4d2025ccf6439b883dc82e9d5b

10 years agocommonElements: Move sup, sub styling from Vector's CSS to common styles
Bartosz Dziewoński [Sat, 29 Mar 2014 15:08:18 +0000 (16:08 +0100)]
commonElements: Move sup, sub styling from Vector's CSS to common styles

This really should be a basic style, not limited to one skin. All
Wikimedia wikis which used this hack seem to have it on their
common.css, not vector.css.

Follow-up to Ic5ba8363.

Bug: 49965
Change-Id: Ie98f8b57a71b703fbba19c201c13edef3f6adc55

10 years agovector: Style .mw-editsection-like in addition to .mw-editsection
Bartosz Dziewoński [Sat, 29 Mar 2014 14:46:14 +0000 (15:46 +0100)]
vector: Style .mw-editsection-like in addition to .mw-editsection

Follow-up to Ic5ba8363.

Change-Id: Ia60281595b5903474b660b776bbbe8f2c3819d3f

10 years agomediawiki.ui: Do not depend on divs being present inside .mw-ui-vform
Bartosz Dziewoński [Fri, 28 Mar 2014 20:43:22 +0000 (21:43 +0100)]
mediawiki.ui: Do not depend on divs being present inside .mw-ui-vform

This breaks forms that try to use semantic elements like <section>,
e.g. the user creation form here in core.

Bug: 63233
Change-Id: Icb4a6d1d74490808b2fd1777d7dbe812e66bd206

10 years agoAdd missing line breaks to wfDebug() calls
Alexandre Emsenhuber [Sat, 29 Mar 2014 10:52:07 +0000 (11:52 +0100)]
Add missing line breaks to wfDebug() calls

Also removed true as second parameter to it from CloneDatabase.php
since it is the default value of that parameter.

Change-Id: I727ebae2bd4df0e26019985ce8c7ce73381c5642

10 years agoImplement listing for tracking categories
unknown [Sat, 8 Feb 2014 23:29:53 +0000 (04:59 +0530)]
Implement listing for tracking categories

Special page to implement list of Tracking Categories. Global
$wgTrackingCategories added containing list of tracking categories

Bug: 60333
Change-Id: I7d4bb90622a6bae60845942ef93cfe64f229d2d2

10 years agoi18n: Give grep a chance to find the usages
shirayuki [Sat, 29 Mar 2014 08:16:28 +0000 (17:16 +0900)]
i18n: Give grep a chance to find the usages

Change-Id: Iac0d7cba8633fedd420c6b8e21999e94b4d438a2