Commit graph

60243 commits

Author SHA1 Message Date
jenkins-bot
cd33a4c000 Merge "Typo fixes and non-code tweaks" 2014-12-12 17:39:24 +00:00
Ricordisamoa
fc5fd5c37a Typo fixes and non-code tweaks
Skipped replacements:
* prefered → preferred
* prolly → probably

Skipped files:
* resources/lib/jquery.ui/jquery.ui.mouse.js
* resources/lib/jquery/jquery.form.js

Change-Id: Ib7923f362ddfca1b892bf5d601785d6b5aa5d44c
2014-12-12 18:31:15 +00:00
jenkins-bot
68644e2d34 Merge "Remove obsolete note from Title->canExist()" 2014-12-12 17:33:27 +00:00
Fomafix
4394d6cf8a mw.loader: Guard against Object.prototype keys as module names
This avoids conflicts where we confuse an Object method for a
registered module.

Change-Id: I1b1c2db355f0c698be4a5fe797daa55dedc25258
2014-12-12 04:19:35 +00:00
jenkins-bot
d8ab903223 Merge "Cleaned up LoadBalancer::getConnection" 2014-12-12 02:47:39 +00:00
Sergio Santoro
3de9803c06 Fix case insensitive string comparison for http header names
As of RFC 2616 sec 4.2, http header names are case insensitive.

Change-Id: Ib72df2572f5a9c825c5b3ad7735126f3687aad79
2014-12-12 02:38:43 +00:00
Aaron Schulz
6ade2968ae Avoid blocking on ChronologyProtecter check in LoadBalancer::getConnection()
Change-Id: Iccf324d87d117972cc6321b2abf1ff101d98fa65
2014-12-12 02:25:04 +00:00
Kunal Mehta
92fad8e87a composer.json: Update issues link to point to bugs.mediawiki.org
Change-Id: I67f4403f1797a38bc3f5d7b190d7f84f6fdf457c
2014-12-11 22:47:16 +00:00
Translation updater bot
971b7feed0 Localisation updates from https://translatewiki.net.
Change-Id: I0d198f282e5db225f16d172a25c7375f48b033f4
2014-12-11 23:27:53 +01:00
jenkins-bot
2721bc43df Merge "Update README from [[mw:README]]" 2014-12-11 22:03:30 +00:00
Tim Starling
90fd90d8ce Fix ProfilerStandard sorting and a profile error
* Sort $this->collated even if collateOnly is set. Also I don't think
  arsort works that way.
* Fix a profiling error in every DB query, which was due to the two
  scoped profiling sections being destroyed in the wrong order.

Change-Id: I6af05f37a5c0391acfa80d54ecbca7a08ad81250
2014-12-11 18:14:13 +00:00
Tim Starling
90a3418cf2 Fix parenthesis placement in multi-line condition
After talking with the folks in #mediawiki-core, I decided that I can
put up with it, under protest, on the basis that it's arguably
consistent with PSR-2.

Change-Id: I5f0c0f8f0172674797970d306efe6439ce1c2b67
2014-12-11 15:33:38 +11:00
C. Scott Ananian
25d35fc65c Enforce spaces around magic links (RFC, PMID, and ISBN).
Ensure that there is a \b boundary before and after RFC, PMID, and ISBN
links.  (Previously we enforced \b boundaries only before free external
links and after ISBN links.)  Consistency is a good thing!

In addition:
* \b is not a PHP escape sequence, so you don't need to write \\b inside
  a string.
* \b before the numeric part of an ISBN is pointless: by the structure
  of the regexp there will always be a space on the left and a word
  character (a digit) on the right.

Bug: 65278
Change-Id: Ic315b988091a5c7530a8285b9249804db72e55db
2014-12-11 03:41:23 +00:00
jenkins-bot
d5810f763a Merge "Stash edit when user idles" 2014-12-11 02:23:10 +00:00
Ori Livneh
e08bbdf4f9 Stash edit when user idles
Try to anticipate edit submissions earlier by looking for pauses in keyboard
input, on the assumption that users often take a few moments to look over an
edit before submitting it to the server.

Change-Id: Ib2de3f15b93e5d32c66a03363e98606412d5d53b
2014-12-10 18:07:54 -08:00
jenkins-bot
6f6638e01e Merge "ResourceLoaderImageModule: Allow use on mobile" 2014-12-10 23:40:48 +00:00
jdlrobson
4cd748a006 ResourceLoaderImageModule: Allow use on mobile
Change-Id: Ic7913aa1a1e1fb8d3742503cbe8a6cb3427fc826
2014-12-10 23:34:40 +00:00
umherirrender
be3f554c95 Fix check for function wddx_deserialize in tests for hhvm
The @requires just works for other tests, not for php functions.

