lhc/web/wiklou.git
10 years agoClean up some old readme files and remove references to SVN
This, that and the other [Sat, 9 Nov 2013 10:22:57 +0000 (21:22 +1100)]
Clean up some old readme files and remove references to SVN

docs/README: Updated links, got rid of 2008 date at top of file
docs/maintenance.txt: Updated link
extensions/README: Some cleanup, added link to new git.wikimedia.org
includes/DefaultSettings.php: SVN -> Git for udpprofile
includes/profiler/ProfilerSimpleUDP.php: ditto
languages/MessagesRo.php: removed link to mime.types on SVN from the
  mimesearch-summary message. This file seems to have been deleted from the
  modern-day Git repository
maintenance/postgres/mediawiki_mysql2postgres.pl: removed SVN magic words

That takes care of most of the remaining references to SVN etc.

Bug: 38714
Change-Id: I261921df4b4c0545658d6d38c5f3c1f9dfa63ad1

10 years agoFix typo in comment in mediawiki.action.edit
umherirrender [Sat, 16 Nov 2013 10:18:12 +0000 (11:18 +0100)]
Fix typo in comment in mediawiki.action.edit

Change-Id: I0dd9840b908956f8093fe02353f6775602fd44bb

10 years agoMerge "Revert "Remove unsupported and mostly non-functional Mssql support""
jenkins-bot [Sat, 16 Nov 2013 02:11:30 +0000 (02:11 +0000)]
Merge "Revert "Remove unsupported and mostly non-functional Mssql support""

10 years agoMerge "Call method with the same name it's defined with"
Brian Wolff [Sat, 16 Nov 2013 02:08:20 +0000 (02:08 +0000)]
Merge "Call method with the same name it's defined with"

10 years agoRevert "Remove unsupported and mostly non-functional Mssql support"
MarkAHershberger [Sat, 16 Nov 2013 02:06:01 +0000 (02:06 +0000)]
Revert "Remove unsupported and mostly non-functional Mssql support"

This reverts commit 5e1efc3144d4af3a907d3c79f1ea6b8975ddf453.

This sort of thing needs to be discussed.  Please do not self-approve changes like this.

Change-Id: I9eb9ea315d90584b7fe95db43a6759884f9506b5

10 years agoMerge "Use 'Original file' instead of 'Full resolution' for original file link"
jenkins-bot [Sat, 16 Nov 2013 02:02:35 +0000 (02:02 +0000)]
Merge "Use 'Original file' instead of 'Full resolution' for original file link"

10 years agoUse 'Original file' instead of 'Full resolution' for original file link
Bartosz Dziewoński [Sat, 16 Nov 2013 01:27:23 +0000 (02:27 +0100)]
Use 'Original file' instead of 'Full resolution' for original file link

"Full resolution" only makes sense for images; we also support other
formats, e.g. PDF files.

Bug: 53017
Change-Id: Ib85202a45bfe399a7c03c255de8ec15658ebca1b

10 years agoCall method with the same name it's defined with
Bartosz Dziewoński [Sat, 16 Nov 2013 00:08:07 +0000 (01:08 +0100)]
Call method with the same name it's defined with

Stupid case-insensitivity.

Change-Id: I4b4fc97e4670708a9cfc2ff0f4618fd0cc560251

10 years agoDon't even mention $wgTitle
Chad Horohoe [Sat, 16 Nov 2013 00:06:48 +0000 (16:06 -0800)]
Don't even mention $wgTitle

Change-Id: Icdef53a498505945d03fb60fe53251b3bea2bee0

10 years agoMerge "Avoid extra parsing in prepareContentForEdit()"
jenkins-bot [Fri, 15 Nov 2013 23:32:57 +0000 (23:32 +0000)]
Merge "Avoid extra parsing in prepareContentForEdit()"

10 years agoMerge "Remove recentchanges.rc_cur_time from sql statements"
jenkins-bot [Fri, 15 Nov 2013 23:22:25 +0000 (23:22 +0000)]
Merge "Remove recentchanges.rc_cur_time from sql statements"

