lhc/web/wiklou.git
10 years agoFix copy-paste error in wfIsConfiguredProxy()
Kevin Israel [Fri, 20 Jun 2014 05:25:41 +0000 (01:25 -0400)]
Fix copy-paste error in wfIsConfiguredProxy()

It should call IP::isConfiguredProxy(), not IP::isTrustedProxy().

Follows-up e323bc33934d.

Change-Id: I3caf8261f6058aa1a243c055b746b2fa61b1bf49

10 years agoMerge "Some doc fixes to MediaHandler. No code changes"
jenkins-bot [Fri, 20 Jun 2014 00:51:35 +0000 (00:51 +0000)]
Merge "Some doc fixes to MediaHandler. No code changes"

10 years agoSome doc fixes to MediaHandler. No code changes
Brian Wolff [Fri, 20 Jun 2014 00:16:28 +0000 (21:16 -0300)]
Some doc fixes to MediaHandler. No code changes

Change-Id: I2d79fce7aa55b9a0f2988c09a55594db4e8849f1

10 years agoMerge "Travis CI: Drop 5.3 as a build target"
jenkins-bot [Fri, 20 Jun 2014 00:20:10 +0000 (00:20 +0000)]
Merge "Travis CI: Drop 5.3 as a build target"

10 years agoMerge "Remove use of strencode() in buildLike()"
jenkins-bot [Fri, 20 Jun 2014 00:19:52 +0000 (00:19 +0000)]
Merge "Remove use of strencode() in buildLike()"

10 years agoMerge "ApiExpandTemplates: Start parse before creating frame"
jenkins-bot [Fri, 20 Jun 2014 00:02:58 +0000 (00:02 +0000)]
Merge "ApiExpandTemplates: Start parse before creating frame"

10 years agoTravis CI: Drop 5.3 as a build target
Ori Livneh [Thu, 19 Jun 2014 23:29:56 +0000 (16:29 -0700)]
Travis CI: Drop 5.3 as a build target

On second thought, I'd really much rather only target hhvm-nightly for now. On
the one hand, this is monopolizing / hijacking .travis.yml to a specific
Wikimedia project (HHVM deployment), but on the other hand, it's a big enough
project, so I'd like to ask you (dear reviewer) to consider it, as a short-term
arrangement. There are things like IRC notifications, overall build status,
etc. that are scoped to all configured builds and having 5.3 in there adds
noise. It also sows confusion about where we run our tests. People should
really turn to Jenkins for 5.3 testing. I think we're in the final couple of
months of hardcore sprinting on HHVM. I wouldn't mind opening this up after.

Change-Id: I0131667135ef3ca75d01ac5645dbc89bda306d98

10 years agoUpdate Travis CI build configuration
Ori Livneh [Thu, 19 Jun 2014 03:22:26 +0000 (20:22 -0700)]
Update Travis CI build configuration

* Target 'hhvm-nightly', not 'hhvm'.
* Don't target Zend PHP versions other than 5.3.
  There is value in targetting different versions of the PHP interpreter, but
  in the short term there is more benefit to be had from targetting just HHVM
  and PHP 5.3 (results are produced more quickly and are easier to interpret).
* Don't update submodules manually; Travis does that by default if there is a
  .gitmodules file in the repository root.
  <http://docs.travis-ci.com/user/build-configuration/#Git-Submodules>
* Update Composer before installing PHPUnit.
* Make the wiki name and dbname agree.
* Allow Composer to install whatever is specified in composer.json, rather than
  hard-coding an install of PHPUnit 3.7 (3.7 is incompatible with HHVM).
* Ping freenode#mediawiki-core with the test results, but only when the build
  status changes. We can turn it off if it gets annoying.
* Don't hack include_path or date.timezone ini settings; those were kludges
  needed to get HHVM to run at all at, but they're no longer needed.
* Invoke hhvm via 'php'; Travis ensures that it points to the target
  interpreter.

Verified on my personal fork:
 <https://travis-ci.org/atdt/mediawiki-core/builds/27983653>

Change-Id: I442b40e0d3e31d3cbd963e1219578842f4564004