This fixed a failure for the hhvm test server:
1) ApiFormatWddxTest::testValidSyntax
Failed asserting that null is of type "array".

Change-Id: Iadd8238ce62d4803cdf56508886ad016f8ac8f1d
2014-12-10 22:25:25 +00:00
jenkins-bot
c734d53860 Merge "Adding aliases for speacial pages in Hebrew" 2014-12-10 21:40:12 +00:00
Translation updater bot
6c6b443213 Merge "Localisation updates from https://translatewiki.net." 2014-12-10 20:49:37 +00:00
Translation updater bot
7a609bf70c Localisation updates from https://translatewiki.net.
Change-Id: Id102078400328a8f1032b03e926e56645adf00b2
2014-12-10 21:48:26 +01:00
Mark A. Hershberger
f0723166f1 Fix type hint to match php docs
From http://php.net/manual/en/function.posix-isatty.php

bool posix_isatty ( mixed $fd )

Determines if the file descriptor fd refers to a valid terminal type device.

fd

    The file descriptor, which is expected to be either a file
    resource or an integer. An integer will be assumed to be a file
    descriptor that can be passed directly to the underlying system
    call.

    In almost all cases, you will want to provide a file resource.

Change-Id: Ief19ac1f09e0a955c8f5d5af28b87b8e8d427a2e
2014-12-10 20:37:47 +00:00
Kunal Mehta
4d39b31bba Language: wfRunHooks() --> Hooks::run()
Follows up I8ee996f237fd111873a

Change-Id: I0ffc5903c96219676b9bcb46928fd72bb7133927
2014-12-10 12:29:24 -08:00
Aaron Schulz
e369f66d00 Replace wfRunHooks calls with direct Hooks::run calls
* This avoids the overhead of an extra function call

Change-Id: I8ee996f237fd111873ab51965bded3d91e61e4dd
2014-12-10 12:26:59 -08:00
jenkins-bot
6662eb079e Merge "API edit: allow ConfirmEdit to use the merged parse" 2014-12-10 20:22:05 +00:00
eranroz
23d246ced4 Adding aliases for speacial pages in Hebrew
Change-Id: If5e4a535862f40dc7a87527fe525f1fb2f1fe2c1
2014-12-10 22:06:13 +02:00
jenkins-bot
ff97aaa676 Merge "Fix case of various newFromID/newFromId functions" 2014-12-10 19:47:44 +00:00
jenkins-bot
6a6386f252 Merge "Xml: Simplify processing of attributes in Xml::label" 2014-12-10 19:47:24 +00:00
umherirrender
c0151eec5f Fix case of various newFromID/newFromId functions
User::newFromID -> User::newFromId
Revision::newFromID -> Revision::newFromId
RecentChange::newFromID -> RecentChange::newFromId

WikiPage::newFromId -> WikiPage::newFromID
Title::newFromId -> Title::newFromID

Change-Id: I310f26653613951e9b21ce915a92d205a87937f1
2014-12-10 19:40:27 +00:00
Ricordisamoa
de37b20c68 Xml: Simplify processing of attributes in Xml::label
Comment inserted by Antoine Musso with d86a3bc217.

Also fixed wrong indentation.

Change-Id: I054762929413f90090b446c603b60ed9544c06d1
2014-12-10 19:40:03 +00:00
Aaron Schulz
6a1d9c8ddc Fixed internalClean class/method existence check for HHVM
* Follows up 4f281083fd

Change-Id: I5fa406ed1c4f2eefd1c22e9ab90e72655f31d162
2014-12-10 19:04:58 +00:00
Bryan Davis
4f281083fd hhvm: Check for tidy function instead of class
Bug: T78166
Change-Id: Ie60e23ffbafd698a3458eed1efce92d54c8d0c2a
2014-12-10 11:08:18 -07:00
Ricordisamoa
e5e5ec4a60 Avoid preloading unused messages in ContribsPager
* newarticle
* rev-delundel
* rollbacklink

A bit of history:
* messages preloading
** added by Brion Vibber
   commit 935bca8ee7

* usage of newarticle
** added by Erik Moeller
   commit d61d3486f0
** removed by Alexandre Emsenhuber
   commit 84be101a90

* usage of rev-delundel
** added by Aaron Schulz
   commit 0ed239362c
** fixed by Raimond Spekking
   commit 349ef821d6
** removed by Aaron Schulz
   commit 90dcb3c1f2

* usage of rollbacklink
** present in Lee Daniel Crocker's 'initial revision'
   commit d82c14fb4f
** removed from old version by Aryeh Gregor
   commit 3a0c45e93c
** unused but still preloaded in Ilmari Karonen's new version
   commit 2df501fa0d

Change-Id: Ib9fce5c1af4f0fd7dd3dcfefa4a6611d61123e02
2014-12-10 16:39:28 +00:00
Ricordisamoa
11692cb484 Fixup 4f0b2f4241
It messed up a couple of entries in RELEASE-NOTES-1.24,
now brought into HISTORY.

