lhc/web/wiklou.git
10 years agoMerge "mw.log.deprecate: Use mw.log.warn instead of log.warn"
jenkins-bot [Fri, 28 Feb 2014 21:02:01 +0000 (21:02 +0000)]
Merge "mw.log.deprecate: Use mw.log.warn instead of log.warn"

10 years agoMerge "mw.log.deprecate: Simplify warning message"
jenkins-bot [Fri, 28 Feb 2014 21:01:59 +0000 (21:01 +0000)]
Merge "mw.log.deprecate: Simplify warning message"

10 years agomw.log.deprecate: Use mw.log.warn instead of log.warn
Timo Tijhof [Fri, 28 Feb 2014 20:15:06 +0000 (21:15 +0100)]
mw.log.deprecate: Use mw.log.warn instead of log.warn

In qunit/testrunner.js, freshConfigCopy() temporarily clears
mw.log.warn to avoid a flood of spurious deprecation warnings.

However, as of 89a8fe4, the console was once again flooded with
deprecated notices when in debug mode because in debug mode we
load mediawiki.log.js which redefines the mw.log object and as
such the local reference here kept pointing to the original.

Change-Id: I2b560aac9c0b929c82bb628760c194c0476fe1a9

10 years agomw.log.deprecate: Simplify warning message
Timo Tijhof [Fri, 28 Feb 2014 20:03:28 +0000 (21:03 +0100)]
mw.log.deprecate: Simplify warning message

* Remove odd MWDeprecationWarning prefix.
* Don't mention "property". All accessors targets are properties
  and saying so doesn't add much value (some of the targets are
  more thought of as constructors or methods), the name should
  be sufficient.

Change-Id: Ifc77d176fa830feccf13350b4fd9dbf8cb8d8046

10 years agoresourceloader: Fix broken skinStyles loop in #getModifiedTime
Timo Tijhof [Fri, 28 Feb 2014 19:23:11 +0000 (20:23 +0100)]
resourceloader: Fix broken skinStyles loop in #getModifiedTime

The way we interpret the 'skinStyles' array in #getModifiedTime
is broken. For comparision, look at the loop in #getStyleFiles
which we use for the creation of the actual stylesheets (which
works fine).

It mixed up the logic causing it to always end up with an empty
array. So it's not so much that it fails to detect the files
having changed after an update, it never included mtimes of these
files in the first place. If there'd be a module with only
skinStyles resources, it would have timestamp 0 (1970).

Bug: 62068
Change-Id: I2e772a13183e66e4bfbf95057ebfd7f5e0d817ec

10 years agoMerge "Add option to show only creations in Special:Contribs, API"
jenkins-bot [Fri, 28 Feb 2014 16:40:25 +0000 (16:40 +0000)]
Merge "Add option to show only creations in Special:Contribs, API"

10 years agoMerge "Fix number of parameters passed on recursive function call"
jenkins-bot [Fri, 28 Feb 2014 16:30:34 +0000 (16:30 +0000)]
Merge "Fix number of parameters passed on recursive function call"

10 years agoAdd option to show only creations in Special:Contribs, API
PiRSquared17 [Wed, 26 Feb 2014 20:57:58 +0000 (20:57 +0000)]
Add option to show only creations in Special:Contribs, API

* Add newOnly option to Special:Contributions
* Add to i18n files
* Add ucshow={new,!new,top,!top} to list=usercontribs
* Deprecated 'uctoponly' in favor of ucshow=top per Anomie.
* Add param 'newonly' to API action=feedcontributions
* Implementation: rev_parent_id=0

Bug: 42026
Change-Id: I07d597ef378d897690097804bf7c774fdadb654c

10 years agomediawiki.api: Remove misleading comment about JSONP
Bartosz Dziewoński [Sat, 1 Feb 2014 00:17:10 +0000 (01:17 +0100)]
mediawiki.api: Remove misleading comment about JSONP

The non-existent parameter this is discussing has been removed a long
time ago, but the comment somehow stayed.

Change-Id: I3cb4583646a8b85fd2383c7d0917de6f6c414049

10 years agoHandle some extra cases in triggerJobs()
Aaron Schulz [Fri, 28 Feb 2014 05:35:30 +0000 (21:35 -0800)]
Handle some extra cases in triggerJobs()

* $wgEnableAPI may be false, though it is a basic part of MediaWiki.
  This only disables api.php and not internal callers so just do that.
* Various socket functions may disabled. Though this is a terrible
  wack-a-mole security measure to handle MediaWiki exploits or
  non-authenticated services, it may still be in use, so work
  around it.

