Commit graph

59811 commits

Author SHA1 Message Date
Translation updater bot
cc53e2737f Localisation updates from https://translatewiki.net.
Change-Id: I72e27a8e125fc604c5fe47f73b243b96b9b50cc6
2014-11-18 21:05:56 +01:00
Kunal Mehta
000c6529d8 Profiler: Explicitly convert output type to class name
Follows-up b8d93fb4fd.

Change-Id: I50faa25fdc4fb980e0ff71014b8d1b2a5818af80
2014-11-18 11:12:07 -08:00
jenkins-bot
04340a21c5 Merge "Refactor profiling output from profiling" 2014-11-18 19:01:41 +00:00
Bartosz Dziewoński
b35ebdb1f5 mediawiki.action.history.diff: Rework print styles
* Remove extremely old print styles for diffs from commonPrint.css,
  added back in r6970. These were created for the old yellow-green-red
  diff styles and look terrible now.
* Add new, minimal print styles, that replace background colors with
  text decoration (underline for inserted text, line-through for
  deleted). Motivation is the same as in r6970: light colored backgrounds
  work great on displays, but not very well in black-and-white print.
* Fixed diff styles demo (mediawiki.action.history.diff.html), updated
  with print styles and better example.

Bug: 73544
Change-Id: Ibf08fa11f84ac0cf8c7ed4da8af2b8804de6ab6f
2014-11-18 18:48:15 +01:00
jenkins-bot
3bd3a3c044 Merge "filebackend: Log more details about backend-fail-internal errors" 2014-11-18 03:52:13 +00:00
Chad Horohoe
b8d93fb4fd Refactor profiling output from profiling
* Added a standard getFunctionStats() method for Profilers to return
  per function data as maps. This is not toolbar specific like getRawData().
* Cleaned up the interface of SectionProfiler::getFunctionStats() a bit.
* Removed unused cpu_sq, real_sq fields from profiler UDP output.
* Moved getTime/getInitialTime to ProfilerStandard.

Co-Authored-By: Aaron Schulz <aschulz@wikimedia.org>
Change-Id: I266ed82031a434465f64896eb327f3872fdf1db1
2014-11-17 19:26:04 -07:00
Ori Livneh
1d44597743 Avoid calling Title::makeTitleSafe in User::idFromName
We don't want to call Title::makeTitleSafe yet, since that call path
ends up needing the user language, which ends up trying to load the
user object, which ends up back in User::idFromName.

Bug: 54193
Change-Id: I05aacd30be66fe505b5c211113ea938fa82e2492
2014-11-17 17:58:50 -08:00
Roan Kattouw
07527e1e5b Update OOjs UI to v0.1.0-pre (f1abca8e82)
New changes:
5883e65 Add 'indeterminate' state to progress bar widget
fbe9248 Fix documentation for getRelativeSelectableItem
27f8805 Localisation updates from https://translatewiki.net.
2edfdaa Localisation updates from https://translatewiki.net.
40d08f0 Localisation updates from https://translatewiki.net.
ce8438f Update OOjs to v1.1.3
5721411 Prepare repository for RuboCop
f1abca8 Followup ca6a16f: use parent selector both for hiding and showing windows

Change-Id: I7b49bbc81e9b8ba501f0593daaacf7025f16bf00
2014-11-17 18:49:44 -05:00
Gilles Dubuc
a6f2310cc7 filebackend: Log more details about backend-fail-internal errors
Bug: 73094
Change-Id: I9e45284e3cfd55bc34d87009387a2c1766e2db4a
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/991
2014-11-17 23:36:47 +00:00
Translation updater bot
37acdbe533 Localisation updates from https://translatewiki.net.
Change-Id: I2e0ff8b47f799752f656915729510dad81c00d4a
2014-11-17 21:54:11 +01:00
James D. Forrester
3c90007190 Update OOjs to v1.1.3
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fcore.git/v1.1.3/History.md

Change-Id: I1bd75ea6f259ca8b35ca8e379a443788d4642f28
2014-11-17 11:26:17 -08:00
Brad Jorsch
9ecac65794 API: Always request page_is_redirect from ApiQueryInfo
The ApiPageSet doesn't know for sure whether it will be resolving
redirects until it is executed, as the revids parameter may override
that (and it can't easily check before being executed because it might
never actually be executed). So ApiQueryInfo needs to just
unconditionally request page_is_redirect and only consider later whether
to try using it.