Change-Id: I84795de70b0cb24af122acd0aa6ebc8367a782d5
2014-12-10 16:29:41 +00:00
Ricordisamoa
6519c35def Fix documentation of hook 'BeforeParserFetchFileAndTitle'
By placing the notice "If 'broken' is a key in $options
then the file will appear..." added by Aaron Schulz with
commit 9d572d1844.
This solves a 'FIXME' added by Siebrand Mazeland with
commit b33c77a525.

Change-Id: I9d100588276faac5d5b2be979d8140389e5ed85a
2014-12-10 15:54:35 +00:00
jenkins-bot
4f5832c57d Merge "API: Allow redirecting a page to itself using action=edit" 2014-12-10 15:26:30 +00:00
jenkins-bot
bb48071616 Merge "jquery.mwExtension.test: Use better sample data for isDomElement" 2014-12-10 12:06:14 +00:00
jenkins-bot
4e26d0c894 Merge "Always use 'bool' instead of 'boolean' after '@param' and '@return'" 2014-12-10 12:03:51 +00:00
Ricordisamoa
f86a5590aa Always use 'bool' instead of 'boolean' after '@param' and '@return'
The former is by far the most common.

Skipped:
* resources/lib/jquery.ui/jquery.ui.datepicker.js
* resources/src/mediawiki.special/mediawiki.special.upload.js

Change-Id: I73c93797e745128ba703e4865080c36784caa474
2014-12-10 11:57:31 +00:00
Kevin Israel
8074eb0bd1 API: Allow redirecting a page to itself using action=edit
Follows-up 0266068570.

Change-Id: I60aa15ac9f33c560c940c55cf98626bb9ff4b822
2014-12-10 06:48:13 -05:00
Aaron Schulz
52e6121447 Cleaned up LoadBalancer::getConnection
* It will also no longer call getReaderIndex( false, ... ) twice
* Removed various related ampersands

Change-Id: Ia79e2007dbf84e7437f9439aa6371333aa3e1b23
2014-12-10 00:27:48 -08:00
jenkins-bot
1402422681 Merge "Added some abstract methods to DatabaseBase" 2014-12-10 05:42:48 +00:00
Timo Tijhof
7605f112e4 jquery.mwExtension.test: Use better sample data for isDomElement
* getElementById, getElementsByTagName()[0] and jQuery#get(0) all
  return an HTMLElement. Test that only once.
  Avoid using random internal QUnit elements like #qunit-header.
  These don't always exist (e.g. when running tests via Karma).
  If anything, it should use #qunit-fixture. But might as well
  create a simple DIV and test that.

* Use 'null' instead of getElementById('not-found'). We're
  testing isDomElement, not getElementById.

* Add test for TextNode.

* Separate tests for isDomElement and isEmpty.

Change-Id: If9284fbbd066897561ae8e679f5f7ceab9255e18
2014-12-10 05:26:05 +00:00
Ori Livneh
98c2703f81 Simplify MWTidy
* Make the internal MWTidy::*clean() functions always return an array of two
  elements: the output buffer and the error buffer.
* Make MWTidy::externalTidy() always read both stdout and stderr. We can read
  stderr after stdout because tidy.c produces output in the same order.
* Remove the $stderr parameter from the private MWTidy::*clean() methods, since
  error output is always returned.
* Merge MWTidy::phpClean and MWTidy::hhvmClean, since the difference between
  them is now small enough that splitting them up is not warranted.
* On HHVM, MWTidy::internalTidy() always returns an empty string for the error
  buffer.

Change-Id: I178b42d6ebdd1a5b9bd5921eb093a6c5014ffa49
2014-12-09 16:43:08 -08:00
jenkins-bot
a0b52295b6 Merge "Add parser tests for tables with pipes and wikilinks" 2014-12-10 00:39:39 +00:00
Aaron Schulz
a13b950a40 Added some abstract methods to DatabaseBase
Change-Id: I75781ee55d48d9fda40d600228100708d6524df8
2014-12-09 16:22:59 -08:00
jenkins-bot
ad089968ef Merge "Allow moment on mobile web" 2014-12-10 00:22:38 +00:00
jenkins-bot
024cea9af1 Merge "Made SectionProfiler cache the ScopedCallback closure to lower overhead" 2014-12-09 23:46:52 +00:00
jenkins-bot
e5538c3f7e Merge "Register a shutdown function to log fatal errors" 2014-12-09 23:46:04 +00:00
Aaron Schulz
2698d9803d Made SectionProfiler cache the ScopedCallback closure to lower overhead
Change-Id: Ia6f2ef4bb82dad13d49e74c730530295d5719009
2014-12-09 23:40:35 +00:00