Change-Id: I54a209e003ffce1fe36a5898fe0da735cf5e32e4

10 years agoMerge "mediawiki.less: Use less mixin to reduce code repetition in animation"
jenkins-bot [Fri, 28 Feb 2014 05:25:59 +0000 (05:25 +0000)]
Merge "mediawiki.less: Use less mixin to reduce code repetition in animation"

10 years agoRemove $wgDebugProfiling. It appears to be unused.
Brian Wolff [Fri, 28 Feb 2014 04:53:58 +0000 (00:53 -0400)]
Remove $wgDebugProfiling. It appears to be unused.

Not sure what happened to it, but grep suggests the option no
longer does anything.

Change-Id: I0d515551cd0d6cfd5b027be71ada714f6ebeb5ab

10 years agoMerge "Use inContentLanguage for dropdown messages in HTMLFormField"
jenkins-bot [Fri, 28 Feb 2014 02:19:02 +0000 (02:19 +0000)]
Merge "Use inContentLanguage for dropdown messages in HTMLFormField"

10 years agoUse inContentLanguage for dropdown messages in HTMLFormField
Marius Hoch [Fri, 28 Feb 2014 02:12:10 +0000 (03:12 +0100)]
Use inContentLanguage for dropdown messages in HTMLFormField

to restore b/c for now.

Bug: 61942
Change-Id: I2741ef940d83eeb564e89e20378fb4004cfe5b83

10 years agoFix number of parameters passed on recursive function call
Reedy [Thu, 27 Feb 2014 21:20:46 +0000 (21:20 +0000)]
Fix number of parameters passed on recursive function call

Error is from If4175332405d26c7ff2e8fbe100bcad61762ce6f

Change-Id: I2deabd42462e4009118ff5578e4da95cab51107a

10 years agoMerge "Make travis test php 5.3, 5.4 and 5.5"
jenkins-bot [Thu, 27 Feb 2014 20:24:33 +0000 (20:24 +0000)]
Merge "Make travis test php 5.3, 5.4 and 5.5"

10 years agoMerge "Moved job running via $wgJobRunRate to a special API"
jenkins-bot [Thu, 27 Feb 2014 19:17:59 +0000 (19:17 +0000)]
Merge "Moved job running via $wgJobRunRate to a special API"

10 years agoMerge "Fix incorrect @covers tags in LinksUpdateTest"
jenkins-bot [Thu, 27 Feb 2014 19:17:06 +0000 (19:17 +0000)]
Merge "Fix incorrect @covers tags in LinksUpdateTest"

10 years agoMoved job running via $wgJobRunRate to a special API
Aaron Schulz [Wed, 12 Feb 2014 22:43:14 +0000 (14:43 -0800)]
Moved job running via $wgJobRunRate to a special API

* A background internal HTTP request used to load the API.
  This handles job execution and related periodic tasks.
  It avoids blocking the main request or breaking it on fatals.
* This method avoids problems that shelling could have:
** Mismatched apache/cli PHP config or versions.
** Had to start a new process and could not use opcode cache.
** safe_mode and open_basedir restrictions required a fallback.
** Some wiki farms may not respect the --wiki parameter.
** wgMaxShellMemory applies to spawned PHP processes.
** Spawning processes is more prone to DOS due to a lack
   of proper limiting/pooling.

bug: 60208
bug: 60210
bug: 60698
bug: 60844
Change-Id: I78b0e709301ac4a0c7b7ed337d6969d7546674bf

10 years agoFix incorrect @covers tags in LinksUpdateTest
addshore [Thu, 27 Feb 2014 19:10:59 +0000 (20:10 +0100)]
Fix incorrect @covers tags in LinksUpdateTest

Change-Id: I6dd9be72b63a153c7ff51f45205ba302d9438dea

10 years agoMerge "Allow to disable specific groups in $wgDebugLogGroups"
jenkins-bot [Thu, 27 Feb 2014 17:40:16 +0000 (17:40 +0000)]
Merge "Allow to disable specific groups in $wgDebugLogGroups"

10 years agoMerge "jshintignore: Add jquery.fullscreen.js"
jenkins-bot [Thu, 27 Feb 2014 15:40:03 +0000 (15:40 +0000)]
Merge "jshintignore: Add jquery.fullscreen.js"

10 years agoMerge "SECURITY: API: Don't find links in the middle of api.php links"
jenkins-bot [Thu, 27 Feb 2014 14:47:18 +0000 (14:47 +0000)]
Merge "SECURITY: API: Don't find links in the middle of api.php links"