Bug: 73464
Change-Id: I2297158188dae5476c5b9b5755ea26cf5b8ae487
2014-11-17 18:35:29 +00:00
Chad Horohoe
9144673b5c Remove profiler support from debugging toolbar
It never worked and creates extra dependencies on the profiler

Change-Id: I584c9e94d144baf48a654e23dd9f47690d94f13b
2014-11-17 18:27:46 +00:00
Bryan Davis
0b91f622a3 Prettier wfLogProfilingData() log message
Make the profiler logging output introduced in Iae11e1e a little nicer.
Stop adding the Profiler::getRawData() information and add the URL and
textual report to the default log message. When testing with a Monolog
logger and Logstash the getRawData output from the Xhprof profiler was
found to be too big to be usable. The default message output was found
to be less informative than desirable when a PSR-3 logger other than
MWLoggerLegacyLogger was used. MWLoggerLegacyLogger implements special
backwards compatible formatting for the profileoutput channel that will
not be effected by this change.

Change-Id: Id326aed4f72a3489fac30661c101ac3bb3af2530
2014-11-17 10:41:49 -07:00
jenkins-bot
478272b6e5 Merge "Consistently handle trailing slashes in subpage links." 2014-11-17 17:05:58 +00:00
Erik Bernhardson
5711d81126 Doc: Mention the php command in autoload.php to regenerate it
Adds a comment to the top of the generated autoload.php directing
developers to the command to regenerate the file so they may just
copy and paste the command.

Change-Id: If098a1eb51ed732378677215c0e438c73d506697
2014-11-17 16:35:32 +00:00
Bartosz Dziewoński
3e85dfb8ad Standardize indentation of multiline 'if'/'elseif' conditions
Always indent the continuation one level deeper, and always place the
closing parenthesis on the next line, per coding conventions.
https://www.mediawiki.org/wiki/Manual:Coding_conventions#Indenting_and_alignment
https://www.mediawiki.org/wiki/Manual:Coding_conventions#Line_continuation

Regexp used: (\t+)(if|while|\} elseif|foreach).+(?<![;}])\n\1\S

Also:
* Change to just one line if line length stays under 100 characters.
* Add "// Do nothing" comment in empty 'if' bodies.
* Change '#' comments to '//' comments near affected code.

Change-Id: I4f62658fddb5a0ed18bbf9b2231cd794683d6402
2014-11-17 15:33:34 +00:00
jenkins-bot
7e5c7d23c8 Merge "Keep buttons from changing size when they change state" 2014-11-17 10:49:38 +00:00
jenkins-bot
7ad90b5867 Merge "WebInstallerOutput: Apply wfBCP47() to lang attribute" 2014-11-17 09:27:39 +00:00
jenkins-bot
885a8bdc47 Merge "Allow maxlength attribute on HTMLSelectAndOtherField" 2014-11-16 23:48:45 +00:00
Translation updater bot
dad41529df Localisation updates from https://translatewiki.net.
Change-Id: I3cc1a14ecadf25d0abb58fbaa9d464bb6b6af9dd
2014-11-16 22:10:30 +01:00
umherirrender
b18197dd81 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
2014-11-16 21:35:51 +01:00
Bartosz Dziewoński
6e82fe6417 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
2014-11-16 18:06:35 +00:00
Timo Tijhof
399ba2fecf 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
2014-11-16 14:37:15 +01:00
jenkins-bot
de6141bc57 Merge "doc: raise doxygen lookup cache" 2014-11-16 09:43:27 +00:00
umherirrender
1865c95f3d Use correct case of function ImageGallery::toHTML
Change-Id: I8040c02618a58bb8840658bb7a5c697766c77d2d
2014-11-15 22:04:11 +00:00
umherirrender
f5b214d5f9 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
2014-11-15 21:56:31 +00:00
Kevin Israel
44ea55c41f AutoloadGenerator: Add newline at end of output file
Change-Id: I2b5a1adc115afd9430c1ea91285516c9c4290875
2014-11-15 21:44:52 +00:00
Translation updater bot
0e758ba10b Merge "Localisation updates from https://translatewiki.net." 2014-11-15 21:41:20 +00:00
Translation updater bot
3704e99ff9 Localisation updates from https://translatewiki.net.
Change-Id: I15904e6e70bb623ae6c5259ce2e37ccb5d61c9dd
2014-11-15 22:31:09 +01:00
umherirrender
3f03ae6623 Set default value for $wgSharedSchema
Was added in I25df82065a307b9abc30c694f8c8afff0996d7c1 back in REL1_23