10 years agoMerge "Made pool counter better handled nested calls"
jenkins-bot [Thu, 19 Jun 2014 21:49:28 +0000 (21:49 +0000)]
Merge "Made pool counter better handled nested calls"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 19 Jun 2014 19:17:52 +0000 (19:17 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I3ee8d9c83834b69ff919de0a9fcfc7d96375fc77

10 years agoMake RECOVER_ORIG preserve extension tags
Jackmcbarn [Thu, 3 Apr 2014 03:52:52 +0000 (23:52 -0400)]
Make RECOVER_ORIG preserve extension tags

Add PPFrame::NO_TAGS, set by PPFrame::RECOVER_ORIG, to preserve extension
tags rather than expanding them.

Bug: 22683
Change-Id: I427333a20d32eb711a7b5d5ac8b780ef89c752a1

10 years agoMerge "filebackend: Avoid using popen() when "parallelize" is disabled"
jenkins-bot [Thu, 19 Jun 2014 17:56:06 +0000 (17:56 +0000)]
Merge "filebackend: Avoid using popen() when "parallelize" is disabled"

10 years agoMerge "mediawiki.page.image.pagination: Clean up, optimise and fix various bugs"
jenkins-bot [Thu, 19 Jun 2014 14:21:51 +0000 (14:21 +0000)]
Merge "mediawiki.page.image.pagination: Clean up, optimise and fix various bugs"

10 years agomediawiki.page.image.pagination: Clean up, optimise and fix various bugs
Timo Tijhof [Tue, 17 Jun 2014 19:16:46 +0000 (21:16 +0200)]
mediawiki.page.image.pagination: Clean up, optimise and fix various bugs

Follows-up 427b0e15e77f39.

* Remove comment stating the obvious (initialize variable).

* Unset 'xhr' variable in the success handler. This allows it to
  be freed from memory, and prevents us from uselessly trying to
  abort an already finished request.

* Rename 'xhr' to 'jqXhr' as it is not an xhr.

* Use the Promise of jQuery.ajax instead of the long-deprecated
  callback option 'success'.

* Rephrase comment stating that jQuery.load is used (which is
  not true).

* Don't re-query 'table.multipageimage' multiple times. Instead
  query it from the document once and cache it.

* Remove useless 'window.history' check. This is not a new global
  in HTML5. The 'history' global, infamous from history.go() and
  history.back(), has been a part of the web for a very long time.
  We can safely depend on them, just as we depend on 'location',
  'navigator' and 'document'.

* Add an identifier to the history pop-state to prevent an
  exception when dealing with the state object of another
  application. Lots of gadgets use the History API these days
  (as well as extensions like VisualEditor and MultimediaViewer).

* Don't store the location.href inside the pop state data. This
  is not needed because it is already stored by the browser
  natively. A history event contains a url, page title and
  custom data stored as JSON. There is no need to store the url
  again in the custom data.

* Despite the width/height transferring from the old content
  to the spinner container, the scroll position still jumped
  because it wasn't accounting for margin, padding and border.
  Use outerHeight() instead of height().

* Avoid using the DOM to store and retrieve information. Use
  application state instead of a DOM query to know whether we
  have a spinner already. This increases performance but also
  avoids false positives where (unlikely) other similar elements
  and/or spinners from a different script are on the page.

* Properly replace the entire table contents() instead of just
  dropping the <tr> straight into the emptied <table>. This way
  the script makes no assumptions about whether there is a
  caption/thead/tbody or multiple rows etc. Plus it saves another
  recursive DOM query (the one for "tr"). And fixes a potential
  bug if there are nested tables (since it was doing a recursive
  query).

Change-Id: I8b64a0860b73a5dcd8051b5e7a1fcb65107228a6

10 years agoMerge "Delete sr.json, it blocks messages from sr-ec"
jenkins-bot [Thu, 19 Jun 2014 13:55:17 +0000 (13:55 +0000)]
Merge "Delete sr.json, it blocks messages from sr-ec"

10 years agoMerge "Clarify fileexists-extension message"
jenkins-bot [Thu, 19 Jun 2014 12:16:26 +0000 (12:16 +0000)]
Merge "Clarify fileexists-extension message"

10 years agoMerge "Add macronless namespace aliases for Old English"
jenkins-bot [Thu, 19 Jun 2014 12:15:07 +0000 (12:15 +0000)]
Merge "Add macronless namespace aliases for Old English"

10 years agoMerge "Actually define jMY date format for Arab"
jenkins-bot [Thu, 19 Jun 2014 10:39:21 +0000 (10:39 +0000)]
Merge "Actually define jMY date format for Arab"

10 years agoAllow using wildcards for minor type in Special:MIMESearch
Brian Wolff [Mon, 9 Jun 2014 05:05:17 +0000 (02:05 -0300)]
Allow using wildcards for minor type in Special:MIMESearch

e.g. Allow [[Special:MIMESearch/application/*]].

Change-Id: Ic098b10a64e3346d58c94f2dbfbb552dd809e93d

10 years agoMake CloneDatabase error out on shared tables.
Brian Wolff [Thu, 22 May 2014 21:36:40 +0000 (18:36 -0300)]
Make CloneDatabase error out on shared tables.

Due to the way prefixes are handled, this doesn't work properly.

Make it quit early to prevent confusion. I don't think there's
many people who need shared table support, so I don't know if
its worth the effort to actually fix.

Bug: 65654
Change-Id: I6cd701998fc9066d8c7a4fc86d93a4282cc7f9bd

10 years agoFixes to Special:TrackingCategories
umherirrender [Thu, 17 Apr 2014 10:34:20 +0000 (12:34 +0200)]
Fixes to Special:TrackingCategories

- Message::isDisabled is using the unparsed message text, so this is
always true and not false when a #switch will return '-'.
Using a compare against '-', the same as in
Parser::addTrackingCategory.
- Title::makeTitleSafe can return null, check that
- Add 'trackingcategories-disabled' when array is empty,
this can happen when a '{{' is given, but no categories was found

Change-Id: I88322512db5c4baedc5c571ce9ccbcd0caebb61d

10 years agoMake Special:TrackingCategories fully detect namespace switching
Brian Wolff [Wed, 9 Apr 2014 01:55:18 +0000 (22:55 -0300)]
Make Special:TrackingCategories fully detect namespace switching

Special:TrackingCategories has special logic to detect people
using {{NAMESPACE}} in their tracking category messages, and
handle it. Make it detect any '{{' to deal with localized
variants. This will make it work for
[[commons:MediaWiki:Broken-file-category]]

Change-Id: Ibac0decc5992d30ae536efc91138ad9b42a569e9

10 years agoqunit.completenessTest: Correct walkTheObject behaviour wrt breadcrumb
Adrian Lang [Fri, 28 Mar 2014 09:11:07 +0000 (10:11 +0100)]
qunit.completenessTest: Correct walkTheObject behaviour wrt breadcrumb

The function documentation states that currName is not included in
parentPathArray, although it actually is. This change makes the
implementation match the documentated behavior.

Change-Id: I6e44ad84de2e31320309438b8aa09ec929d15e8e

10 years agoUpdate OOjs UI to v0.1.0-pre (7a0e222a75)
James D. Forrester [Wed, 18 Jun 2014 23:19:20 +0000 (16:19 -0700)]
Update OOjs UI to v0.1.0-pre (7a0e222a75)

New changes:
ef2f66f Element: Add unit tests for focusin/focusout hack
54b09fd Element: Remove focusin/focusout hack in onDOMEvent
91ba7d3 Accessibility: Set role=dialog on dialogs
0447150 Accessibility: Restore element focus when a window closes
715f1ef Localisation updates from https://translatewiki.net.
9f343c0 Localisation updates from https://translatewiki.net.
6be64bc Tidy up SVG sources and fix pixel snapping
7a0e222 Fix scrollIntoView() in the case where the scrollable container is the <body>

Change-Id: I9d86a238546acc867f20aeb45b102c7499108c89

10 years agoUpdate Language::userAdjust() $ts parameter hint to be string
Reedy [Wed, 18 Jun 2014 21:53:07 +0000 (22:53 +0100)]
Update Language::userAdjust() $ts parameter hint to be string

Will technically still take an int (it's parsed around anyway), but
should be passed as a string

Mostly for HipHop stuffs

Change-Id: Id940028d581e34ca2e37a0730ca5766a08fc10e2

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Wed, 18 Jun 2014 20:26:18 +0000 (20:26 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agofilebackend: Avoid using popen() when "parallelize" is disabled
Aaron Schulz [Wed, 18 Jun 2014 17:18:49 +0000 (10:18 -0700)]
filebackend: Avoid using popen() when "parallelize" is disabled

Bug: 66467
Change-Id: Iaf8eb2ecfad166e26e265a98933399dc4bc255a3

10 years agoFix $wgDjvuPostProcessor comment about default being pnmtopng
Reedy [Wed, 18 Jun 2014 19:48:38 +0000 (20:48 +0100)]
Fix $wgDjvuPostProcessor comment about default being pnmtopng

Change-Id: I643332fcfb2dfae40dc61e71f2e151d6510ebbcd

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 18 Jun 2014 19:41:11 +0000 (19:41 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia0ebbe849a5458406d8e7c7bee7d930bdba26cfc

10 years agoFix DjVu test (Make sure to check for djvutxt binary)
Brian Wolff [Wed, 18 Jun 2014 19:05:41 +0000 (16:05 -0300)]
Fix DjVu test (Make sure to check for djvutxt binary)

Bug: 61070
Change-Id: Ib5e7c89a51d0872b32bbcd6b7e3db830c2e5e8a6

10 years agoIgnore days of random failing tests in wfTimestampTest
addshore [Tue, 6 May 2014 09:35:18 +0000 (10:35 +0100)]
Ignore days of random failing tests in wfTimestampTest

This switches 2 of the testcases to use a regex
instead of an exact match

Bug: 64946
Change-Id: I24b64b34787eb1b6bbf6e6b6178a2bbf5eb7c32c

10 years agoApiExpandTemplates: Start parse before creating frame
Brad Jorsch [Wed, 18 Jun 2014 18:12:08 +0000 (14:12 -0400)]
ApiExpandTemplates: Start parse before creating frame

The code added in Id12cbe4a is creating a frame from the parser object
before actually starting a parse, meaning the frame ends up with no
title, which causes problems for other stuff that assumes the frame
*does* have a title.

While we could possibly change from calling ->preprocess() to
->recursivePreprocess() to avoid re-starting the parse, there are some
hooks called from ->preprocess() that it's probably best to continue
calling to not break BC.

Bug: 66798
Change-Id: If2ca8ab94ab81ee10f33ce1f4ee75655b7c1e680

10 years agoMerge "The siteinfo API uses '' as an attribute value, not `true`."
jenkins-bot [Wed, 18 Jun 2014 14:03:34 +0000 (14:03 +0000)]
Merge "The siteinfo API uses '' as an attribute value, not `true`."

10 years agoMerge "Removed useless "while" loop"
jenkins-bot [Wed, 18 Jun 2014 00:27:39 +0000 (00:27 +0000)]
Merge "Removed useless "while" loop"

10 years agoMerge "Mime search: Trim leading and trailing whitespace from input"
jenkins-bot [Wed, 18 Jun 2014 00:21:52 +0000 (00:21 +0000)]
Merge "Mime search: Trim leading and trailing whitespace from input"

10 years agoAdd macronless namespace aliases for Old English
Tomasz W. Kozlowski [Tue, 17 Jun 2014 21:19:00 +0000 (23:19 +0200)]
Add macronless namespace aliases for Old English

Requested on Bugzilla 'for the sake of convenience.'

Bug: 58712
Change-Id: I971717a3ff72f643e1912d7fe78416db7bc8ff44

10 years agoClarify fileexists-extension message
Brian Wolff [Sat, 17 May 2014 22:41:54 +0000 (19:41 -0300)]
Clarify fileexists-extension message

The message is a warning, the user can chose to ignore it, and
there are valid cases for ignoring it. However the message read
like a hard error.

Change-Id: I47693d1c08784a44b9a1360a8c2d28433b104437

10 years agoMake ResourceLoaderFileModule#getAllStyleFiles include all skin styles
Sam Smith [Tue, 1 Apr 2014 14:28:46 +0000 (15:28 +0100)]
Make ResourceLoaderFileModule#getAllStyleFiles include all skin styles

* Add the ResourceLoaderFileModule#getAllSkinStyleFiles method,
  which returns all of the skinStyles files for a given module
* The LessFileCompilationTest and checkLess.php script, which use
  the #getAllStyleFile method, now validate all LESS style files

Bug: 63343
Change-Id: Ib2eb5761919c648aea4ae58f8d0531799fe7982b

10 years agoMerge "ResourceLoaderFileModule: Implement remoteSkinPath option"
jenkins-bot [Tue, 17 Jun 2014 19:34:22 +0000 (19:34 +0000)]
Merge "ResourceLoaderFileModule: Implement remoteSkinPath option"

10 years agoMerge "Fixed FSFileOpHandle comment"
jenkins-bot [Tue, 17 Jun 2014 19:23:16 +0000 (19:23 +0000)]
Merge "Fixed FSFileOpHandle comment"

10 years agoMerge "Some phpcs-strict changes on includes/revisiondelete/"
jenkins-bot [Tue, 17 Jun 2014 19:22:57 +0000 (19:22 +0000)]
Merge "Some phpcs-strict changes on includes/revisiondelete/"

10 years agoMime search: Trim leading and trailing whitespace from input
Chad Horohoe [Tue, 17 Jun 2014 17:58:39 +0000 (10:58 -0700)]
Mime search: Trim leading and trailing whitespace from input

Change-Id: I4f8142224d7585bff65ac3cbab4fce8b302c82bd

10 years agoMerge "Actually format search error Status objects nicely"
jenkins-bot [Tue, 17 Jun 2014 17:10:51 +0000 (17:10 +0000)]
Merge "Actually format search error Status objects nicely"

10 years agoActually format search error Status objects nicely
Chad Horohoe [Tue, 17 Jun 2014 16:51:03 +0000 (09:51 -0700)]
Actually format search error Status objects nicely

htmlspecialchars() on wikitext that's passed to addHtml()?

Change-Id: I6cff09ebc052841b923bbed8b9fa02a208e7d61c

10 years agoThe siteinfo API uses '' as an attribute value, not `true`.
C. Scott Ananian [Tue, 17 Jun 2014 14:51:26 +0000 (10:51 -0400)]
The siteinfo API uses '' as an attribute value, not `true`.

Bug: 66723
Change-Id: Ibef772a72bac6b700ba2a3725832f50b057bf503

10 years agoMerge "shell script fix using shellcheck lint"
jenkins-bot [Tue, 17 Jun 2014 14:18:23 +0000 (14:18 +0000)]
Merge "shell script fix using shellcheck lint"

10 years agoResourceLoaderFileModule: Implement remoteSkinPath option
Daniel Friesen [Sun, 1 Jun 2014 17:25:11 +0000 (10:25 -0700)]
ResourceLoaderFileModule: Implement remoteSkinPath option

remoteSkinPath works the same as remoteExtPath but is relative to skins/ instead of extensions/

This will allow skins to register modules using:
 $wgResourceModules['skin.myskin'] = array(
   // ...
   'localBasePath' => __DIR__,
   'remoteSkinPath' => 'myskin',
 );

Instead of using:
 'remoteBasePath' => $GLOBALS['wgStylePath'] . '/myskin', // or
 'remoteBasePath' => &$GLOBALS['wgStylePath'],

Change-Id: I0e8c4a37a224e9528c9c5aa5417f0f56dbb89b97

10 years agoAllow use of GENDER in "fileexists" message
Siebrand Mazeland [Tue, 17 Jun 2014 12:37:17 +0000 (14:37 +0200)]
Allow use of GENDER in "fileexists" message

Requested by Protnet in
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Fileexists/el

Change-Id: I51fdc106938977a5c9abd78de4fd6f297e2ac880

10 years agoMerge "Reword typo in file header for EditPage.php"
jenkins-bot [Tue, 17 Jun 2014 08:55:00 +0000 (08:55 +0000)]
Merge "Reword typo in file header for EditPage.php"

10 years agoMerge "Capitalise Message in SpecialAllMessages files"
jenkins-bot [Tue, 17 Jun 2014 08:54:46 +0000 (08:54 +0000)]
Merge "Capitalise Message in SpecialAllMessages files"

10 years agoMerge "Rename SpecialAllpages to SpecialAllPages"
jenkins-bot [Tue, 17 Jun 2014 08:49:45 +0000 (08:49 +0000)]
Merge "Rename SpecialAllpages to SpecialAllPages"

10 years agoMerge "Revert "mediawiki.mixins: Add border-radius mixin""
jenkins-bot [Tue, 17 Jun 2014 02:58:28 +0000 (02:58 +0000)]
Merge "Revert "mediawiki.mixins: Add border-radius mixin""

10 years agoRemoved useless "while" loop
Aaron Schulz [Mon, 16 Jun 2014 21:46:09 +0000 (14:46 -0700)]
Removed useless "while" loop

Change-Id: Idc8ebc3a90f10f2179fcea0872207fe17cc2b265

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 16 Jun 2014 19:44:52 +0000 (19:44 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: If9f9760aecc14851052ac63f3cd9da15152f500e

10 years agoRevert "mediawiki.mixins: Add border-radius mixin"
Krinkle [Mon, 16 Jun 2014 19:17:03 +0000 (19:17 +0000)]
Revert "mediawiki.mixins: Add border-radius mixin"

Prefixes for border-radius haven't been needed in a long time. This
degrades gracefully and isn't worth the overhead.

In addition, only a few weeks ago did we merge commits that removed all
this prefixes (e.g. in Ie5ce3202b4). Adding this mixin would encourage
doing the reverse.

This reverts commit 591ba359f283c5ab4ba1b2a0359a98692a3b204b.

Change-Id: Ic25a001de3fe1516cc4939b3159e362e87cb790b

10 years agoFollowup e48ecbc5: fix fatal error due to undefined variable
Roan Kattouw [Mon, 16 Jun 2014 18:30:47 +0000 (11:30 -0700)]
Followup e48ecbc5: fix fatal error due to undefined variable

Bug: 66669
Change-Id: I195a5ff539f09addb92d2bb07d53bdb3aef0db1f

10 years agoMinor: more specific parsoid image styling with child selectors
Gabriel Wicke [Mon, 16 Jun 2014 17:17:08 +0000 (10:17 -0700)]
Minor: more specific parsoid image styling with child selectors

Bug: 51245
Bug: 66616
Change-Id: Iff228e932bbb3d548e9a0430a561020cdccf1b4c

10 years agoRename SpecialAllpages to SpecialAllPages
Reedy [Mon, 16 Jun 2014 17:36:04 +0000 (18:36 +0100)]
Rename SpecialAllpages to SpecialAllPages

Change-Id: Ic137bc7adbc4a9ed96448ba0fee4807b67b3112d

10 years agoCapitalise Message in SpecialAllMessages files
Reedy [Mon, 16 Jun 2014 17:25:53 +0000 (18:25 +0100)]
Capitalise Message in SpecialAllMessages files

No internal changes to Special:Allmessage etc made

Change-Id: I21a164af0b6ec123bf654cd1e4e7085b1192f067

10 years agoMerge "mediawiki.mixins: Add border-radius mixin"
jenkins-bot [Mon, 16 Jun 2014 10:06:35 +0000 (10:06 +0000)]
Merge "mediawiki.mixins: Add border-radius mixin"

10 years agomediawiki.mixins: Add border-radius mixin
Rob Moen [Thu, 22 May 2014 22:40:24 +0000 (15:40 -0700)]
mediawiki.mixins: Add border-radius mixin

Change-Id: Idb46dee0ac8a29d489ec7fb405f8a3149a729b3b

10 years agoSplit messages for recent change legend and letter tooltips
Bartosz Dziewoński [Fri, 9 May 2014 18:06:58 +0000 (20:06 +0200)]
Split messages for recent change legend and letter tooltips

This makes it possible to use formatting in the legend ones
(e.g. links to help pages) and to use different wording
(the one for tooltips is sometimes too verbose for the legend).

Documented the format of $wgRecentChangesFlags better.

The default text in not modified in this change.

Bug: 58715
Bug: 60235
Change-Id: Ie9872c8fb3e43620877300ee8536bb5ddee5ab46

10 years agoReword typo in file header for EditPage.php
withoutaname [Mon, 16 Jun 2014 05:58:34 +0000 (22:58 -0700)]
Reword typo in file header for EditPage.php

Change-Id: Iefad919e09632b11bb06abcab390a756455c2ddd

10 years agoMerge "Add tests for API's assert={user|bot}"
jenkins-bot [Mon, 16 Jun 2014 01:33:24 +0000 (01:33 +0000)]
Merge "Add tests for API's assert={user|bot}"

10 years agoRevert "Revert "Officially deprecate skin autodiscovery""
Bartosz Dziewoński [Tue, 10 Jun 2014 20:38:47 +0000 (20:38 +0000)]
Revert "Revert "Officially deprecate skin autodiscovery""

The CI issue that made the revert necessary is fixed now.

This reverts commit d672aa3123a612583ef9ec67115992aafce5b2af.

Bug: 66429
Change-Id: Ib2b4a895c5d01e5ccc7e4edfdbfdcaf0a93c267c

10 years agoMerge "Fix some line mis-wrapping and typos in RELEASE-NOTES-1.24"
jenkins-bot [Mon, 16 Jun 2014 00:43:04 +0000 (00:43 +0000)]
Merge "Fix some line mis-wrapping and typos in RELEASE-NOTES-1.24"

10 years agoMerge "Update jquery.jStorage.js"
jenkins-bot [Mon, 16 Jun 2014 00:21:46 +0000 (00:21 +0000)]
Merge "Update jquery.jStorage.js"

10 years agoMerge "Collapse duplicate $existingExpiry == 'infinity' case into else"
jenkins-bot [Mon, 16 Jun 2014 00:07:17 +0000 (00:07 +0000)]
Merge "Collapse duplicate $existingExpiry == 'infinity' case into else"

10 years agoCollapse duplicate $existingExpiry == 'infinity' case into else
Reedy [Sun, 15 Jun 2014 23:49:34 +0000 (00:49 +0100)]
Collapse duplicate $existingExpiry == 'infinity' case into else

Change-Id: I1cc612e9f646dd75f58cc6ae0ae073ebffa7d6d3

10 years agoAPI: Allow 'infinity' as a valid protection expiry
Kunal Mehta [Fri, 20 Dec 2013 09:06:51 +0000 (01:06 -0800)]
API: Allow 'infinity' as a valid protection expiry

Change-Id: If9eb1f3e835579f5c8b8be22297a1eb26beda4e7

10 years agoSwitch API to use Config classes
Reedy [Fri, 24 Jan 2014 02:51:11 +0000 (02:51 +0000)]
Switch API to use Config classes

Only done where globals are config (so not $wgParser, $wgContLang etc)

Change-Id: Ic39cdd858cfb9096a2bc09618f97e64270d76f13

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 15 Jun 2014 19:42:49 +0000 (19:42 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Id7f62d5c54ac1d476f37d238759a28ef803347fb

10 years agoDelete sr.json, it blocks messages from sr-ec
Raimond Spekking [Sun, 15 Jun 2014 17:35:58 +0000 (19:35 +0200)]
Delete sr.json, it blocks messages from sr-ec

Spotted by Milićević
https://translatewiki.net/wiki/Thread:Support/Change_on_gerrit

Change-Id: I65f0ea2374012c4949e62668f8b4cc0eeab4e6af

10 years agoUpdate jquery.jStorage.js
paladox [Sat, 14 Jun 2014 23:41:57 +0000 (23:41 +0000)]
Update jquery.jStorage.js

Project site

* http://www.jstorage.info/ and https://github.com/andris9/jStorage

jquery.jStorage.js file

* https://github.com/andris9/jStorage/blob/master/jstorage.js

Author and contact

* Andris Reinman and email andris.reinman@gmail.com

README

* https://github.com/andris9/jStorage/blob/master/README.md

Change-Id: I0ca42e909cc08f8f0b67cec0a7c0aedd0ebf91d7

10 years agoMerge "mw-ui mixins: More colors, more browser helper mixins"
jenkins-bot [Sat, 14 Jun 2014 23:41:57 +0000 (23:41 +0000)]
Merge "mw-ui mixins: More colors, more browser helper mixins"

10 years agomw-ui mixins: More colors, more browser helper mixins
Shahyar [Thu, 3 Apr 2014 23:29:17 +0000 (18:29 -0500)]
mw-ui mixins: More colors, more browser helper mixins

Change-Id: I895679ffe2f5eb1f002ff110c750e77824004820

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 14 Jun 2014 19:07:48 +0000 (19:07 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Id1349f603b9e9c7d7c039a7fbea03ccf69238d89

10 years agoFix some line mis-wrapping and typos in RELEASE-NOTES-1.24
Bartosz Dziewoński [Sat, 14 Jun 2014 12:25:26 +0000 (14:25 +0200)]
Fix some line mis-wrapping and typos in RELEASE-NOTES-1.24

Change-Id: I08c513ed6418f58b1d269456affd02d882ab8e9b

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 13 Jun 2014 20:38:43 +0000 (20:38 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I70982e6a517a7fd472acb8577adde727cabd7a21

10 years agoAdd SpecialEditWatchlist::prefixSearchSubpages
umherirrender [Fri, 13 Jun 2014 18:51:58 +0000 (20:51 +0200)]
Add SpecialEditWatchlist::prefixSearchSubpages

Also add 'clear' to SpecialWatchlist::prefixSearchSubpages

Change-Id: Ibc1ca44a9472cd86a6dc5df04274089b8fcf30a2

10 years agoMerge "Change MostLinkedTemplates to MostTranscludedPages"
jenkins-bot [Fri, 13 Jun 2014 17:42:33 +0000 (17:42 +0000)]
Merge "Change MostLinkedTemplates to MostTranscludedPages"

10 years agoFixed FSFileOpHandle comment
Aaron Schulz [Fri, 13 Jun 2014 17:17:33 +0000 (10:17 -0700)]
Fixed FSFileOpHandle comment

Change-Id: Ie89d18f173f4fb172c35317cee9403e5f5f43d47

10 years agoMerge "Made FSFileBackend use closures for doExecuteOpHandlesInternal()"
jenkins-bot [Fri, 13 Jun 2014 15:57:43 +0000 (15:57 +0000)]
Merge "Made FSFileBackend use closures for doExecuteOpHandlesInternal()"

10 years agoChange MostLinkedTemplates to MostTranscludedPages
Jackmcbarn [Fri, 6 Jun 2014 18:27:54 +0000 (14:27 -0400)]
Change MostLinkedTemplates to MostTranscludedPages

Rename Special:MostLinkedTemplates to Special:MostTranscludedPages, and
allow it to return pages from any namespace.

Change-Id: I27c2fb50f77aef760f8c7006ae48297451230c6f

10 years agoMerge RELEASE-NOTES-1.23 into HISTORY
Kevin Israel [Thu, 12 Jun 2014 02:23:05 +0000 (22:23 -0400)]
Merge RELEASE-NOTES-1.23 into HISTORY

Used the REL1_23 version of that file, and moved the note added in
5e48ad2e78ce to RELEASE-NOTES-1.24, where it belongs.

Change-Id: Id5f4726152fc2f4c90117762f6dc4904f5fa9f94

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 12 Jun 2014 21:28:55 +0000 (21:28 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib84e5a1bc0740a2948a2a902e6916fa3f9c1627a

10 years agoMerge "Remove $wgDBClusterTimeout"
jenkins-bot [Thu, 12 Jun 2014 20:46:59 +0000 (20:46 +0000)]
Merge "Remove $wgDBClusterTimeout"

10 years agoMade FSFileBackend use closures for doExecuteOpHandlesInternal()
Aaron Schulz [Thu, 12 Jun 2014 20:40:03 +0000 (13:40 -0700)]
Made FSFileBackend use closures for doExecuteOpHandlesInternal()

Change-Id: I8401a92384cb454eb79a4607b350c50d432a9510

10 years agoMerge "Apparently for certain (API) requests $this->getTitle() doesn't return a valid...
jenkins-bot [Thu, 12 Jun 2014 19:28:35 +0000 (19:28 +0000)]
Merge "Apparently for certain (API) requests $this->getTitle() doesn't return a valid Title."

10 years agoRemove $wgDBClusterTimeout
withoutaname [Thu, 12 Jun 2014 18:35:02 +0000 (11:35 -0700)]
Remove $wgDBClusterTimeout

Also added release notes that I forgot to include in
change I4b409ef

Change-Id: I9416c0dc7dea1c32c3e1f6d7177ee9bc4e34e1de

10 years agoMerge "Deprecate $wgMasterWaitTimeout"
jenkins-bot [Thu, 12 Jun 2014 18:23:50 +0000 (18:23 +0000)]
Merge "Deprecate $wgMasterWaitTimeout"

10 years agoUse type hinting in ApiBase
Brad Jorsch [Fri, 16 May 2014 15:11:55 +0000 (11:11 -0400)]
Use type hinting in ApiBase

For ideological reasons this was not included in Ie6bf1915.

Change-Id: I5f7119665746eb6fcf86c3a403caa2dcb67904eb

10 years agoActually define jMY date format for Arab
Federico Leva [Thu, 12 Jun 2014 15:49:06 +0000 (17:49 +0200)]
Actually define jMY date format for Arab

Followup to I5d4a799b0 (10b6c22c45): testers failed to notice that
no new format was actually added to Special:Preferences.
Now it is and it's also used correctly e.g. in action=history
(verified by means of ctrl-c ctrl-f ctrl-v and {{#time:j M Y}}).

Bug: 65245
Change-Id: I70de62c859b9c637f989d68bc86e73113273aff8

10 years agoAutocomplete special pages' subpages in search suggestions
Bartosz Dziewoński [Thu, 12 Jun 2014 14:59:46 +0000 (16:59 +0200)]
Autocomplete special pages' subpages in search suggestions

Includes basic "example" implementations for:
* Special:Watchlist (predefined subpage list)
* Special:Log (based on config variable)

Bug: 20210
Change-Id: I2b0505df244b9d23bd23d5fb4d3405dc28d57739

10 years agoMerge "Vector: Workaround for legacy IE font-sizing issues"
jenkins-bot [Thu, 12 Jun 2014 14:35:58 +0000 (14:35 +0000)]
Merge "Vector: Workaround for legacy IE font-sizing issues"

10 years agoMerge "Create PostLoginRedirect Hook for changing the redirect behavior"
jenkins-bot [Thu, 12 Jun 2014 14:24:50 +0000 (14:24 +0000)]
Merge "Create PostLoginRedirect Hook for changing the redirect behavior"

10 years agoVector: Workaround for legacy IE font-sizing issues
Entlinkt [Thu, 12 Jun 2014 08:04:37 +0000 (08:04 +0000)]
Vector: Workaround for legacy IE font-sizing issues

In IE <= 7, 'Ctrl' + '+' scales the font size in far too large steps if the
root element's font size is given in the 'em' unit. Everything becomes normal
if the root element's font-size is given in '%'. This should not have any
effect in other browsers.

Bug: 24515
Change-Id: I5cc864d73935a02713075840b7ff80000b3ae88a

10 years agoDeprecate $wgMasterWaitTimeout
withoutaname [Thu, 12 Jun 2014 05:16:35 +0000 (22:16 -0700)]
Deprecate $wgMasterWaitTimeout

Not only was this global unused, it also caused the LoadBalancer
to look for the wrong array key, which would always set
$mWaitTimeout to 10 in the conditional. There is also
a manual function LoadBalancer::waitTimeout() for this.

Change-Id: I4b409ef890bec5aac7f666a2ed3dff9ea8bc14cc

10 years agoresourceloader: Implement "skip function" feature
Timo Tijhof [Wed, 30 Apr 2014 21:06:51 +0000 (23:06 +0200)]
resourceloader: Implement "skip function" feature

A module can be registered with a skip function. Such function,
if provided, will be invoked by the client when a module is
queued for loading. If the function returns true, the client will
bypass any further loading action and mark the module as 'ready'.

This can be used to implement a feature test for a module
providing a shim or polyfill.

* Change visibility of method ResourceLoader::filter to public.

So that it can be invoked by ResourceLoaderStartupModule.

* Add option to suppress the cache key report in ResourceLoader::filter.

We usually only call the minifier once on an entire request
reponse (because it's all concatenated javascript or embedded
javascript in various different closures, still valid as one
large script) and only add a little bottom line for the cache
key. When embedding the skip function we have to run the minifier
on them separately as they're output as strings (not actual
functions). These strings are typically quite small and blowing
up the response with loads of cache keys is not desirable in
production.

* Add method to clear the static cache of ResourceLoader::inDebugMode.

Global static state is evil but, as long as we have it, we at
least need to clear it after switching contexts in the test suite.

Also:
* Remove obsolete setting of 'debug=true' in the FauxRequest in
  ResourceLoaderTestCase. It already sets global wgResourceLoaderDebug
  in the setUp() method.

Bug: 66390
Change-Id: I87a0ea888d791ad39f114380c42e2daeca470961

10 years agoUpdate OOjs UI to v0.1.0-pre (c5ae888f67)
Roan Kattouw [Thu, 12 Jun 2014 01:10:14 +0000 (18:10 -0700)]
Update OOjs UI to v0.1.0-pre (c5ae888f67)

New changes:
9eec766 Create 'next' and 'previous' indicators

Change-Id: I3f091f25be73fe35a55b113630c253c9a3cf5b38