10 years agojshintignore: Add jquery.fullscreen.js
Timo Tijhof [Thu, 27 Feb 2014 14:29:23 +0000 (15:29 +0100)]
jshintignore: Add jquery.fullscreen.js

Follows-up 37835854c7. Though it passes out jshint config, it
won't pass jscs and even if it would, it's upstream so it doesn't
have to pass.

Change-Id: Ia67da79b74252065c348a932e700926700030722

10 years agoMerge "Make 'quotation-marks' message non-optional (again)"
jenkins-bot [Thu, 27 Feb 2014 14:34:16 +0000 (14:34 +0000)]
Merge "Make 'quotation-marks' message non-optional (again)"

10 years agoMerge "jquery.tablesorter.test: Re-organise variables"
jenkins-bot [Thu, 27 Feb 2014 14:32:08 +0000 (14:32 +0000)]
Merge "jquery.tablesorter.test: Re-organise variables"

10 years agoSECURITY: API: Don't find links in the middle of api.php links
Brad Jorsch [Fri, 14 Feb 2014 21:48:53 +0000 (16:48 -0500)]
SECURITY: API: Don't find links in the middle of api.php links

Bug: 61362
Change-Id: Idf985e4e69c2f11778a8a90503914678441cb3fb

10 years agoMerge "resourceloader: Add method to get the startup modules load url"
jenkins-bot [Thu, 27 Feb 2014 14:25:11 +0000 (14:25 +0000)]
Merge "resourceloader: Add method to get the startup modules load url"

10 years agoMerge "SECURITY: Make token comparison constant time"
jenkins-bot [Thu, 27 Feb 2014 14:20:31 +0000 (14:20 +0000)]
Merge "SECURITY: Make token comparison constant time"

10 years agoMake travis test php 5.3, 5.4 and 5.5
addshore [Thu, 27 Feb 2014 14:06:13 +0000 (15:06 +0100)]
Make travis test php 5.3, 5.4 and 5.5

Currently these are all set to be allowed to
fail as currently some tests do fail but having
this run will allow us to slowly fix them and
remove the versions from allow_failures

The jobs for 5.3 5.4 and 5.5 seem to take somewhere
between 6 and 9 mins compared to hhvm which takes
about 4 but this should be no problem

Change-Id: Ifee7f6476cfd41736aa595e92260a333b4c059ee

10 years agoSECURITY: Make token comparison constant time
csteipp [Fri, 14 Feb 2014 01:18:40 +0000 (17:18 -0800)]
SECURITY: Make token comparison constant time

It seems like our token comparison would be vulnerable to timing
attacks. This will take constant time.

Bug: 61346
Change-Id: I2a9e89120f7092015495e638c6fa9f67adc9b84f

10 years agoSECURITY: Disallow non-whitelisted namespaces
csteipp [Tue, 4 Feb 2014 00:49:48 +0000 (16:49 -0800)]
SECURITY: Disallow non-whitelisted namespaces

Disallow uploading non-whitelisted namespaces. Also disallow iframe
elements.

User will get an error including the namespace name if they use a non-
whitelisted namespace.

Bug: 60771
Change-Id: Id5c022543184b19b77ad32d9a8a0c2dbbc5e9038

10 years agoMerge "use --prefer-source for composer travis"
jenkins-bot [Thu, 27 Feb 2014 13:43:57 +0000 (13:43 +0000)]
Merge "use  --prefer-source for composer travis"

10 years agoMake 'quotation-marks' message non-optional (again)
Bartosz Dziewoński [Thu, 27 Feb 2014 13:35:44 +0000 (14:35 +0100)]
Make 'quotation-marks' message non-optional (again)

Follow-up to Iaf9e42ed. See I9282c787 for reasoning.

Change-Id: I43078741b9fd7a8a1f59bbc6b757682db9c3b48e

10 years agouse --prefer-source for composer travis
addshore [Thu, 27 Feb 2014 13:34:23 +0000 (14:34 +0100)]
use  --prefer-source for composer travis

This will avoid composer transport exceptions
which happen when travis hits the github api
too much

Change-Id: I3c7b209d9e4181dd1393f4e9f93587d05828bb4e

10 years agoUpdate messages.inc and rebuild MessagesEn.php
Alexandre Emsenhuber [Thu, 27 Feb 2014 13:18:06 +0000 (14:18 +0100)]
Update messages.inc and rebuild MessagesEn.php

Change-Id: If068c9b2946ca6fccc2fc37d31f456b12f9cc08b

10 years agoMerge "Make show/hide link in RC individually localizable"
jenkins-bot [Thu, 27 Feb 2014 12:50:05 +0000 (12:50 +0000)]
Merge "Make show/hide link in RC individually localizable"

