lhc/web/wiklou.git
9 years agoHide 'redirectedfrom' notice when printing articles
glaisher [Sat, 22 Nov 2014 09:35:58 +0000 (14:35 +0500)]
Hide 'redirectedfrom' notice when printing articles

Wrap the 'redirectedfrom' message in "mw-redirectedfrom" id
and then add it to commonPrint.css to hide it when printing.

Bug: 16296
Change-Id: I077bda9596c37b122a1f6964470d9d85108d834e

9 years agoMerge "Allow maxlength attribute on HTMLSelectAndOtherField"
jenkins-bot [Sun, 16 Nov 2014 23:48:45 +0000 (23:48 +0000)]
Merge "Allow maxlength attribute on HTMLSelectAndOtherField"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 16 Nov 2014 21:10:30 +0000 (22:10 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I3cc1a14ecadf25d0abb58fbaa9d464bb6b6af9dd

9 years agoAllow maxlength attribute on HTMLSelectAndOtherField
umherirrender [Sat, 26 Jul 2014 21:56:37 +0000 (23:56 +0200)]
Allow maxlength attribute on HTMLSelectAndOtherField

A reason on a SelectAndOtherField can have two parts, one of the scroll
down box and a free text field. The free text field is actually
unlimited.
This patch allows the maxlength on that field. To respect the concat of
the two parts, also javascript code is added, which adds a dynamic
maxlength to respect also the text from the scroll down box.

The HTMLSelectAndOtherField is only used on Special:Block,
where the maxlength attribute is now set to 255 (length of the database
field ipb_reason).

Change-Id: I5c164b41ab047e7ecf9d92db6eddcc980e2db048

9 years agoCSSMin: Rewrite encodeImageAsDataURI()
Bartosz Dziewoński [Fri, 7 Nov 2014 19:21:58 +0000 (20:21 +0100)]
CSSMin: Rewrite encodeImageAsDataURI()

* Make it actually check against the URI length, not file size.
  Previous code could produce URIs that edged just over the limit.
* Replace $sizeLimit parameter with $ie8Compat, because that's the
  only use case and the file size limit approach was flawed per above,
  anyway.
* Remove CSSMin::EMBED_SIZE_LIMIT constant, which is not used anymore.
  CSSMin::DATA_URI_SIZE_LIMIT still exists.
* Change code flow to avoid repetition.
* Split off new method, encodeStringAsDataURI(), that does actual
  encoding rather than file handling.

Change-Id: I3704404ce831d7e0f6e3a65f23c76f313ad13238

9 years agoMWException: Log stack traces for php errors (not exceptions)
Timo Tijhof [Sun, 16 Nov 2014 11:49:25 +0000 (12:49 +0100)]
MWException: Log stack traces for php errors (not exceptions)

* Remove use of 'error' where it's redundant.
* Remove call to logException from responsibility of MWException.
  Call from exception handler instead.

Change-Id: I8764cf5df87b226813c9b9cf99f9b4f3fa4b7c92

9 years agoMerge "doc: raise doxygen lookup cache"
jenkins-bot [Sun, 16 Nov 2014 09:43:27 +0000 (09:43 +0000)]
Merge "doc: raise doxygen lookup cache"

9 years agoUse correct case of function ImageGallery::toHTML
umherirrender [Mon, 3 Nov 2014 16:39:45 +0000 (17:39 +0100)]
Use correct case of function ImageGallery::toHTML

Change-Id: I8040c02618a58bb8840658bb7a5c697766c77d2d

9 years agoRemove LinkSearchPage::doQuery override
umherirrender [Fri, 26 Sep 2014 17:31:51 +0000 (19:31 +0200)]
Remove LinkSearchPage::doQuery override

It is not called and not working, because it missed return statements.

The validation check is done in getQueryInfo and the message is added in
execute, when needed.

Change-Id: I9acbd2f09a922d5a7d66e8ce55e8d24ae65ab560

9 years agoAutoloadGenerator: Add newline at end of output file
Kevin Israel [Fri, 14 Nov 2014 23:33:04 +0000 (18:33 -0500)]
AutoloadGenerator: Add newline at end of output file

Change-Id: I2b5a1adc115afd9430c1ea91285516c9c4290875

9 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Sat, 15 Nov 2014 21:41:20 +0000 (21:41 +0000)]
Merge "Localisation updates from https://translatewiki.net."

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 15 Nov 2014 21:31:09 +0000 (22:31 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I15904e6e70bb623ae6c5259ce2e37ccb5d61c9dd

9 years agoSet default value for $wgSharedSchema
umherirrender [Thu, 13 Nov 2014 18:43:06 +0000 (19:43 +0100)]
Set default value for $wgSharedSchema

Was added in I25df82065a307b9abc30c694f8c8afff0996d7c1 back in REL1_23

Change-Id: I291e770861751e037befe1db004e5e3f8b449f6c

9 years agoSimplify checks on Special:UserLogin/signup
umherirrender [Mon, 25 Aug 2014 18:12:27 +0000 (20:12 +0200)]
Simplify checks on Special:UserLogin/signup

I27c488e4008a924117ff6bac2216f148cd5e7abd changed the validation code in
User::getCanonicalName, the # and Title::makeTitleSafe checks now done
there and can be removed here.

Follow-Up: I27c488e4008a924117ff6bac2216f148cd5e7abd
Follow-Up: I88c479cea2bc9d2eab882e0ee8ebcbe2d1dd125e
Follow-Up: I983e3f528491817f9f31f71a92d8d2946ce5941d
Change-Id: I17bf88be6398dc402295264ca9bfd57809c872d7

9 years agoMerge "Increase QUnit.config.testTimeout to 30s"
jenkins-bot [Sat, 15 Nov 2014 16:44:39 +0000 (16:44 +0000)]
Merge "Increase QUnit.config.testTimeout to 30s"

9 years agoIncrease QUnit.config.testTimeout to 30s
Erik Bernhardson [Thu, 13 Nov 2014 22:31:19 +0000 (14:31 -0800)]
Increase QUnit.config.testTimeout to 30s

The default value of 10s is ocasionally failing when loading resources
via RL.  Increase to 30s as suggested in the qunit documentation.

http://api.qunitjs.com/QUnit.config/#config-testTimeout

Change-Id: I288db068c8dd1041e0a9be959b3b0c6ddcc7606e

9 years agoUpdate "apihelp-upload-param-stash"
Siebrand Mazeland [Fri, 14 Nov 2014 12:35:54 +0000 (13:35 +0100)]
Update "apihelp-upload-param-stash"

Per suggestion by Lokal Profil at
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Apihelp-upload-param-stash/sv

Change-Id: I377fb210ee191deab612a156268eca57c6746337

9 years agoMerge "generateLocalAutoload.php: Abort for web requests"
jenkins-bot [Fri, 14 Nov 2014 23:41:46 +0000 (23:41 +0000)]
Merge "generateLocalAutoload.php: Abort for web requests"

9 years agogenerateLocalAutoload.php: Abort for web requests
Kevin Israel [Fri, 14 Nov 2014 22:27:16 +0000 (17:27 -0500)]
generateLocalAutoload.php: Abort for web requests

The Maintenance class already does this, though this script does not use it
for the obvious reason that when there is a missing or incorrect autoloader
entry, it may not be possible to initialize MediaWiki.

Hence it is necessary to do that explicitly in this script. Overwriting
autoload.php potentially could disrupt the operation of a production wiki
(the file is truncated when it is opened).

Change-Id: I05d5d4b7c30c4643e71ca5819783627688e15da7

9 years agomediawiki.skinning: Provide SVG version of the "magnify clip" icon
James D. Forrester [Mon, 10 Nov 2014 10:45:48 +0000 (10:45 +0000)]
mediawiki.skinning: Provide SVG version of the "magnify clip" icon

PNGs re-generated from the SVG.

Bug: 69705
Change-Id: Ica2e82598f545764a734399462231fe3c4ea7005

9 years agoMerge "Delete skins/common/images/bullet.gif"
jenkins-bot [Fri, 14 Nov 2014 22:22:59 +0000 (22:22 +0000)]
Merge "Delete skins/common/images/bullet.gif"

9 years agoMerge "Delete skins/common/images/magnify-clip.png"
jenkins-bot [Fri, 14 Nov 2014 22:22:51 +0000 (22:22 +0000)]
Merge "Delete skins/common/images/magnify-clip.png"

9 years agoMerge "Delete skins/common/{ajax.js, wikibits.js, images/{magnify-clip-rtl.png, redir...
jenkins-bot [Fri, 14 Nov 2014 22:10:59 +0000 (22:10 +0000)]
Merge "Delete skins/common/{ajax.js, wikibits.js, images/{magnify-clip-rtl.png, redirectltr.png, redirectrtl.png}}"

9 years agoDelete skins/common/images/bullet.gif
Bartosz Dziewoński [Fri, 14 Nov 2014 21:56:59 +0000 (22:56 +0100)]
Delete skins/common/images/bullet.gif

There are still some requests for it per bug 69277 comment 90, but per
bug 69678 comment 12 all usages have been already removed.

This is the last file in the skins/common/ directory.

Bug: 69277
Change-Id: Id9de81d0efa91fa20dfd10d56a8ae814de43ff6e

9 years agoDelete skins/common/images/magnify-clip.png
Bartosz Dziewoński [Fri, 14 Nov 2014 21:27:37 +0000 (22:27 +0100)]
Delete skins/common/images/magnify-clip.png

There are still some requests for it per bug 69277 comment 90, but per
bug 69678 comment 10 all usages are forward-compatible or have been
already removed.

Bug: 69277
Change-Id: If6a16fb5aa5a826a58c8dec67e3583ccf12761e2

9 years agoMerge "mediawiki.special.changeslist.legend: Avoid legend as stairs"
jenkins-bot [Fri, 14 Nov 2014 21:12:59 +0000 (21:12 +0000)]
Merge "mediawiki.special.changeslist.legend: Avoid legend as stairs"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 14 Nov 2014 20:54:28 +0000 (21:54 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I25f795abac11cdcf3c3aede626b026407f67e699

9 years agomediawiki.special.changeslist.legend: Avoid legend as stairs
Fomafix [Fri, 14 Nov 2014 20:30:49 +0000 (20:30 +0000)]
mediawiki.special.changeslist.legend: Avoid legend as stairs

Skin Modern has
  dt { margin-bottom: 0.1em }
This generates a legend like a stair.
This change resets the margin to the default for .mw-changeslist-legend.

Change-Id: I3cf0301c1f46cfbb1b9170b18ca4dc52a7a7a903

9 years agoAutoloadGenerator: Don't throw MWExceptions
Kunal Mehta [Fri, 14 Nov 2014 19:47:52 +0000 (11:47 -0800)]
AutoloadGenerator: Don't throw MWExceptions

The class won't have been autoloaded, so it can't be used.

Change-Id: I54a9be600839c7bffe7debb8ee35ac46694390b4

9 years agoAvoid sending spammy @X xhprof entries over UDP
Aaron Schulz [Thu, 13 Nov 2014 21:01:25 +0000 (13:01 -0800)]
Avoid sending spammy @X xhprof entries over UDP

Change-Id: I8509932f7368cab2a5426f437845e2849a82d9b4

9 years agoPerformance improvements for autoload generator
Erik Bernhardson [Fri, 14 Nov 2014 18:18:09 +0000 (10:18 -0800)]
Performance improvements for autoload generator

Both zend and HHVM run through the autoload file faster when it
is a single array literal rather than individual key assignments.

The __DIR__ string concatenation remains because HHVM and Zend >= 5.5.0
optimize away constant string concatenation.

Change-Id: I75403ace264b09930d5cc545e62b8d7c3f1ad064

9 years agoDelete skins/common/{ajax.js, wikibits.js, images/{magnify-clip-rtl.png, redirectltr...
Bartosz Dziewoński [Mon, 10 Nov 2014 15:38:04 +0000 (16:38 +0100)]
Delete skins/common/{ajax.js, wikibits.js, images/{magnify-clip-rtl.png, redirectltr.png, redirectrtl.png}}

* ajax.js, wikibits.js:
  Was kept for third parties. (user scripts etc.)
* redirectltr.png, redirectrtl.png:
  Was kept for cached stylesheets, after I8fa565833545e41d02 removed
  usage in MediaWiki core.
* magnify-clip-rtl.png:
  Was kept for third parties. (user scripts etc.)

Bug: 69277
Change-Id: I54b170b557414e2f3cda4c85053cd0f2cbefc10d

9 years agoMerge "Update OOjs UI to v0.1.0-pre (fe4076af75)"
jenkins-bot [Fri, 14 Nov 2014 05:58:33 +0000 (05:58 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (fe4076af75)"

9 years agoMerge "Generate $wgAutoloadLocalClasses with a maint script"
jenkins-bot [Fri, 14 Nov 2014 02:25:46 +0000 (02:25 +0000)]
Merge "Generate $wgAutoloadLocalClasses with a maint script"

9 years agoMerge "Doc: Document problem sorting inserted data"
jenkins-bot [Fri, 14 Nov 2014 00:36:45 +0000 (00:36 +0000)]
Merge "Doc: Document problem sorting inserted data"

9 years agoDoc: Document problem sorting inserted data
Erik Bernhardson [Sat, 8 Nov 2014 00:43:57 +0000 (16:43 -0800)]
Doc: Document problem sorting inserted data

Adds documentation referencing the root cause of the linked intermittent
failures caused by some versions of sqlite mis-handling this data. Logs
an error indicating that this is a known buggy workaroung along with
the solution.

Bug: 72367
Change-Id: If26346e4d71560d6a8a3f79a52e52ee6e90e0304

9 years agoGenerate $wgAutoloadLocalClasses with a maint script
Erik Bernhardson [Fri, 26 Sep 2014 23:13:23 +0000 (16:13 -0700)]
Generate $wgAutoloadLocalClasses with a maint script

Currently all new classes in core need to be registered
with the autoloader.  This is acceptable but inconvenient.

This patch adds a script to read the output of php's tokenizer
to determine the names of all the classes within mediawiki core.
Patches with new or removed classes will just need to rerun
the maint script rather than manually adjusting the arrays.

A full conversion to psr-0 + composer would solve this as well,
but this is a very non-intrusive patch that can get us some
portion of the benefit(reduced manual maintenance) today rather
than months down the line once we figure out all the intricacies
of mediawiki + composer.

Change-Id: I8b1bdb84a9699de79f8b9951fa61e5437d083c55

9 years agoUpdate OOjs UI to v0.1.0-pre (fe4076af75)
James D. Forrester [Thu, 13 Nov 2014 22:25:31 +0000 (22:25 +0000)]
Update OOjs UI to v0.1.0-pre (fe4076af75)

New changes:
b758cff Localisation updates from https://translatewiki.net.
2584648 MenuWidget: Don't close menu when you click the scroll bar
16d057c Don't close PopupToolGroups when the scroll bar is clicked
fe4076a Localisation updates from https://translatewiki.net.

Change-Id: I1872d16e33e8ad8f4d0e13ce7533587ab3b0614a

9 years agoAdded wfLogDBError() call to LoadBalancer::doWait()
Aaron Schulz [Mon, 6 Oct 2014 17:42:58 +0000 (10:42 -0700)]
Added wfLogDBError() call to LoadBalancer::doWait()

Change-Id: Ida0970754a2a7287c129bb5ad633765dab97133a

9 years agoMerge "Use setMwGlobals on execption tests"
jenkins-bot [Thu, 13 Nov 2014 21:17:37 +0000 (21:17 +0000)]
Merge "Use setMwGlobals on execption tests"

9 years agoMerge "ObjectCacheSessionHandler::getCache() returns BagOStuff"
jenkins-bot [Thu, 13 Nov 2014 21:14:52 +0000 (21:14 +0000)]
Merge "ObjectCacheSessionHandler::getCache() returns BagOStuff"

9 years agoUse setMwGlobals on execption tests
umherirrender [Thu, 6 Nov 2014 20:17:20 +0000 (21:17 +0100)]
Use setMwGlobals on execption tests

Simplify $wgOut handling by setting the global with setMwGlobals

Change-Id: I64bf23e657ea82316e1cd71df6491322e537d5d1

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 13 Nov 2014 20:57:59 +0000 (21:57 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I277c686c6cabce222ba6279670581383bb17de0d

9 years agoObjectCacheSessionHandler::getCache() returns BagOStuff
Kunal Mehta [Thu, 13 Nov 2014 20:53:50 +0000 (12:53 -0800)]
ObjectCacheSessionHandler::getCache() returns BagOStuff

Change-Id: I7f514857154297c7033dd26af97b6ac83c13f104

9 years agoMerge "Deprecate rarely or unused *LinkAttributes methods in Linker"
jenkins-bot [Thu, 13 Nov 2014 20:41:33 +0000 (20:41 +0000)]
Merge "Deprecate rarely or unused *LinkAttributes methods in Linker"

9 years agoWork around test provider running before setUp()
Bryan Davis [Thu, 13 Nov 2014 20:18:08 +0000 (13:18 -0700)]
Work around test provider running before setUp()

If the xhprof extension is not present we skip running the test, but
phpunit runs the test provider function before that check so we need to
guard against missing constants to avoid spurious warnings in the test
output.

Change-Id: I5541a062ff0c47ca8802315554b3f32dfd01dcd0

9 years agoExpose legaltitlechars through the API
Arlo Breault [Thu, 13 Nov 2014 17:35:48 +0000 (09:35 -0800)]
Expose legaltitlechars through the API

Bug: 47651
Change-Id: I79fdd698e6df75b1823b0d2d150db68e862c640f

9 years agoDeprecate rarely or unused *LinkAttributes methods in Linker
aude [Thu, 13 Nov 2014 16:14:53 +0000 (17:14 +0100)]
Deprecate rarely or unused *LinkAttributes methods in Linker

Linker::getInterwikiLinkAttributes and Linker::getInternalLinkAttributesObj
are not not used any code in gerrit.

Linker::getInternalLinkAttributes is used once, in the Video extension.

Change-Id: I76d9b549e0fdccb9c1b4d9c12ba40a67c2733637

9 years agoMerge "SpecialRecentchanges: Repair recentchangestext in content language"
jenkins-bot [Thu, 13 Nov 2014 14:22:35 +0000 (14:22 +0000)]
Merge "SpecialRecentchanges: Repair recentchangestext in content language"

9 years agoRemove deprecated Linker::getExternalLinkAttributes method
aude [Thu, 13 Nov 2014 13:39:16 +0000 (14:39 +0100)]
Remove deprecated Linker::getExternalLinkAttributes method

deprecated since 1.18 and unused anywhere else in
core or all the extensions in gerrit:

https://github.com/search?utf8=%E2%9C%93&q=getExternalLinkAttributes+%40wikimedia&type=Code&ref=searchresults

Change-Id: Id5ae9186b3a83672c8310adb5dfdaf07bfec3d74

9 years agoSpecialRecentchanges: Repair recentchangestext in content language
Fomafix [Thu, 13 Nov 2014 13:37:22 +0000 (13:37 +0000)]
SpecialRecentchanges: Repair recentchangestext in content language

* Use getHtmlCode() instead of getCode() to generate a BCP 47 conform
  HTML lang attribute.
* Use <div> instead of <p> because the <p> gets rendered as

<p lang="en" dir="ltr"></p>
<p>Text</p>
<p></p>

and the <div> gets rendered as

<div lang="en" dir="ltr">
<p>Text</p>
</div>

* Set $lineStart = true

Change-Id: I62ce26ba550fb25bc2e770186cea3435374bb4e6

9 years agoMerge "Clarify that $wgAmericanDates is not limited to English"
jenkins-bot [Thu, 13 Nov 2014 13:04:44 +0000 (13:04 +0000)]
Merge "Clarify that $wgAmericanDates is not limited to English"

9 years agoMerge "Remove require_once from some tests by adding classes to TestsAutoLoader"
jenkins-bot [Thu, 13 Nov 2014 13:03:55 +0000 (13:03 +0000)]
Merge "Remove require_once from some tests by adding classes to TestsAutoLoader"

9 years agoMerge "Don't fiddle with $wgLanguageCode in KkConverter"
jenkins-bot [Thu, 13 Nov 2014 08:30:48 +0000 (08:30 +0000)]
Merge "Don't fiddle with $wgLanguageCode in KkConverter"

9 years agoRemove per-template profiling
Chad Horohoe [Thu, 30 Oct 2014 22:45:24 +0000 (15:45 -0700)]
Remove per-template profiling

Creates absurd dependency on the profiler from the parser. This profiling
is also not compatible with function-level profiling that we're trying to
aim for with xhprof.

Change-Id: I3c780fcb06e3470a0cbf50311ba916a0b67ea49e

9 years agoMove request-only template profiling to an always-on parser report
Aaron Schulz [Wed, 12 Nov 2014 20:28:32 +0000 (12:28 -0800)]
Move request-only template profiling to an always-on parser report

Change-Id: I0660c8d6cac0dadab648eac9736504b7939320f3

9 years agoMerge "MediaTransformOutput: Allow <img> alt value to be "0""
jenkins-bot [Wed, 12 Nov 2014 23:22:17 +0000 (23:22 +0000)]
Merge "MediaTransformOutput: Allow <img> alt value to be "0""

9 years agoMerge "Enable profiling via xhprof"
jenkins-bot [Wed, 12 Nov 2014 22:00:30 +0000 (22:00 +0000)]
Merge "Enable profiling via xhprof"

9 years agoClarify that $wgAmericanDates is not limited to English
Christian Aistleitner [Wed, 5 Nov 2014 09:58:58 +0000 (10:58 +0100)]
Clarify that $wgAmericanDates is not limited to English

$wgAmericanDates is used whenever the defaultDateFormat is set to
"dmy or mdy", which is not only true for English, but currently also
(among others) for Macedonian, or Persian.

Change-Id: I75fd239bc617e4fc2caa738923021b9d22adb1a1

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 12 Nov 2014 20:15:54 +0000 (21:15 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Iffbc990b2bd87cf44db85b8c98dc2fffb9181c33

9 years agoRemove require_once from some tests by adding classes to TestsAutoLoader
umherirrender [Wed, 12 Nov 2014 19:24:08 +0000 (20:24 +0100)]
Remove require_once from some tests by adding classes to TestsAutoLoader

Change-Id: If6d0a72acb98e0971fcce2facb239b67cbe639a5

9 years agoAPI: Don't add searchinfo or interwiki info from generator=search
Brad Jorsch [Wed, 12 Nov 2014 19:16:30 +0000 (14:16 -0500)]
API: Don't add searchinfo or interwiki info from generator=search

Generators should generally just generate titles without adding
additional stuff to the result.

OTOH, there's no reason a generator can't generate interwiki titles.

Bug: 73321
Change-Id: I55d1d35c9d8bedbc68a201fab9d455bc011cc4d8

9 years agoMerge "Provide Status::__toString()"
jenkins-bot [Wed, 12 Nov 2014 18:32:47 +0000 (18:32 +0000)]
Merge "Provide Status::__toString()"

9 years agoAdd @covers tags to ObjectFactoryTest
Kunal Mehta [Tue, 11 Nov 2014 02:03:54 +0000 (18:03 -0800)]
Add @covers tags to ObjectFactoryTest

Change-Id: I0130b133ef8261e43082d90b08cf2b9abf64ffc9

9 years agoMerge "Add debug call to check that config passing to the image scalers works"
jenkins-bot [Wed, 12 Nov 2014 11:49:01 +0000 (11:49 +0000)]
Merge "Add debug call to check that config passing to the image scalers works"

9 years agodoc: raise doxygen lookup cache
Antoine Musso [Wed, 12 Nov 2014 10:24:27 +0000 (11:24 +0100)]
doc: raise doxygen lookup cache

The lookup cache size is exhausted again, bumping it from:

   131072 entries - 2^(16+1)
to 262144 entries - 2^(16+2)

See previous bump for details:
    432a0cb https://gerrit.wikimedia.org/r/69709

Change-Id: I9a15cce6f77745c4e913a562e8f1f43a4988c83d

9 years agoMerge "mediawiki.ui: Clean up comments in forms.less"
Prtksxna [Wed, 12 Nov 2014 00:58:21 +0000 (00:58 +0000)]
Merge "mediawiki.ui: Clean up comments in forms.less"

9 years agoProvide Status::__toString()
saper [Tue, 26 Aug 2014 20:10:16 +0000 (22:10 +0200)]
Provide Status::__toString()

maintenance/eval.php is much easier to use now,
you can just print $statusInstance;

Change-Id: I068b0f54b16d618a1f6115133632885e8e45e897

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 11 Nov 2014 20:44:12 +0000 (21:44 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I821de79ae37348d2f0e03514358a2b15c38809a1

9 years agoUpdate OOjs UI to v0.1.0-pre (05f0fefc3f)
James D. Forrester [Tue, 11 Nov 2014 16:30:05 +0000 (16:30 +0000)]
Update OOjs UI to v0.1.0-pre (05f0fefc3f)

New changes:
e784137 mediawiki: Replace instances of 0.3em border-radius with variable
9b47eff Update OOjs to v1.1.2
3ad3295 Localisation updates from https://translatewiki.net.
59e926f Murdering OptionWidget's `rel` config option
ca6a16f Show the modal overlay as soon as openWindow is called
69fb4a0 Localisation updates from https://translatewiki.net.
d579dbd Localisation updates from https://translatewiki.net.
af5f5b9 Match 'color' rules to 'background-color' rules for accessibility
f1efb3b .theme-oo-ui-textInputWidget cleanup
845bb0a Localisation updates from https://translatewiki.net.
05f0fef Add missing config documentation for PendingElement

Change-Id: Iec009d9e535cd4427c2bb1100e29cf78b4494152

9 years agoDon't fiddle with $wgLanguageCode in KkConverter
This, that and the other [Sat, 8 Nov 2014 08:39:32 +0000 (19:39 +1100)]
Don't fiddle with $wgLanguageCode in KkConverter

This was causing problems with the setlang= and uselang= parameters in the
URL being ignored on kkwiki.

Bug: 64440
Change-Id: I4e2a20c707fd4b9b8a581a9d14e04b6cfc8b4b5c

9 years agoMoved MapCacheLRU to libs/
Aaron Schulz [Mon, 10 Nov 2014 17:32:46 +0000 (09:32 -0800)]
Moved MapCacheLRU to libs/

Change-Id: Icb820787afe7298dd3124f5168d3efff19e53ab6

9 years agoMerge "Improve doPrepareInternal error messages"
jenkins-bot [Mon, 10 Nov 2014 21:03:13 +0000 (21:03 +0000)]
Merge "Improve doPrepareInternal error messages"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 10 Nov 2014 20:37:34 +0000 (21:37 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I44c94dd9fe9b4e2bc8eadf08c4ca1805383f8f95

9 years agoMerge "Move CdbTest into includes/libs/cdb as well"
jenkins-bot [Mon, 10 Nov 2014 19:17:29 +0000 (19:17 +0000)]
Merge "Move CdbTest into includes/libs/cdb as well"

9 years agoMerge "cdb: One class per file"
jenkins-bot [Mon, 10 Nov 2014 19:13:07 +0000 (19:13 +0000)]
Merge "cdb: One class per file"

9 years agoMerge "Improved/additional logging for $wgTitle abuses"
jenkins-bot [Mon, 10 Nov 2014 19:12:14 +0000 (19:12 +0000)]
Merge "Improved/additional logging for $wgTitle abuses"

9 years agocdb: One class per file
Kunal Mehta [Mon, 10 Nov 2014 18:56:04 +0000 (10:56 -0800)]
cdb: One class per file

Change-Id: I18c6f58d8b3747c4da9d74884a3c9a3571f403f3

9 years agoImproved/additional logging for $wgTitle abuses
Chad Horohoe [Fri, 7 Nov 2014 18:36:29 +0000 (10:36 -0800)]
Improved/additional logging for $wgTitle abuses

Change-Id: I6599aa8abe30c1888ab5df023a0d4bf346315400

9 years agoMerge "Add periods to some move-related error messages"
jenkins-bot [Mon, 10 Nov 2014 19:04:30 +0000 (19:04 +0000)]
Merge "Add periods to some move-related error messages"

9 years agoMove CdbTest into includes/libs/cdb as well
Kunal Mehta [Mon, 10 Nov 2014 19:02:46 +0000 (11:02 -0800)]
Move CdbTest into includes/libs/cdb as well

Change-Id: If0ad645129692129d5674fd0e6651032b03a13c0

9 years agoMerge "API: Make `usernames` a local variable"
jenkins-bot [Mon, 10 Nov 2014 18:56:23 +0000 (18:56 +0000)]
Merge "API: Make `usernames` a local variable"

9 years agoMerge "Move Cdb classes into includes/libs/cdb/"
jenkins-bot [Mon, 10 Nov 2014 18:56:20 +0000 (18:56 +0000)]
Merge "Move Cdb classes into includes/libs/cdb/"

9 years agoImprove doPrepareInternal error messages
Gilles Dubuc [Mon, 10 Nov 2014 17:45:48 +0000 (18:45 +0100)]
Improve doPrepareInternal error messages

Bug: 73229
Change-Id: Iee6c478d02c3d6f8d5f7d516c799d9bd53b0272f

9 years agoAPI: Make `usernames` a local variable
Patrick Westerhoff [Sat, 25 Oct 2014 01:51:28 +0000 (03:51 +0200)]
API: Make `usernames` a local variable

Instead of having a single-purpose instance variable, keep the array
local. This also allows reusing `prepareUsername` for other parameters.

Change-Id: Iea7c3c1f24a371a665ebdbeeb3e827262246f1b3

9 years agoMove Cdb classes into includes/libs/cdb/
Kunal Mehta [Mon, 10 Nov 2014 18:42:30 +0000 (10:42 -0800)]
Move Cdb classes into includes/libs/cdb/

Change-Id: I2c4fa605acf5e0cf1fdd4821fe6bcdd690b02759

9 years agoRemove documentation hinting LinkHolderArray::replace() should return value
Reedy [Sun, 2 Nov 2014 15:47:51 +0000 (15:47 +0000)]
Remove documentation hinting LinkHolderArray::replace() should return value

Return value not used in any code in our repo

Removes FIXME too

Change-Id: Ia2ec35099f0b54ea39c2f6b9371e94c3034bddb0

9 years agoCopy wl_notificationtimestamp when copying watchlist entries on move
Brad Jorsch [Mon, 10 Nov 2014 17:01:28 +0000 (12:01 -0500)]
Copy wl_notificationtimestamp when copying watchlist entries on move

When a page is moved, the new title is automatically added to the
watchlists of every user watching the old title. But we also need to
copy the wl_notificationtimestamp over, otherwise edits from before the
move aren't highlighted in the page history and such.

Bug: 73219
Change-Id: I657475c28944539daec14f838d3af4c2962a4b93

9 years agoMerge "Hide HHVM tag on Special:{Contributions,RecentChanges,...}"
jenkins-bot [Mon, 10 Nov 2014 18:15:37 +0000 (18:15 +0000)]
Merge "Hide HHVM tag on Special:{Contributions,RecentChanges,...}"

9 years agoMerge "Refactor content fetch condition in ApiQueryRevisionsBase"
jenkins-bot [Mon, 10 Nov 2014 18:14:25 +0000 (18:14 +0000)]
Merge "Refactor content fetch condition in ApiQueryRevisionsBase"

9 years agoHide HHVM tag on Special:{Contributions,RecentChanges,...}
Ori Livneh [Sat, 8 Nov 2014 23:28:30 +0000 (15:28 -0800)]
Hide HHVM tag on Special:{Contributions,RecentChanges,...}

The coming weeks will see HHVM rolled out to progressively more users, which
will make the HHVM change tag even more ubiquitous than it is today. A small
but significant number of users have said that they find the tag irritating or
confusing, so let's temporarily hide it from the interface. (We only need this
until the migration is complete, because after that we can just go back and
delete the tag from the database.)

With this patch, the HHVM tag is not shown in change lists, but you can still
filter on it.

This could be implemented as a proper feature, configurable by adding items to
a $wgHiddenChangeTags array. I decided against doing that because I'm uneasy
about its application beyond this particular case.

My plan is to cherry-pick this change to the production branches (if it gets
merged) and leave it in master until the tag is expunged. This will happen long
before the 1.25 branch date of April 15, 2015.

Bug: 73181
Change-Id: Iec9befeba4fe77df0ddd4f056d82b3d4e2dd2199

9 years agoRefactor content fetch condition in ApiQueryRevisionsBase
umherirrender [Sat, 8 Nov 2014 10:25:33 +0000 (11:25 +0100)]
Refactor content fetch condition in ApiQueryRevisionsBase

Use a member variable to make the ifs easier to maintain.

Change-Id: I535740094708c563298a8b8d34027519d3900758

9 years agoAdd debug call to check that config passing to the image scalers works
Gilles Dubuc [Mon, 10 Nov 2014 17:21:54 +0000 (18:21 +0100)]
Add debug call to check that config passing to the image scalers works

Change-Id: I2d1f7de7985e230752cdc8a9c4accae027e5592f
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/600

9 years agoMerge "Removed incomplete/unused DatabaseType interface"
jenkins-bot [Mon, 10 Nov 2014 17:15:41 +0000 (17:15 +0000)]
Merge "Removed incomplete/unused DatabaseType interface"

9 years agoMerge "hhvm: Detect json-c parser"
jenkins-bot [Mon, 10 Nov 2014 17:14:50 +0000 (17:14 +0000)]
Merge "hhvm: Detect json-c parser"

9 years agoMerge "Deprecate MWFunction::newObj() in favor of ObjectFactory"
jenkins-bot [Mon, 10 Nov 2014 16:53:16 +0000 (16:53 +0000)]
Merge "Deprecate MWFunction::newObj() in favor of ObjectFactory"

9 years agoRemoved incomplete/unused DatabaseType interface
Aaron Schulz [Mon, 10 Nov 2014 06:56:23 +0000 (22:56 -0800)]
Removed incomplete/unused DatabaseType interface

Change-Id: I95b64f0a74f0203092464c4900fef2ac97e3ba35

9 years agoMerge "Make allowing site-wide styles on restricted special pages a config option"
jenkins-bot [Sun, 9 Nov 2014 21:50:57 +0000 (21:50 +0000)]
Merge "Make allowing site-wide styles on restricted special pages a config option"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 9 Nov 2014 20:29:32 +0000 (21:29 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I5ac5f394a10a1e5c560435522128209591864471

9 years agohhvm: Detect json-c parser
Bryan Davis [Sat, 8 Nov 2014 22:33:57 +0000 (15:33 -0700)]
hhvm: Detect json-c parser

Add detection for a json-c powered json_decode() implementation. Default
loose parsing behavior was previously attributed to HHVM, but additional
investigation has found that this is actually a "feature" of json-c.
HHVM optionally links with json-c for distributions that wish to avoid
being encumbered by the "shall be used for Good, not Evil" clause of the
JSON.org parser's license. The test case implementation stays the same,
but a feature flag style check is added to determine if the parser being
used is lenient or not.

Bug: 72778
Change-Id: Ieb8dddd2e324c90f45f2fc27ac13ab5fff733302