Change-Id: I291e770861751e037befe1db004e5e3f8b449f6c
2014-11-15 21:25:55 +00:00
umherirrender
252e9ab048 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
2014-11-15 20:57:36 +00:00
jenkins-bot
acf9315481 Merge "Increase QUnit.config.testTimeout to 30s" 2014-11-15 16:44:39 +00:00
Erik Bernhardson
0fce9fd1e5 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
2014-11-15 16:38:39 +00:00
Siebrand Mazeland
9405223868 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
2014-11-15 13:53:35 +01:00
jenkins-bot
b9df65e00e Merge "generateLocalAutoload.php: Abort for web requests" 2014-11-14 23:41:46 +00:00
Kevin Israel
0a68289a8f 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
2014-11-14 18:16:24 -05:00
James D. Forrester
75441d7af8 mediawiki.skinning: Provide SVG version of the "magnify clip" icon
PNGs re-generated from the SVG.

Bug: 69705
Change-Id: Ica2e82598f545764a734399462231fe3c4ea7005
2014-11-14 23:10:57 +00:00
jenkins-bot
6ee5b825cc Merge "Delete skins/common/images/bullet.gif" 2014-11-14 22:22:59 +00:00
jenkins-bot
7023eb5707 Merge "Delete skins/common/images/magnify-clip.png" 2014-11-14 22:22:51 +00:00
jenkins-bot
4b63457dc7 Merge "Delete skins/common/{ajax.js, wikibits.js, images/{magnify-clip-rtl.png, redirectltr.png, redirectrtl.png}}" 2014-11-14 22:10:59 +00:00
C. Scott Ananian
8a797162f0 Consistently handle trailing slashes in subpage links.
The link text for [[/Foo/]] is `Foo` and the link text for
[[../Foo/]] is `Foo`.  So far so good.

But the link text for [[/Foo//]] is `Foo` while the link text
for [[../Foo//]] is `Foo/`.  We are stripping all trailing slashes
in the first case, but not the second.

Fix the code so that we strip all trailing slashes in both cases.
Update some of the comments in the code while we are at it.

Change-Id: Id61eacafea9820c404699a7902c8eb8102779516
2014-11-14 17:09:00 -05:00
Bartosz Dziewoński
1e8b1dd8cf 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
2014-11-14 21:57:51 +00:00
Bartosz Dziewoński
b374a761e2 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
2014-11-14 22:27:37 +01:00
jenkins-bot
f77fd8e98e Merge "mediawiki.special.changeslist.legend: Avoid legend as stairs" 2014-11-14 21:12:59 +00:00
Translation updater bot
76d689e5c6 Localisation updates from https://translatewiki.net.
Change-Id: I25f795abac11cdcf3c3aede626b026407f67e699
2014-11-14 21:54:28 +01:00
Fomafix
be7f81fbd6 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
2014-11-14 20:30:49 +00:00
Kunal Mehta
3d11157294 AutoloadGenerator: Don't throw MWExceptions
The class won't have been autoloaded, so it can't be used.

Change-Id: I54a9be600839c7bffe7debb8ee35ac46694390b4
2014-11-14 11:47:52 -08:00
Aaron Schulz
7d3fca19ef Avoid sending spammy @X xhprof entries over UDP
Change-Id: I8509932f7368cab2a5426f437845e2849a82d9b4
2014-11-14 19:15:07 +00:00
kaldari
2fc4fd0865 Keep buttons from changing size when they change state
Right now if a button changes from a light color to a dark color
based on some user action or state change, the button width also
changes, potentially reflowing the content and making the button
move to a completely different location. Both the height and width
need to stay the same (as was discussed in mw-ui standardization
meetings). The effect on the hover-shadow gimmick is virtually
imperceptable.

Bug: 73381
Change-Id: I27edeb4f1317c9d163bc87f54f35a161cdcd686e
2014-11-14 10:40:45 -08:00