10 years agoMake show/hide link in RC individually localizable
Douglas Gardner [Fri, 24 Jan 2014 13:25:19 +0000 (13:25 +0000)]
Make show/hide link in RC individually localizable

This commit concerns the filters on the [[Special:RecentChanges]] box.
Previously, "Show" and "Hide" in messages such as "Show anonymous users" were a
shared system message: now each filter can be assigned a verb individually.

For example:
* Argument $1 of `rcshowhideminor` used to come from `show` or `hide`.
* $1 now comes from `rcshowhideminor-show` or `rcshowhideminor-hide`.

In place of `show` and `hide`, the following system messages are affected:
* `rcshowhideminor` uses `rcshowhideminor-show` and `rcshowhideminor-hide`.
* `rcshowhidebots` uses `rcshowhidebots-show` and `rcshowhidebots-hide`.
* `rcshowhideanons` uses `rcshowhideanons-show` and `rcshowhideanons-hide`.
* `rcshowhidepatr` uses `rcshowhidepatr-show` and `rcshowhideanons-hide`.
* `rcshowhidemine` uses `rcshowhidemine-show` and `rcshowhidemine-hide`.

This change attempts to correct an issue encountered when localising into
Chechen (ce); previous behaviour made it impossible to translate the entire
sentence fragment correctly (as the verb is rendered slightly differently
depending on the rest of the sentence, and this was not possible with a shared
Show/Hide message).

Bug: 58449
Change-Id: Ibbfc3cd0477b029c8f22a3c812a891ac2109d660

10 years agominor LESS CSS fixes (zero units, dimensions)
S Page [Thu, 14 Nov 2013 23:14:24 +0000 (15:14 -0800)]
minor LESS CSS fixes (zero units, dimensions)

A few zero values included units, and some margin and padding dimensions
had redundant values on the end.  Regarding the latter, since CSS 1 "if
there are two or three, the missing values are taken from the opposite
side".  Leaving values off hurts clarity (I can never remember if the
order is top-left-bottom-right) but both Chromium and Firebug's CSS
inspector will display
   margin: 0 0 15px 0;
as
   margin: 0 0 15px;
anyway.

Bug: 57083
Change-Id: Ic51b2ac196a434857f19d51cd2a92686d53c4877

10 years agoCleanup search placeholder black/gray text mess
jrobson [Wed, 5 Feb 2014 20:09:36 +0000 (12:09 -0800)]
Cleanup search placeholder black/gray text mess

Document all these cryptic selectors
Drop -webkit support - not necessary
Follow up to: Ief9a5a178058eb01ab032cfae8639b0fc52c47a4
Note: For the record, I think all these rules should die
but if they are not going to they should at least be documented!
Change-Id: I3bb2d9fc4f8502cbf36356a9bc6e3034d2d47ab1

10 years agomediawiki.less: Use less mixin to reduce code repetition in animation
Prateek Saxena [Tue, 25 Feb 2014 14:01:43 +0000 (19:31 +0530)]
mediawiki.less: Use less mixin to reduce code repetition in animation

Adds an `animation` and `transform-rotate` mixin to help with the animation.
Also creates a mixin for the keyframes and uses them for webkit, moz and
opera specific declerations.

Change-Id: I167dc5e5a2f43f64c5029864e76d42fcc82af622

10 years agoMerge "Add tests for ArrayDiffFormatter and DiffOp"
jenkins-bot [Thu, 27 Feb 2014 00:31:25 +0000 (00:31 +0000)]
Merge "Add tests for ArrayDiffFormatter and DiffOp"

10 years agoresourceloader: Add method to get the startup modules load url
dr0ptp4kt [Tue, 17 Dec 2013 23:10:07 +0000 (15:10 -0800)]
resourceloader: Add method to get the startup modules load url

* Needed in order to incorporate this url in cache-optimizing
  things like cache manifests.

Change-Id: I17608e3fac9f8cb5b2764d8a22aa50ff59b23d2c

10 years agoAdd tests for ArrayDiffFormatter and DiffOp
addshore [Wed, 26 Feb 2014 21:47:40 +0000 (22:47 +0100)]
Add tests for ArrayDiffFormatter and DiffOp

This change also adds some tested getters to
the DiffOp class to improve testability of the class