10 years agoMerge "set url used in createaccount-text to main page canonical url"
Brian Wolff [Fri, 15 Nov 2013 20:38:41 +0000 (20:38 +0000)]
Merge "set url used in createaccount-text to main page canonical url"

10 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Fri, 15 Nov 2013 20:28:44 +0000 (20:28 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 15 Nov 2013 20:25:23 +0000 (20:25 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I81932a7d5db9e0431b734d56e3fbad2fb3c4d79e

10 years agoRemove unsupported and mostly non-functional Mssql support
Chad Horohoe [Fri, 15 Nov 2013 18:52:16 +0000 (10:52 -0800)]
Remove unsupported and mostly non-functional Mssql support

Change-Id: Id0a688865a5b7b6bb363f7b118fad4f455d2b3b6

10 years agoFix CodeSniffer errors and warnings (final round for API classes)
Siebrand Mazeland [Thu, 14 Nov 2013 18:03:09 +0000 (19:03 +0100)]
Fix CodeSniffer errors and warnings (final round for API classes)

Change-Id: I97bf36ebef254818dc17378a06405b681ad19c59

10 years agoFix CodeSniffer errors and warnings on a number of ApiQuery classes
Siebrand Mazeland [Thu, 14 Nov 2013 17:38:36 +0000 (18:38 +0100)]
Fix CodeSniffer errors and warnings on a number of ApiQuery classes

Change-Id: I763f79c66cd8ed2ca19586323d5b3ee8b60ffd18

10 years agoFix a few more CodeSniffer errors and warnings on some API classes
Siebrand Mazeland [Thu, 14 Nov 2013 16:17:22 +0000 (17:17 +0100)]
Fix a few more CodeSniffer errors and warnings on some API classes

Change-Id: I119be629d8c8811d08413751bcffc0ce403cc2bd

10 years agoMerge "Make sure we always restore the error handler."
jenkins-bot [Fri, 15 Nov 2013 18:29:06 +0000 (18:29 +0000)]
Merge "Make sure we always restore the error handler."

10 years agoDeclare visibility on class property in ApiQueryInfo
Siebrand Mazeland [Thu, 14 Nov 2013 14:19:13 +0000 (15:19 +0100)]
Declare visibility on class property in ApiQueryInfo

Only used in this class, so make protected.

Change-Id: I20984d14524073b6b1b9f4b31c2107722318503f

10 years agoFix CodeSniffer errors and warnings (you guessed it, on API classes)
Siebrand Mazeland [Thu, 14 Nov 2013 14:18:38 +0000 (15:18 +0100)]
Fix CodeSniffer errors and warnings (you guessed it, on API classes)

Change-Id: I56f9632975d53bdfe33ff9412e1a4ba010bdb2aa

10 years agoMerge "Fix CodeSniffer errors and warnings on yet more API classes"
jenkins-bot [Fri, 15 Nov 2013 18:06:20 +0000 (18:06 +0000)]
Merge "Fix CodeSniffer errors and warnings on yet more API classes"

10 years agoMerge "resourceloader: Use state "error" instead of "missing" in case of exceptions"
jenkins-bot [Fri, 15 Nov 2013 18:01:46 +0000 (18:01 +0000)]
Merge "resourceloader: Use state "error" instead of "missing" in case of exceptions"

10 years agoMerge "Exclude override to make method public from checks"
jenkins-bot [Fri, 15 Nov 2013 17:59:15 +0000 (17:59 +0000)]
Merge "Exclude override to make method public from checks"

10 years agoMerge "Update docs for files in includes/actions/"
jenkins-bot [Fri, 15 Nov 2013 17:57:21 +0000 (17:57 +0000)]
Merge "Update docs for files in includes/actions/"

10 years agoMerge "Fix CodeSniffer errors and warnings on some API classes"
jenkins-bot [Fri, 15 Nov 2013 17:55:23 +0000 (17:55 +0000)]
Merge "Fix CodeSniffer errors and warnings on some API classes"

10 years agoFix CodeSniffer errors and warnings on yet more API classes
Siebrand Mazeland [Thu, 14 Nov 2013 13:58:14 +0000 (14:58 +0100)]
Fix CodeSniffer errors and warnings on yet more API classes

Change-Id: I67739a0b7c456f3684abea84833753e79a485c07

10 years agoFix CodeSniffer errors and warnings on some API classes
Siebrand Mazeland [Thu, 14 Nov 2013 13:31:56 +0000 (14:31 +0100)]
Fix CodeSniffer errors and warnings on some API classes

Change-Id: Id5fd7180f3a1d62663f79b27ad5108062607596a

10 years agoMerge "API: Allow filtering keys in iiprop=extmetadata"
jenkins-bot [Fri, 15 Nov 2013 17:38:58 +0000 (17:38 +0000)]
Merge "API: Allow filtering keys in iiprop=extmetadata"

10 years agoMove new hook release note to correct release notes file
Matthias Mullie [Fri, 15 Nov 2013 17:19:01 +0000 (18:19 +0100)]
Move new hook release note to correct release notes file

Change-Id: I6dbc37ef55c343d95ff1e06d50c3f9215604b9bc

10 years agoGive extensions a chance to hide their (unrelated) log entries
Matthias Mullie [Tue, 29 Oct 2013 11:15:18 +0000 (12:15 +0100)]
Give extensions a chance to hide their (unrelated) log entries

Change-Id: Id8b0f29d6e2ac9d7cab8f3d1efcb202062a6ad0b

10 years agoMake sure we always restore the error handler.
daniel [Fri, 15 Nov 2013 15:13:19 +0000 (16:13 +0100)]
Make sure we always restore the error handler.

Change-Id: I27f5d11ea27f783eda71c2bfdba7e70695f5d53c

10 years agoExpanded use of reauthenticateConnection() beyond just Lua calls
Aaron Schulz [Tue, 12 Nov 2013 17:39:47 +0000 (09:39 -0800)]
Expanded use of reauthenticateConnection() beyond just Lua calls

* Also made it so luaEval() does not clear any previous errors to callers.
  None of the native methods have that behavoir, so this is more consistent.

Bug: 56886
Change-Id: I47d0f52e72b35ec5cb7b92b9cc3488f145b2d7a2

10 years agoresourceloader: Use state "error" instead of "missing" in case of exceptions
Timo Tijhof [Thu, 17 Oct 2013 10:33:26 +0000 (12:33 +0200)]
resourceloader: Use state "error" instead of "missing" in case of exceptions

Changes:
* If we catch an exception while making the response for a module, set its
  client state to "error" instead of "missing".
  State "missing" should only be used if the module could not be
  found in the registry.
  This matches the behaviour of the client.

Clean up:
* Merge the two mw.loader.state calls into one.
* Add @throws documentation for compileLESSFile (follows-up cdc8b9e).
* Don't use 3 different ways to assert an array being empty,
  using 1 and sticking to it.
  - !$arr
  - $arr === array()
  - count( $arr )

Change-Id: I54c3de6d836702ffbe3044bc58a38e83e758bc33

10 years agoAvoid extra parsing in prepareContentForEdit()
Aaron Schulz [Thu, 14 Nov 2013 20:26:00 +0000 (12:26 -0800)]
Avoid extra parsing in prepareContentForEdit()

* WikiPage::clear() no longer resets mPreparedEdit
* Also actually made mPreparedEdit protected

bug: 57026
Change-Id: I2c34baaf8b64b204444efa1bfa6ea356e0124c54

10 years agoMerge "SECURITY: Don't cache when a call could autocreate"
jenkins-bot [Thu, 14 Nov 2013 22:51:32 +0000 (22:51 +0000)]
Merge "SECURITY: Don't cache when a call could autocreate"

10 years agoMerge "SECURITY: Improve css javascript detection"
jenkins-bot [Thu, 14 Nov 2013 22:47:13 +0000 (22:47 +0000)]
Merge "SECURITY: Improve css javascript detection"

10 years agoSECURITY: Don't cache when a call could autocreate
csteipp [Thu, 14 Nov 2013 22:36:24 +0000 (14:36 -0800)]
SECURITY: Don't cache when a call could autocreate

Fixes for action=raw (used when sites include other site's javascript),
and stashed images.

Bug: 53032
Change-Id: I8f915f6a4756f750c74d9ee9bec58f7ba6c0c827

10 years agoMerge "Add --noredirects parameter to moveBatch.php"
jenkins-bot [Thu, 14 Nov 2013 22:34:32 +0000 (22:34 +0000)]
Merge "Add --noredirects parameter to moveBatch.php"

10 years agoSECURITY: Improve css javascript detection
csteipp [Tue, 8 Oct 2013 23:16:17 +0000 (16:16 -0700)]
SECURITY: Improve css javascript detection

* Forbid vertical tabs
* Convert Fullwidth, sup/sub script, IPA, and repetition unicode to
ascii, for ie6

Bug: 55332
Change-Id: I41a71b5b8fbecadd0f958cf57cc90d4c2fd9366e

10 years agoFix revdelete radio button labels
Brad Jorsch [Thu, 14 Nov 2013 21:23:03 +0000 (16:23 -0500)]
Fix revdelete radio button labels

Apparently I4263e9e1 was merged without anyone checking to be sure the
new messages were actually correct.

Bug: 56210
Change-Id: I13c6470bf9b0c15326b0bcae15885f432d4b1d2d

10 years agoAdd --noredirects parameter to moveBatch.php
tisane [Thu, 14 Nov 2013 21:11:41 +0000 (16:11 -0500)]
Add --noredirects parameter to moveBatch.php

Bug: 57077
Change-Id: I8dc1cdc365c5ba09106b9562ce2768fdcf8e5b95

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 14 Nov 2013 20:40:49 +0000 (20:40 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ia88a852e212d86e0104e7b7fc90469906322c2a0

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 14 Nov 2013 20:33:01 +0000 (20:33 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ideeacc16459d1046cc9546a49f283f46882e1308

10 years agoMove wikiGetLink rename from 1.23 to 1.22 RELEASE-NOTES
Roan Kattouw [Thu, 14 Nov 2013 19:46:47 +0000 (11:46 -0800)]
Move wikiGetLink rename from 1.23 to 1.22 RELEASE-NOTES

I8704a6620ece was backported to 1.22

Change-Id: I484fc8beb2b8afa5fe8ac7ec489abb4c226f2c42

10 years agoAPI: Allow filtering keys in iiprop=extmetadata
Brad Jorsch [Thu, 14 Nov 2013 19:26:00 +0000 (14:26 -0500)]
API: Allow filtering keys in iiprop=extmetadata

Requesting iiprop=extmetadata can return a *lot* of meta data, when the
client may only be interested in certain keys. This adds a
"iiextmetadatafilter" parameter to allow the client to indicate which
keys it cares about.

Change-Id: Ie2185ec285e40359fffab4932bff8cab16071a53

10 years agoMerge "Fix the fix: "? :" -> "?:""
jenkins-bot [Thu, 14 Nov 2013 19:17:23 +0000 (19:17 +0000)]
Merge "Fix the fix: "? :" -> "?:""

10 years agoExclude override to make method public from checks
Siebrand Mazeland [Thu, 14 Nov 2013 12:24:23 +0000 (13:24 +0100)]
Exclude override to make method public from checks

Change-Id: I66df2efa5900c5a192ae88217e736b7fc7335dcd

10 years agoUpdate docs for files in includes/actions/
Siebrand Mazeland [Thu, 14 Nov 2013 12:08:14 +0000 (13:08 +0100)]
Update docs for files in includes/actions/

Change-Id: I99655ad3df4bc252e3c176e4f465f5ecd615c55f

10 years agoMerge "The light at the end of the API code format updating tunnel"
jenkins-bot [Thu, 14 Nov 2013 19:03:45 +0000 (19:03 +0000)]
Merge "The light at the end of the API code format updating tunnel"

10 years agoMerge "I'm in your API classes updating your formatting"
jenkins-bot [Thu, 14 Nov 2013 18:56:16 +0000 (18:56 +0000)]
Merge "I'm in your API classes updating your formatting"

10 years agoMerge "Update formatting, return of the API classes"
jenkins-bot [Thu, 14 Nov 2013 18:50:16 +0000 (18:50 +0000)]
Merge "Update formatting, return of the API classes"

10 years agoFix the fix: "? :" -> "?:"
Siebrand Mazeland [Thu, 14 Nov 2013 18:40:13 +0000 (19:40 +0100)]
Fix the fix: "? :" -> "?:"

Change-Id: Icdbb200faf2ee5c7c6a0095987f76a2bc1b4e5e7

10 years agoMerge "Break long lines in Action classes"
jenkins-bot [Thu, 14 Nov 2013 18:38:06 +0000 (18:38 +0000)]
Merge "Break long lines in Action classes"

10 years agoThe light at the end of the API code format updating tunnel
Siebrand Mazeland [Thu, 14 Nov 2013 13:01:41 +0000 (14:01 +0100)]
The light at the end of the API code format updating tunnel

Change-Id: I12fdb71bc87a8ad5ed5b9f1fe9c06bd0f7154e9a

10 years agoI'm in your API classes updating your formatting
Siebrand Mazeland [Thu, 14 Nov 2013 13:00:02 +0000 (14:00 +0100)]
I'm in your API classes updating your formatting

Change-Id: I6087573dfdc6edcd63062508056ebcf3502e03f2

10 years agoUpdate formatting, return of the API classes
Siebrand Mazeland [Thu, 14 Nov 2013 12:56:06 +0000 (13:56 +0100)]
Update formatting, return of the API classes

Change-Id: I8c3a5b4396a1c3bba22f676137f640c6aa3c8960

10 years agoBreak long lines in Action classes
Siebrand Mazeland [Thu, 14 Nov 2013 11:33:19 +0000 (12:33 +0100)]
Break long lines in Action classes

Fixes CodeSniffer errors and warnigs.

Change-Id: Ic9cf4b9c677b3168d7c9820e2694080907997ee3

10 years agoYet more formatting updates for yet more API classes
Siebrand Mazeland [Thu, 14 Nov 2013 12:53:20 +0000 (13:53 +0100)]
Yet more formatting updates for yet more API classes

Change-Id: Iaa1cfaaffc7c55bb7670dfbff3f063cf22434f09

10 years agoUpdate formatting on some API classes (must've forgotten these)
Siebrand Mazeland [Thu, 14 Nov 2013 12:51:06 +0000 (13:51 +0100)]
Update formatting on some API classes (must've forgotten these)

Change-Id: I3fe42e75c3029dc76d2d1d40609c9a69aae8e987

10 years agoUpdate formatting on API classes, Part 3
Siebrand Mazeland [Thu, 14 Nov 2013 12:47:20 +0000 (13:47 +0100)]
Update formatting on API classes, Part 3

Change-Id: I526be68e21836201c992b391a81f4d41e1fa801e

10 years agoUpdate formatting on more API classes
Siebrand Mazeland [Thu, 14 Nov 2013 12:42:04 +0000 (13:42 +0100)]
Update formatting on more API classes

Change-Id: I1e6325b628359a557ceaa1e1ae30043aa5fc1402

10 years agoMerge "Update formatting on API classes"
jenkins-bot [Thu, 14 Nov 2013 17:09:33 +0000 (17:09 +0000)]
Merge "Update formatting on API classes"

10 years agoUpdate formatting on API classes
Siebrand Mazeland [Thu, 14 Nov 2013 12:40:22 +0000 (13:40 +0100)]
Update formatting on API classes

Change-Id: Ifd18a8de1d2580b723a5b91e8d202818fd97795a

10 years agoMerge "Update formatting"
jenkins-bot [Thu, 14 Nov 2013 17:02:02 +0000 (17:02 +0000)]
Merge "Update formatting"

10 years agoFix optional message key
raymond [Thu, 14 Nov 2013 13:17:38 +0000 (14:17 +0100)]
Fix optional message key

Followup to I0796b897e9646c122a46de449aaabf4d7a867f00

Change-Id: I108eb17e47fce9652ecbb58f4921d06cce7c0cce

10 years agoMerge "mediawiki.ui: Fix spacing for LESS"
jenkins-bot [Thu, 14 Nov 2013 12:43:30 +0000 (12:43 +0000)]
Merge "mediawiki.ui: Fix spacing for LESS"

10 years agomediawiki.ui: Fix spacing for LESS
Matthew Flaschen [Thu, 14 Nov 2013 04:30:46 +0000 (23:30 -0500)]
mediawiki.ui: Fix spacing for LESS

* Use tabs, per https://www.mediawiki.org/wiki/Manual:Coding_conventions/CSS
* Remove unneeded space before opening brace

Change-Id: I02c7bfa0327f7ff49aa7694a7a0f66e30ca55af9

10 years agoUpdate formatting
Siebrand Mazeland [Thu, 14 Nov 2013 11:18:26 +0000 (12:18 +0100)]
Update formatting

Change-Id: I3cbe1f5e48730fbbe57e4b20a0c202edddc93c95

10 years agoDeclare visibility for class properties
Siebrand Mazeland [Mon, 11 Nov 2013 16:16:39 +0000 (17:16 +0100)]
Declare visibility for class properties

Found no usages outside of class.

Change-Id: I83856be9e7fade2a81902ab7b9166d573ac673d6

10 years agoMerge "Exclude non-standard global $checkBlacklist in CodeSniffer checks"
jenkins-bot [Thu, 14 Nov 2013 10:11:44 +0000 (10:11 +0000)]
Merge "Exclude non-standard global $checkBlacklist in CodeSniffer checks"

10 years agoMerge "Port mediawiki.ui SASS to LESS"
jenkins-bot [Thu, 14 Nov 2013 03:49:15 +0000 (03:49 +0000)]
Merge "Port mediawiki.ui SASS to LESS"

10 years agoPort mediawiki.ui SASS to LESS
Juliusz Gonera [Mon, 4 Nov 2013 20:12:14 +0000 (15:12 -0500)]
Port mediawiki.ui SASS to LESS

This was the only SASS in core.

Remove gradient hacks for IE<10 (proprietary filter property) in
vertical-gradient mixin. Buttons look fine without gradients too,
and filter can often signfificantly degrade performance:
http://gomilkyway.com/web/why-site-is-so-slow-on-ie-even-to-scroll-poor-ie-performance/
http://coding.smashingmagazine.com/2010/04/28/css3-solutions-for-internet-explorer/
http://msdn.microsoft.com/en-us/library/ms532847%28VS.85%29.aspx
(look for "performance")

Remove text-shadow for button's text which had no effect on appearance.

Remove obsolete or non-existent vendor-prefixed properties:
* display: -moz-inline-stack (not needed for Firefox 3+)
* -webkit-border-radius, -moz-border-radius (supported for sometime
  without a prefix, graceful degradation for old browsers)
* -ms-border-radius, -o-border-radius (never existed)

Remove *vertical-align: auto from IE6/IE7 inline hack. Can't find any
evidence that it's necessary.

Bug: 54485
Change-Id: I81d8d0c9f6705aef8bdb8a28e1154f2de4301235

10 years agoMerge "Rather than upsert module store, explicitly remove old value and then add...
jenkins-bot [Thu, 14 Nov 2013 00:16:52 +0000 (00:16 +0000)]
Merge "Rather than upsert module store, explicitly remove old value and then add new one"

10 years agoMerge "Avoid HEAD requests for files missing from the destination"
jenkins-bot [Wed, 13 Nov 2013 23:25:21 +0000 (23:25 +0000)]
Merge "Avoid HEAD requests for files missing from the destination"

10 years agoMerge "Made cleanupUploadStash use batching for the last two loops"
jenkins-bot [Wed, 13 Nov 2013 23:20:37 +0000 (23:20 +0000)]
Merge "Made cleanupUploadStash use batching for the last two loops"

10 years agoMerge "Cleanups to DB transaction handling"
jenkins-bot [Wed, 13 Nov 2013 23:13:30 +0000 (23:13 +0000)]
Merge "Cleanups to DB transaction handling"

10 years agoMerge "Added --sleep-per-batch to purgeChangedFiles.php"
jenkins-bot [Wed, 13 Nov 2013 23:09:28 +0000 (23:09 +0000)]
Merge "Added --sleep-per-batch to purgeChangedFiles.php"

10 years agoSkip IP::isInRange() test if input is not in CIDR notation
Bryan Davis [Wed, 13 Nov 2013 16:38:58 +0000 (09:38 -0700)]
Skip IP::isInRange() test if input is not in CIDR notation

IP:isInRange() performs several moderately expensive tests via regular
expression matching that can cause unwanted load with a sufficiently
complicated runtime configuration. Check the $wgSquidServersNoPurge
value to see if it includes the CIDR mask separator token ('/') before
continuing on to perform those more expensive tests.

Follows up Ia81bed7d8b42a2d2b200a3ce45a74e3784cdca2a

Bug: 52829

Change-Id: Ia557cb54f3a1bf67c8282140ab748369faa83028

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 13 Nov 2013 20:17:13 +0000 (20:17 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I9c659e0738ccd737dc0e30042e82c2d50048b9d8

10 years agoMade cleanupUploadStash use batching for the last two loops
Aaron Schulz [Sat, 9 Nov 2013 00:18:32 +0000 (16:18 -0800)]
Made cleanupUploadStash use batching for the last two loops

Change-Id: If3cfd333636f5b14c529629ce1ec408d396122a8

10 years agomw.util.addPortletLink: Check length before access array index
umherirrender [Sun, 10 Nov 2013 17:09:35 +0000 (18:09 +0100)]
mw.util.addPortletLink: Check length before access array index

This avoids "TypeError: Cannot read property 'parentNode' of undefined",
when the given nextNode is a jQuery object without elements.

Adding a test for this case and for the case of unknown id, which
internally results in a empty jQuery object.

Bug: 56770
Change-Id: I56de9e6bc15449e294b538743baf0f0c1cc0abb1

10 years agoRemove extra space
Chad Horohoe [Wed, 13 Nov 2013 16:08:59 +0000 (08:08 -0800)]
Remove extra space

Change-Id: Ia016d1d3ecb4712c29b4140ceb149c49f2a46c7a

10 years agoMerge "BacklinkCache performance tweaks"
jenkins-bot [Wed, 13 Nov 2013 17:06:52 +0000 (17:06 +0000)]
Merge "BacklinkCache performance tweaks"

10 years agoMerge "Fix one more profiling error from I0a9a7f10ea (f5a0c23)"
jenkins-bot [Wed, 13 Nov 2013 16:15:08 +0000 (16:15 +0000)]
Merge "Fix one more profiling error from I0a9a7f10ea (f5a0c23)"

10 years agoMerge "Use capital as first letter for class names"
jenkins-bot [Wed, 13 Nov 2013 16:09:09 +0000 (16:09 +0000)]
Merge "Use capital as first letter for class names"

10 years agoMerge changes I296d39be,I67bccf82
jenkins-bot [Wed, 13 Nov 2013 16:05:53 +0000 (16:05 +0000)]
Merge changes I296d39be,I67bccf82

* changes:
  Use capital for classes Languages and ExtensionLanguages
  Break long lines

10 years agoMerge "Use suppress/restoreWarnings()"
jenkins-bot [Wed, 13 Nov 2013 16:03:46 +0000 (16:03 +0000)]
Merge "Use suppress/restoreWarnings()"

10 years agoMerge "Update docs in CdbPHP.php"
jenkins-bot [Wed, 13 Nov 2013 16:01:41 +0000 (16:01 +0000)]
Merge "Update docs in CdbPHP.php"

10 years agoShort circuit $wgSquidServersNoPurge iteration if ip is specifically
Reedy [Wed, 13 Nov 2013 14:51:25 +0000 (14:51 +0000)]
Short circuit $wgSquidServersNoPurge iteration if ip is specifically
listed. Quicker!

Follows up I49e34bdf13e8e8c6cd169c362c283fe1034bdc6d

Change-Id: Ia81bed7d8b42a2d2b200a3ce45a74e3784cdca2a

10 years agoinstaller: shows status message on DB connection error
Antoine Musso [Wed, 2 Oct 2013 10:33:48 +0000 (12:33 +0200)]
installer: shows status message on DB connection error

While installing MediaWiki with a sqlite backend and missing the sqlite
extension, I have received the very helpful message:

  DatabaseInstaller::setupSchemaVars: unexpected DB connection error

Which to me is as helpful as:

  error

Since the database connection returns a Status object and that it got a
message attached, we might as well pass the error message when raising
the exception.  We would end up with an error like:

 DB connection error: could not find driver.
 Check the data directory and database name below and try again.

That let me instantly facepalm and install the sqlite PHP extension
instead of wasting time figuring out what is happening.

Change-Id: Ife8e97242e1cfbdfbb572ad50cf8e4a7ad5b9dfc

10 years agoFix false positive in findHooks.php
Kunal Mehta [Wed, 13 Nov 2013 07:24:27 +0000 (23:24 -0800)]
Fix false positive in findHooks.php

Use " instead of ', so the script doesn't think it's a hook

Change-Id: Idb28a368eee6bcfe70d1d3aa0a89329769d3fa26

10 years agoMerge "Fix WikitextContentHandlerTest::testMakeRedirectContent() when content languag...
jenkins-bot [Wed, 13 Nov 2013 11:47:57 +0000 (11:47 +0000)]
Merge "Fix WikitextContentHandlerTest::testMakeRedirectContent() when content language is not english"

10 years agoFix one more profiling error from I0a9a7f10ea (f5a0c23)
Alexandre Emsenhuber [Wed, 13 Nov 2013 11:35:00 +0000 (12:35 +0100)]
Fix one more profiling error from I0a9a7f10ea (f5a0c23)

Change-Id: I92c22ef3b6ac98734bb6337f4dbd96d651d1e012

10 years agoMerge changes I5d6baf6f,I2edfeaba
jenkins-bot [Wed, 13 Nov 2013 07:52:09 +0000 (07:52 +0000)]
Merge changes I5d6baf6f,I2edfeaba

* changes:
  Don't use wfIsWindows() in CDB writers
  Clean up CDB classes

10 years agoStandardize spacing
Kunal Mehta [Wed, 13 Nov 2013 05:41:04 +0000 (21:41 -0800)]
Standardize spacing

Change-Id: I1f8d83497fb1e50220993bfc267f05d93250d57c

10 years agoMerge "Add GetLogTypesOnUser hook"
jenkins-bot [Wed, 13 Nov 2013 02:42:41 +0000 (02:42 +0000)]
Merge "Add GetLogTypesOnUser hook"

10 years agoAdd GetLogTypesOnUser hook
Kunal Mehta [Tue, 12 Nov 2013 23:30:04 +0000 (15:30 -0800)]
Add GetLogTypesOnUser hook

Allows extensions to modify the list at SpecialLog::$typeOnUser
This is useful for extensions like Thanks where the target is a
userpage.

Change-Id: I77e1e59d7e3666802d0eeb0c48a0ec211dba0a2a

10 years agoIn Special:AllPages, limit the size of hierarchical lists
Tim Starling [Mon, 11 Nov 2013 02:35:43 +0000 (13:35 +1100)]
In Special:AllPages, limit the size of hierarchical lists

Traversal of the entire page list by spidering the top levels is thought
to require O(N^3) DB CPU time where N is the number of pages on the
wiki. So introduce a limit for the size of such lists, as measured by
the pre-existing estimateRowCount().

Bug: 56840
Change-Id: I189ba71de869496a36f49283ec6dce7bbdfccd73

10 years agoAvoid HEAD requests for files missing from the destination
Aaron Schulz [Tue, 12 Nov 2013 23:23:01 +0000 (15:23 -0800)]
Avoid HEAD requests for files missing from the destination

Change-Id: I8a3d2ddeb650c800d1e4af144d5cd2cb23cd8744