Change-Id: I26eafd791b9892f565a18d0502474ef9c24f9a29

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 26 Feb 2014 21:50:53 +0000 (21:50 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib7a816babb2751947fa72c22f34539f0c578862e

10 years agoMerge "Update OOjs UI to v0.1.0-pre (064484f9af)"
jenkins-bot [Wed, 26 Feb 2014 20:54:12 +0000 (20:54 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (064484f9af)"

10 years agoAllow to disable specific groups in $wgDebugLogGroups
Alexandre Emsenhuber [Thu, 6 Feb 2014 22:00:43 +0000 (23:00 +0100)]
Allow to disable specific groups in $wgDebugLogGroups

So that they don't even appear in $wgDebugLogFile.

Change-Id: Ibf1a28fa566915d790e4d915354238441c3ff5c7

10 years agoUpdate OOjs UI to v0.1.0-pre (064484f9af)
James D. Forrester [Wed, 26 Feb 2014 20:12:16 +0000 (12:12 -0800)]
Update OOjs UI to v0.1.0-pre (064484f9af)

New changes:
2ebcd42 Localisation updates from https://translatewiki.net.
064484f Only pay attention to left mouse button events in PopupToolGroup

Change-Id: I56f6b6e5022a5651ea27b1eb73f53218b0fedf0d

10 years agoMerge "Support interwiki searches in API"
jenkins-bot [Wed, 26 Feb 2014 18:03:58 +0000 (18:03 +0000)]
Merge "Support interwiki searches in API"

10 years agoMerge "Put callback function within class in SiteConfigurationTest"
jenkins-bot [Wed, 26 Feb 2014 15:06:05 +0000 (15:06 +0000)]
Merge "Put callback function within class in SiteConfigurationTest"

10 years agoMerge "Revert "DefaultSettings.php: Remove $wgPasswordSenderName""
jenkins-bot [Wed, 26 Feb 2014 09:40:51 +0000 (09:40 +0000)]
Merge "Revert "DefaultSettings.php: Remove $wgPasswordSenderName""

10 years agoMerge "Removed pointless cache bypass in Swift backend"
jenkins-bot [Wed, 26 Feb 2014 07:07:56 +0000 (07:07 +0000)]
Merge "Removed pointless cache bypass in Swift backend"

10 years agoRevert "DefaultSettings.php: Remove $wgPasswordSenderName"
TTO [Wed, 26 Feb 2014 06:06:17 +0000 (06:06 +0000)]
Revert "DefaultSettings.php: Remove $wgPasswordSenderName"

It seems that this variable is used by a whole
lot of extensions, so to remove it now would be
to break these other extensions.

This reverts commit acda2cc90aea519f41c8ae55bc4d05f02072df84.

Change-Id: I2bd3078508c0608ff58bae4c9ec456e57c617da8

10 years agoMerge "Add test for BadTitleError exception"
Mwalker [Wed, 26 Feb 2014 02:52:36 +0000 (02:52 +0000)]
Merge "Add test for BadTitleError exception"

10 years agoMerge "Add test for ThrottledError exception"
Mwalker [Wed, 26 Feb 2014 02:50:23 +0000 (02:50 +0000)]
Merge "Add test for ThrottledError exception"

10 years agoRemoved pointless cache bypass in Swift backend
Aaron Schulz [Wed, 26 Feb 2014 01:40:53 +0000 (17:40 -0800)]
Removed pointless cache bypass in Swift backend

* This was added by mistake in 2af7ad8 apparently

Change-Id: Ic4004428095953ce07e1e97da43748eba04f6639

10 years agoMerge "Add new Hook 'SendWatchlistEmailNotification'"
jenkins-bot [Wed, 26 Feb 2014 01:11:42 +0000 (01:11 +0000)]
Merge "Add new Hook 'SendWatchlistEmailNotification'"

10 years agoAdd new Hook 'SendWatchlistEmailNotification'
bsitu [Fri, 21 Feb 2014 01:40:29 +0000 (17:40 -0800)]
Add new Hook 'SendWatchlistEmailNotification'

Bug: 53569
Change-Id: I73d5eef9a18d59b022c353c4b7d2aee18bfa6591

10 years agoRemove STRAIGHT_JOIN from ApiQueryLogEvents
Brad Jorsch [Tue, 25 Feb 2014 15:04:30 +0000 (10:04 -0500)]
Remove STRAIGHT_JOIN from ApiQueryLogEvents

Per Sean Pringle:
> In all cases the STRAIGHT_JOIN forces an index scan on logging.times
> index, or more rarely a range access on logging.type_time index. Both
> query plans hit tens of millions of rows and take many minutes.
>
> Removing the STRAIGHT_JOIN allows the MariaDB query optimizer to
> choose a plan that takes seconds. Often it includes a filesort step,
> but more importantly it allows "index condition pushdown" which makes
> the filesort cheap.

Bug: 61889
Change-Id: Iad3905f29a2bdee1e3ebbfb2e1909b330faa8e81

10 years agoSupport interwiki searches in API
Chad Horohoe [Wed, 12 Feb 2014 17:30:22 +0000 (09:30 -0800)]
Support interwiki searches in API

Adds new SearchResult methods for getting namespace text

Bug: 60975
Change-Id: I381c8681cabfa9ff7a73cbe0286ed32d267a5990

10 years agoFix typo in MWExceptionHandlerTest
addshore [Tue, 25 Feb 2014 21:37:40 +0000 (22:37 +0100)]
Fix typo in MWExceptionHandlerTest

Change-Id: I9868155c05bc9ca708f72b0ede02d90612136db9

10 years agoAdd test for BadTitleError exception
addshore [Tue, 25 Feb 2014 19:09:17 +0000 (20:09 +0100)]
Add test for BadTitleError exception

Change-Id: Ib7c5b9f385aa3fc3e68c55927b0cd5adc82ac1d1

10 years agoAdd test for ThrottledError exception
addshore [Tue, 25 Feb 2014 19:07:06 +0000 (20:07 +0100)]
Add test for ThrottledError exception

Change-Id: Ia98d6c24ce56c6707a67498e26107250d427a3bf

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

Change-Id: I1cdc5f6df47189ab35d141ed89a4c84cfac7fe18

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 25 Feb 2014 19:43:20 +0000 (19:43 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Icd5562293ec48bc3f62d5b0accea9dd857d78a48

10 years agoMerge "mediawiki.api: Fix documentation of ajax() to mention exposed jqXHR"
jenkins-bot [Tue, 25 Feb 2014 18:50:22 +0000 (18:50 +0000)]
Merge "mediawiki.api: Fix documentation of ajax() to mention exposed jqXHR"

10 years agomediawiki.notification: Hide #mw-notification-area when it's empty
Bartosz Dziewoński [Thu, 23 Jan 2014 19:47:18 +0000 (20:47 +0100)]
mediawiki.notification: Hide #mw-notification-area when it's empty

We need to hide the area manually, since it has padding, causing it to
obscure whatever is behind it in spite of being invisible.

Bug: 52659
Change-Id: I54e51b392673bc361af4e7bf703df75b83d783d4

10 years agoImproved way to tick all namespaces when Select all is ticked
tonythomas01 [Tue, 25 Feb 2014 12:57:24 +0000 (18:27 +0530)]
Improved way to tick all namespaces when Select all is ticked

Follow up from Ie62b9186e98dd770de4282ea57d7248158a6e782
Co Author : Helder.Wiki

Change-Id: Iea336d40ac7d1271d4934797f74dabadea0cdafe

10 years agoMerge "Fix ForeignDBViaLBRepo favicon"
jenkins-bot [Tue, 25 Feb 2014 12:30:11 +0000 (12:30 +0000)]
Merge "Fix ForeignDBViaLBRepo favicon"

10 years agoMerge "Remove doc about a file that doesnt exist"
jenkins-bot [Tue, 25 Feb 2014 11:55:51 +0000 (11:55 +0000)]
Merge "Remove doc about a file that doesnt exist"

10 years agoRemove doc about a file that doesnt exist
addshore [Tue, 25 Feb 2014 11:50:42 +0000 (12:50 +0100)]
Remove doc about a file that doesnt exist

Change-Id: I1bcf0a8a9a10906b6078c3f45f864359f6d32eda

10 years agomediawiki.api: Fix documentation of ajax() to mention exposed jqXHR
Gergő Tisza [Tue, 18 Feb 2014 18:55:04 +0000 (18:55 +0000)]
mediawiki.api: Fix documentation of ajax() to mention exposed jqXHR

Fixes the documentation which got out of sync after I49977b5f9
changed the resolution of the promise to also pass the jqXHR.

Change-Id: Ifa9899c1e235af19c3df21337db97cb12b0b5806

10 years agoDocument $wgResourceLoaderMaxage in DefaultSettings.php
umherirrender [Tue, 11 Feb 2014 18:50:34 +0000 (19:50 +0100)]
Document $wgResourceLoaderMaxage in DefaultSettings.php

To have a start and to remove the todo.

Change-Id: I62421f1399c0f3e77238c39322028b969c0e925f

10 years agoMerge "Add sequence support for upsert in DatabaseOracle"
jenkins-bot [Tue, 25 Feb 2014 00:49:31 +0000 (00:49 +0000)]
Merge "Add sequence support for upsert in DatabaseOracle"

10 years agoMerge "Add scope to Exception class methods"
jenkins-bot [Mon, 24 Feb 2014 22:52:38 +0000 (22:52 +0000)]
Merge "Add scope to Exception class methods"

10 years agoMerge "Split Exception.php"
jenkins-bot [Mon, 24 Feb 2014 22:52:24 +0000 (22:52 +0000)]
Merge "Split Exception.php"

10 years agoFix ForeignDBViaLBRepo favicon
Gergő Tisza [Mon, 24 Feb 2014 22:10:02 +0000 (22:10 +0000)]
Fix ForeignDBViaLBRepo favicon

Due to the weird inheritance structure of the FileRepo tree,
ForeignDBViaLBRepo inherited the wrong getInfo behavior and
returned the favicon of the local wiki.

Change-Id: I4892247c0e4a2e05c9148efe089f0ff52459bbd0
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/253

10 years agoMerge "Avoid key fragmentation in FileBackend"
jenkins-bot [Mon, 24 Feb 2014 21:55:06 +0000 (21:55 +0000)]
Merge "Avoid key fragmentation in FileBackend"

10 years agoMerge "API: Add prop=redirects and list=allredirects"
jenkins-bot [Mon, 24 Feb 2014 21:52:02 +0000 (21:52 +0000)]
Merge "API: Add prop=redirects and list=allredirects"

10 years agoAvoid key fragmentation in FileBackend
Aaron Schulz [Mon, 24 Feb 2014 21:22:15 +0000 (13:22 -0800)]
Avoid key fragmentation in FileBackend

* Make sure that global backends do not prefix the cache keys
  with local wiki IDs for container and file stat entries.
  This causes fragmentation and breaks invalidation.

Change-Id: Ic02d6e41f828dc82cc07c7d24c8af29c46392a9c

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

Change-Id: Ie74d3a5bd0aaf4b6231da21997d51361df696995

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

Change-Id: I2535a33defbc75fdb860acac3c98a8511e064a0a

10 years agoAdd scope to Exception class methods
addshore [Mon, 24 Feb 2014 20:21:09 +0000 (21:21 +0100)]
Add scope to Exception class methods

Change-Id: I0097aa9a6d9c178c85706b90484f7a68d3ddbc8b

10 years agoSplit Exception.php
addshore [Mon, 24 Feb 2014 20:13:49 +0000 (21:13 +0100)]
Split Exception.php

Change-Id: I8273b342f8814887b65227457d0a461d7cd31e75

10 years agoMerge "Stop using and deprecate jquery.delayedBind"
jenkins-bot [Mon, 24 Feb 2014 19:41:04 +0000 (19:41 +0000)]
Merge "Stop using and deprecate jquery.delayedBind"

10 years agoMerge "Remove another ss_active_users check from SiteStats::isSane"
jenkins-bot [Mon, 24 Feb 2014 18:21:21 +0000 (18:21 +0000)]
Merge "Remove another ss_active_users check from SiteStats::isSane"

10 years agoMerge "DefaultSettings.php: Remove $wgPasswordSenderName"
jenkins-bot [Mon, 24 Feb 2014 18:06:39 +0000 (18:06 +0000)]
Merge "DefaultSettings.php: Remove $wgPasswordSenderName"

10 years agoDefaultSettings.php: Remove $wgPasswordSenderName
Bartosz Dziewoński [Mon, 24 Feb 2014 17:40:36 +0000 (18:40 +0100)]
DefaultSettings.php: Remove $wgPasswordSenderName

It doesn't do anything.

Follow-up to Ibfd28cd181365c8c0b5f3e8ffe8f5de8c89844a3.

Change-Id: Id20e4ec1cdae94fadb278146cd72d5a9b247dccf

10 years agoRemove another ss_active_users check from SiteStats::isSane
umherirrender [Mon, 24 Feb 2014 17:17:35 +0000 (18:17 +0100)]
Remove another ss_active_users check from SiteStats::isSane

Also add a comment to method doc to make sure, nobody will add it again.

Follow-Up: Id8f1cb7035ae0058fb34a6c7bdf7bf9f6c740a69
Follow-Up: I268599be96106e1175fdf9750a2adc9468ebc93c
Change-Id: Ifd6da554b531720aace4497f7fbc2f58c12edc07

10 years agoVector: Delete edit-icon.png
Bartosz Dziewoński [Sat, 8 Feb 2014 22:16:22 +0000 (23:16 +0100)]
Vector: Delete edit-icon.png

It's unused. It was added with the commit that added Vector itself
(r51086) and survived being recompressed four times since then.

Change-Id: Ia4124c2853ed98f3d0afacd3489f8b1cab0c4c16

10 years agoAPI: Add prop=redirects and list=allredirects
Brad Jorsch [Mon, 30 Dec 2013 21:57:27 +0000 (16:57 -0500)]
API: Add prop=redirects and list=allredirects

While redirects can be sort-of queried using list=backlinks with
blfilterredir=redirects, we can get more accurate results with a module
dedicated to this purpose. We can also get the fragment of the redirect
without having to load the content of the redirect page and parse it.

I'm a bit surprised I was able to put together a query for this that
will work as a prop module. Or did I overlook something?

And then we may as well add the corresponding list=allredirects, to work
like alllinks, allfileusages, and alltransclusions.

Bug: 57057
Change-Id: I81082aa9e4e3a3b2c66cc4f9970a97eed83a6a4f

10 years agojquery.suggestions, mediawiki.searchSuggest: Fix form submission
Bartosz Dziewoński [Sat, 22 Feb 2014 16:07:01 +0000 (17:07 +0100)]
jquery.suggestions, mediawiki.searchSuggest: Fix form submission

Don't override form submission behavior (by capturing the Enter key on
search box, preventing default behavior, and then manually submitting
the form); just let it happen if it's wanted.

Then swap out a few unjustified stopImmediatePropagation() calls to
stopPropagation() so that the event can be actually fired. Add some
comments while we're at it.

This allows the user to use Ctrl+Enter (or Shift+Enter) to submit the
form into a new tab (or new window) on browsers that support this
(currently Opera and Chrome).

Bug: 34756
Bug: 35974
Change-Id: I49ef7cc89400032505bc444f21d522d5b5d47586

10 years agojquery.suggestions: Do not duplicate keypress logic
Bartosz Dziewoński [Sat, 22 Feb 2014 16:06:53 +0000 (17:06 +0100)]
jquery.suggestions: Do not duplicate keypress logic

This is handled in keyup/keypress handlers, no need to repeat it twice.

Change-Id: I3ddcd21136b44eedcec53b1ecc91bad38f697402

10 years agoMerge "Fix possible error list for action=query&list=blocks"
jenkins-bot [Mon, 24 Feb 2014 14:56:03 +0000 (14:56 +0000)]
Merge "Fix possible error list for action=query&list=blocks"

10 years agoMerge "Ticking 'Search in all namespaces' in prefs should disable other checkboxes"
jenkins-bot [Mon, 24 Feb 2014 14:53:04 +0000 (14:53 +0000)]
Merge "Ticking 'Search in all namespaces' in prefs should disable other checkboxes"

10 years agoFix possible error list for action=query&list=blocks
umherirrender [Tue, 11 Feb 2014 18:37:07 +0000 (19:37 +0100)]
Fix possible error list for action=query&list=blocks

possible errors for requireMaxOneParameter are generated with getRequireMaxOneParameterErrorMessages,
not getRequireOnlyOneParameterErrorMessages

Change-Id: Ia3d705ddf2f2d969b3112962a13f27dc9a106037

10 years agoTicking 'Search in all namespaces' in prefs should disable other checkboxes
tonythomas01 [Fri, 31 Jan 2014 18:51:35 +0000 (00:21 +0530)]
Ticking 'Search in all namespaces' in prefs should disable other checkboxes

Ticking 'Search in all namespaces' will disable all other checkboxes
below. They will regain their original state once it is unticked.

Bug: 60285
Change-Id: Ie62b9186e98dd770de4282ea57d7248158a6e782

10 years agoMake SiteStats (re)initializing more sane
Marius Hoch [Sun, 23 Feb 2014 20:47:48 +0000 (21:47 +0100)]
Make SiteStats (re)initializing more sane

Don't set ss_active_users back to its default in SiteStatsInit::refresh.
Also remove SiteStatsInit::update and make refresh() protected.
Also don't consider ss_active_users in SiteStats::isSane as that value
isn't going to be fixed by the following SiteStatsInit::refresh call.

Change-Id: I268599be96106e1175fdf9750a2adc9468ebc93c

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 23 Feb 2014 21:43:18 +0000 (21:43 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I11ac7d4aeadddc7f20f44b98a9c08c8f20019ee6

10 years agoResources.php: Create a section for MediaWiki UI
Bartosz Dziewoński [Sun, 23 Feb 2014 18:44:04 +0000 (19:44 +0100)]
Resources.php: Create a section for MediaWiki UI

The modules were placed under MediaWiki Legacy…

Change-Id: I36d8753689a286a7cb6a0df128ce0e1e3d7ee780