lhc/web/wiklou.git
10 years agoMerge "Make 'quotation-marks' message non-optional"
jenkins-bot [Tue, 12 Nov 2013 14:39:34 +0000 (14:39 +0000)]
Merge "Make 'quotation-marks' message non-optional"

10 years agoChange interlanguage link title message key
Siebrand Mazeland [Tue, 12 Nov 2013 13:17:17 +0000 (14:17 +0100)]
Change interlanguage link title message key

The term or abbreviation "iwiki" doesn't exist and has no meaning in
MediaWiki.

Bug: 56129
Change-Id: I0796b897e9646c122a46de449aaabf4d7a867f00

10 years agoMerge "DatabaseBase: Fix version number in deprecation notice"
jenkins-bot [Mon, 11 Nov 2013 22:12:11 +0000 (22:12 +0000)]
Merge "DatabaseBase: Fix version number in deprecation notice"

10 years agoMake 'quotation-marks' message non-optional
Bartosz Dziewoński [Mon, 11 Nov 2013 21:45:01 +0000 (22:45 +0100)]
Make 'quotation-marks' message non-optional

Followup to Iebf62805.

Change-Id: I9282c787cd35b2cc531418f84a47bab4c06121ed

10 years agoMerge "Adding a quotation marks message to core."
jenkins-bot [Mon, 11 Nov 2013 21:44:51 +0000 (21:44 +0000)]
Merge "Adding a quotation marks message to core."

10 years agoDatabaseBase: Fix version number in deprecation notice
Bartosz Dziewoński [Mon, 11 Nov 2013 21:18:04 +0000 (22:18 +0100)]
DatabaseBase: Fix version number in deprecation notice

Followup to I09418558.

Change-Id: Iebdaf5a6678c4c2611d91b5c2678e89d36bccb20

10 years agoMerge "Do not escape title attribute twice for tooltip-iwiki"
jenkins-bot [Mon, 11 Nov 2013 20:51:05 +0000 (20:51 +0000)]
Merge "Do not escape title attribute twice for tooltip-iwiki"

10 years agoDo not escape title attribute twice for tooltip-iwiki
umherirrender [Mon, 11 Nov 2013 20:34:22 +0000 (21:34 +0100)]
Do not escape title attribute twice for tooltip-iwiki

When building the html the title attribute gets already escaped,
so getting text is enough here.

Bug: 55847
Change-Id: I779d3df414b0dbdfab415129baa3e7209e4067d6

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

Change-Id: I8fc70b7ddf362aa60d577ba71694c0ad0e561b33

10 years agoIncrease LanguageConverter cache version
Niklas Laxström [Mon, 11 Nov 2013 19:38:44 +0000 (19:38 +0000)]
Increase LanguageConverter cache version

It stores ReplacementArray objects, which had changes in
I1b2e3360468cbfc8.

Bug: 56911
Change-Id: Ief8f4848ab33ae3cb3356e60030f76f20f135dcb

10 years agoMerge "Remove duplicate entries in messages.inc"
jenkins-bot [Mon, 11 Nov 2013 17:34:25 +0000 (17:34 +0000)]
Merge "Remove duplicate entries in messages.inc"

10 years agoMerge "Revert "DifferenceEngine cleanup""
jenkins-bot [Mon, 11 Nov 2013 16:47:39 +0000 (16:47 +0000)]
Merge "Revert "DifferenceEngine cleanup""

10 years agoRevert "DifferenceEngine cleanup"
Siebrand [Mon, 11 Nov 2013 16:35:19 +0000 (16:35 +0000)]
Revert "DifferenceEngine cleanup"

This reverts commit 1f423cc6091867371dc31009187d5cdb04142ff7.

Change-Id: I2254eb37376063a081ad89481654b735fb0360b1

10 years agoUpdate formatting in messages.inc
Siebrand Mazeland [Mon, 11 Nov 2013 14:38:56 +0000 (15:38 +0100)]
Update formatting in messages.inc

Remove pretty formatting as has already been done for most MessagesXx.php
files.

Change-Id: Idab691d5ffa914c8486291d82c9aba7731097a20

10 years agoUpdate formatting
Siebrand Mazeland [Mon, 11 Nov 2013 14:37:52 +0000 (15:37 +0100)]
Update formatting

Change-Id: Ia730172478f7f73c02ff3ae30c36e73fb929974b

10 years agoMerge "SpecialRecentChanges: Remove '@todo Uses radio buttons (HASHAR)'"
Alex Monk [Mon, 11 Nov 2013 15:04:16 +0000 (15:04 +0000)]
Merge "SpecialRecentChanges: Remove '@todo Uses radio buttons (HASHAR)'"

10 years agoMerge "New hook 'LocalisationChecksBlacklist' to allow to extend the localisation...
jenkins-bot [Mon, 11 Nov 2013 14:37:19 +0000 (14:37 +0000)]
Merge "New hook 'LocalisationChecksBlacklist' to allow to extend the localisation checks blacklist"

10 years agoMerge "Fix release notes formatting"
jenkins-bot [Sun, 10 Nov 2013 23:03:29 +0000 (23:03 +0000)]
Merge "Fix release notes formatting"

10 years agoFix release notes formatting
Bartosz Dziewoński [Sun, 10 Nov 2013 22:57:14 +0000 (23:57 +0100)]
Fix release notes formatting

* Missing full stop
* Wrapping to 80 characters

Change-Id: I679f72780815c9fd8f03b8939ed25999b8051637

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

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

Change-Id: I19351a973ee95f22d1a05860b3968f0671fcccf2

10 years agoFix profiling error from I0a9a7f10ea (f5a0c23)
Alexandre Emsenhuber [Sun, 10 Nov 2013 12:02:05 +0000 (13:02 +0100)]
Fix profiling error from I0a9a7f10ea (f5a0c23)

Change-Id: Ief49a93208729a544f51fa635311c599c0ae8f6e

10 years agoMerge "Revert "Add a hook to validate account creation fields.""
jenkins-bot [Sun, 10 Nov 2013 10:22:57 +0000 (10:22 +0000)]
Merge "Revert "Add a hook to validate account creation fields.""

10 years agoNew hook 'LocalisationChecksBlacklist' to allow to extend the localisation checks...
Alexandre Emsenhuber [Sun, 10 Nov 2013 10:07:58 +0000 (11:07 +0100)]
New hook 'LocalisationChecksBlacklist' to allow to extend the localisation checks blacklist

The point is to allow to use the blacklist of translatewiki.net,
so the format of $checkBlacklist got changed to be compatible with it.

Change-Id: I5eb328c4bdbb0b21962b89acbe12f46ebb4d9d70

10 years agoMerge "Add content model to the page information"
jenkins-bot [Sun, 10 Nov 2013 07:30:48 +0000 (07:30 +0000)]
Merge "Add content model to the page information"

10 years agoAdd content model to the page information
umherirrender [Sun, 10 Nov 2013 06:39:27 +0000 (07:39 +0100)]
Add content model to the page information

This patch adds a new table row with the content model of the page, this
is usally wikitext, can also be javascript or CSS.

Bug: 56033
Change-Id: If91f6c20d79cd7b3b8924ab6c3df5f90acd8c7a1

10 years agoRevert "Add a hook to validate account creation fields."
Parent5446 [Sun, 10 Nov 2013 04:34:22 +0000 (04:34 +0000)]
Revert "Add a hook to validate account creation fields."

Change adds a hook that serves exactly the same purpose as
AbortNewAccount. Also change was merged prematurely and is
missing message documentation as well as having some minor
code flow issues.

This reverts commit cc1006b77c6dfdc53266e0bfc73fc9daf304f8e7.

Change-Id: I8656aa1a99c84778fd85ec7da9d6ce23bd6cf9b9

10 years agoMerge "Sync RELEASE-NOTES-1.22 between master and REL1_22"
jenkins-bot [Sat, 9 Nov 2013 22:23:00 +0000 (22:23 +0000)]
Merge "Sync RELEASE-NOTES-1.22 between master and REL1_22"

10 years agoAdd a hook to validate account creation fields.
Andrew Bogott [Sat, 9 Nov 2013 20:21:02 +0000 (20:21 +0000)]
Add a hook to validate account creation fields.

This is a step on the way to fixing bug 56847.

Change-Id: Id330a8ac041ddea086f192a90ddc962077453333

10 years agoSync RELEASE-NOTES-1.22 between master and REL1_22
Alexandre Emsenhuber [Sat, 9 Nov 2013 15:58:07 +0000 (16:58 +0100)]
Sync RELEASE-NOTES-1.22 between master and REL1_22

Part I: master

Also moved entry about recentchanges table to 1.23 since it's not in the 1.22 release.

Change-Id: I5113828701fde7d21c81ef3219d04202a9073f00

10 years agoRemove duplicate entries in messages.inc
umherirrender [Sat, 9 Nov 2013 19:14:13 +0000 (20:14 +0100)]
Remove duplicate entries in messages.inc

Change-Id: I8ecbc90b945e718d26b768786181ad2a167de5ba

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 9 Nov 2013 18:48:48 +0000 (18:48 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Idb35f8a3a0c17b3d2ae2709de03cad2aac6ec177

10 years agoAdd missing full stop to 7127c179 release notes
Bartosz Dziewoński [Sat, 9 Nov 2013 01:01:45 +0000 (02:01 +0100)]
Add missing full stop to 7127c179 release notes

Change-Id: I9fd48f3327afeba9983eda25ba6e448ecb202768

10 years agoMerge "Localisation updates from http://translatewiki.net."
jenkins-bot [Sat, 9 Nov 2013 09:20:31 +0000 (09:20 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoMerge "xml dump maintenance scripts should use the 'dump' db group"
jenkins-bot [Sat, 9 Nov 2013 06:19:04 +0000 (06:19 +0000)]
Merge "xml dump maintenance scripts should use the 'dump' db group"

10 years agoFixed loading of stat cache entries into the wrong key
Aaron Schulz [Sat, 9 Nov 2013 05:24:24 +0000 (21:24 -0800)]
Fixed loading of stat cache entries into the wrong key

* Silly bug from 2afdc066f52b54faf63f9c980f7ef6a7841dd094 which caused HEAD
  requests. Probably missed in local testing due to memcached.

Change-Id: I3b82ffe964e252eafa5254f7752e5ba45b49ba0e

10 years agoCreate prepareQuickTemplate function
jrobson [Thu, 7 Nov 2013 21:23:47 +0000 (13:23 -0800)]
Create prepareQuickTemplate function

Skins should be able to easily add to templates their own
variables. This helps with this.

This helps drastically reduce to the code in the mobile
skin and ensure it benefits from changes in core

See: I43fc26bf334753b189e20921f142bade7658ac31

Change-Id: I0a9a7f10ea6a2e9c90c2a83e7c5f7fa56fa0fb93

10 years agoMerge "DifferenceEngine cleanup"
jenkins-bot [Sat, 9 Nov 2013 01:19:28 +0000 (01:19 +0000)]
Merge "DifferenceEngine cleanup"

10 years agoMerge "Refactor diffs"
jenkins-bot [Sat, 9 Nov 2013 01:18:08 +0000 (01:18 +0000)]
Merge "Refactor diffs"

10 years agoMerge "Give the search page a little UI love"
jenkins-bot [Sat, 9 Nov 2013 00:58:50 +0000 (00:58 +0000)]
Merge "Give the search page a little UI love"

10 years agoMerge "Expose iw_trans in siteinfo API interwikimap prop"
jenkins-bot [Sat, 9 Nov 2013 00:56:53 +0000 (00:56 +0000)]
Merge "Expose iw_trans in siteinfo API interwikimap prop"

10 years agoMerge "SpecialWatchlist: Minor cleanup"
jenkins-bot [Sat, 9 Nov 2013 00:49:44 +0000 (00:49 +0000)]
Merge "SpecialWatchlist: Minor cleanup"

10 years agoGive the search page a little UI love
Chad Horohoe [Thu, 7 Nov 2013 23:19:36 +0000 (15:19 -0800)]
Give the search page a little UI love

Uses mediawiki.ui to make the input field more legible and modern,
as well as giving the search button a lovely shade of blue.

Screenshot: https://www.mediawiki.org/wiki/File:Search-UI-minor-tweak.png
Change-Id: I7fdd9970ed5807df94c04bec1681f33523cad173

10 years agoSpecialWatchlist: Minor cleanup
Bartosz Dziewoński [Sat, 9 Nov 2013 00:37:59 +0000 (01:37 +0100)]
SpecialWatchlist: Minor cleanup

* Prettier whitespacing
* Removed query building special-case already handled by makeList()

Change-Id: I45aa7bbbff1e21abd739825939fd5cd3d02fc7a4

10 years agoDifferenceEngine cleanup
Max Semenik [Wed, 30 Oct 2013 17:21:45 +0000 (21:21 +0400)]
DifferenceEngine cleanup

* Remove mPrefixes from variables
* Turn a define into class const

Change-Id: I80874627df9dffae596f8f7cb3ca28f19ba1f167

10 years agoSpecialRecentChanges: Remove '@todo Uses radio buttons (HASHAR)'
Bartosz Dziewoński [Sat, 9 Nov 2013 00:19:48 +0000 (01:19 +0100)]
SpecialRecentChanges: Remove '@todo Uses radio buttons (HASHAR)'

Unless Hashar can explain what he meant by that back in 2011 (r83110),
because I have no idea.

Change-Id: Ibc12fa08e6862597291bc59a7bf0a5d83f9ad5a1

10 years agoMerge "DifferenceEngine minor fixes"
jenkins-bot [Fri, 8 Nov 2013 23:53:33 +0000 (23:53 +0000)]
Merge "DifferenceEngine minor fixes"

10 years agoAdding a quotation marks message to core.
kaldari [Tue, 5 Nov 2013 23:06:47 +0000 (15:06 -0800)]
Adding a quotation marks message to core.

Needed for...
https://wikimedia.mingle.thoughtworks.com/projects/mobile/cards/1218

This could be implemented in MobileFrontend, but it seems generic
enough to be put in core.

Change-Id: Iebf628052ea14f0fb8b931d7c37a0501a24d3d45

10 years agoMerge "Cleanup watchlist preference usage"
jenkins-bot [Fri, 8 Nov 2013 22:27:03 +0000 (22:27 +0000)]
Merge "Cleanup watchlist preference usage"

10 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 8 Nov 2013 21:06:21 +0000 (21:06 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Id994668c92eba6fda112e92f5cc4c4747e6f3b75

10 years agoClarify thumbnail log failure entries when the local file copy failed
Aaron Schulz [Fri, 8 Nov 2013 19:23:17 +0000 (11:23 -0800)]
Clarify thumbnail log failure entries when the local file copy failed

Change-Id: I8ed9a5ffc04b1abd2e7b2c055dfdfb2625e89fde

10 years agoCleanup watchlist preference usage
Brad Jorsch [Fri, 8 Nov 2013 18:01:28 +0000 (13:01 -0500)]
Cleanup watchlist preference usage

In general, the web UI does a check of the watchlist preferences along
the lines of "watch if watchdefault, or if watchcreations and the title
doesn't exist". So there's no way to have it watch edits but not
creations. Make the API behavior match this.

For API action=protect&watchlist=preferences, we want to use
'watchdefault' always to match the behavior of the web UI.

For Special:Upload, the code is all there to do a "watch if
watchdefault, or if watchcreations and the file doesn't exist". But for
some reason that code wasn't being used in favor of just using
watchcreations all the time. Fix that, too. And have the API use that
instead of checking if the file page exists.

Bug: 56766
Change-Id: I57fc46d9a97b3ea2169173727db842d0d7ecf81d

10 years agoAnons should not be able to use the change e-mail form at all
Chad Horohoe [Fri, 8 Nov 2013 18:55:57 +0000 (10:55 -0800)]
Anons should not be able to use the change e-mail form  at all

They already bailed out on GET, but we should bail here on POST
rather than bait-and-switching.

Change-Id: Iaf0474e89d7e660e2025e02bda146aa23ecc592b

10 years agoMerge "Support CIDR ranges in $wgSquidServersNoPurge"
jenkins-bot [Fri, 8 Nov 2013 18:03:33 +0000 (18:03 +0000)]
Merge "Support CIDR ranges in $wgSquidServersNoPurge"

10 years agoCorrect tooltip of "Next n results" on query special pages.
Alexandre Emsenhuber [Fri, 8 Nov 2013 17:45:42 +0000 (18:45 +0100)]
Correct tooltip of "Next n results" on query special pages.

Was showing "Previous n results".

Bug: 56707
Change-Id: I9f51d70f9e1fe3c314a1226950f1324ab22f4199

10 years agoMerge "Let mw.util.addCSS also return a CSSStyleSheet in IE8"
jenkins-bot [Fri, 8 Nov 2013 16:02:41 +0000 (16:02 +0000)]
Merge "Let mw.util.addCSS also return a CSSStyleSheet in IE8"

10 years agoMerge "Improve variable naming in EnhancedChangesList"
jenkins-bot [Fri, 8 Nov 2013 15:57:52 +0000 (15:57 +0000)]
Merge "Improve variable naming in EnhancedChangesList"

10 years agoMerge "Fix call to function applyPatch in MysqlUpdater"
jenkins-bot [Fri, 8 Nov 2013 14:51:14 +0000 (14:51 +0000)]
Merge "Fix call to function applyPatch in MysqlUpdater"

10 years agoLet mw.util.addCSS also return a CSSStyleSheet in IE8
umherirrender [Fri, 8 Nov 2013 14:32:51 +0000 (15:32 +0100)]
Let mw.util.addCSS also return a CSSStyleSheet in IE8

The IE8 has a 'styleSheet' attribute instead of a 'sheet' attribute

Change-Id: I83fc602a43cae7d2d9be32ea6fef84bc5129dbb9

10 years agoImprove variable naming in EnhancedChangesList
aude [Fri, 8 Nov 2013 11:20:58 +0000 (11:20 +0000)]
Improve variable naming in EnhancedChangesList

Make clearer when we are dealing with an RCCacheEntry
vs. ordinary RecentChange object.

Change-Id: Id9342b033d46b9b700bd021c451d6f817cd25845

10 years agoMerge "Add convenience maintenance script wrapper"
jenkins-bot [Fri, 8 Nov 2013 13:09:42 +0000 (13:09 +0000)]
Merge "Add convenience maintenance script wrapper"

10 years agoAllow ParserLimitReportFormat to change $value
Brad Jorsch [Thu, 22 Aug 2013 17:47:23 +0000 (13:47 -0400)]
Allow ParserLimitReportFormat to change $value

It's likely that an extension might want to reformat the value (e.g. by
passing it through Language::formatSize()), but otherwise use the
default behavior for the key. Make $value a reference parameter so they
don't have to reimplement all the logic for laying out the row.

Change-Id: I7799616a602d90e1b8d3f0ece35811ca387bade7

10 years agoWork around HHVM bug with stdin/stdout in proc_open()
Chad Horohoe [Wed, 6 Nov 2013 23:31:25 +0000 (15:31 -0800)]
Work around HHVM bug with stdin/stdout in proc_open()

Bug: 56597
Change-Id: I06122d82fce4567be110ca25010c244dd9269c57

10 years agofilebackend: improved "adviseStat" performance
Aaron Schulz [Thu, 7 Nov 2013 20:51:10 +0000 (12:51 -0800)]
filebackend: improved "adviseStat" performance

* Use the normal page size instead of limiting it way down to the cache
  size. Track the stat information in the pages and load into into the
  stat cache as entries are accessed. This should also be less prone to
  evictions causing HEAD requests (or memcached hits).
* Also bumped CACHE_CHEAP_SIZE up to 500.
* Fix a few doc bits

Change-Id: I8d44a072e7bcc56c83d8d9c8c9ac9864530bccf8

10 years agoSpeed up thumbnail purging a bit for stash script
Aaron Schulz [Fri, 8 Nov 2013 00:28:09 +0000 (16:28 -0800)]
Speed up thumbnail purging a bit for stash script

Change-Id: Ie0f3d5aa505a5c1554d7932d38ba376811590df1

10 years agoMerge "FormOptions: Implement FLOAT type"
jenkins-bot [Thu, 7 Nov 2013 23:51:40 +0000 (23:51 +0000)]
Merge "FormOptions: Implement FLOAT type"

10 years agoMerge "Set visibility for class property of RegexlikeReplacer"
jenkins-bot [Thu, 7 Nov 2013 23:49:01 +0000 (23:49 +0000)]
Merge "Set visibility for class property of RegexlikeReplacer"

10 years agoMerge "Set visibility on class properties of ExplodeIterator"
jenkins-bot [Thu, 7 Nov 2013 23:47:11 +0000 (23:47 +0000)]
Merge "Set visibility on class properties of ExplodeIterator"

10 years agoMerge "Set visibility on class properties of ReplacementArray"
jenkins-bot [Thu, 7 Nov 2013 23:45:27 +0000 (23:45 +0000)]
Merge "Set visibility on class properties of ReplacementArray"

10 years agoMerge "Simplify watchlist edit mode handling"
jenkins-bot [Thu, 7 Nov 2013 23:14:52 +0000 (23:14 +0000)]
Merge "Simplify watchlist edit mode handling"

10 years agoFormOptions: Implement FLOAT type
Bartosz Dziewoński [Sat, 12 Oct 2013 15:34:15 +0000 (17:34 +0200)]
FormOptions: Implement FLOAT type

Also added WebRequest#getFloat().

Change-Id: I854f09bd26287880a2806852274471904bc33092

10 years agoMerge "Remove stupid one-cell table"
jenkins-bot [Thu, 7 Nov 2013 22:42:47 +0000 (22:42 +0000)]
Merge "Remove stupid one-cell table"

10 years agoMerge "Set visibility of class properties of HashtableReplacer"
jenkins-bot [Thu, 7 Nov 2013 22:35:23 +0000 (22:35 +0000)]
Merge "Set visibility of class properties of HashtableReplacer"

10 years agoMerge "wikibits: Add some missing deprecation messages"
jenkins-bot [Thu, 7 Nov 2013 22:34:13 +0000 (22:34 +0000)]
Merge "wikibits: Add some missing deprecation messages"

10 years agowikibits: Add some missing deprecation messages
Bartosz Dziewoński [Thu, 7 Nov 2013 22:06:15 +0000 (23:06 +0100)]
wikibits: Add some missing deprecation messages

Follow-up to Iab65de1a.

Change-Id: I8925f7dc34b295d6ae3704813e18a4b191f08819

10 years agoSet visibility for class property of RegexlikeReplacer
Siebrand Mazeland [Thu, 7 Nov 2013 22:05:55 +0000 (23:05 +0100)]
Set visibility for class property of RegexlikeReplacer

Only used in StringUtils::delimiterReplace(). Search core and 600+
extensions.

Change-Id: Ibbf0edd1143f7bd2dc39e9ad913d1e4a38f60dfc

10 years agoSet visibility on class properties of ExplodeIterator
Siebrand Mazeland [Thu, 7 Nov 2013 22:02:03 +0000 (23:02 +0100)]
Set visibility on class properties of ExplodeIterator

Set to private. Only used in StringUtils::explode(). Searched
core and 600+ extensions.

Change-Id: Idbf981d1864f45bbb4adce08803dc693d9a5c200

10 years agoSet visibility on class properties of ReplacementArray
Siebrand Mazeland [Thu, 7 Nov 2013 21:48:37 +0000 (22:48 +0100)]
Set visibility on class properties of ReplacementArray

Usages in:

Core:
* HtmlFormatter: No referenced properties.
* Language: No referenced properties.
* LanguageConverter subclasses: I think there are no referenced properties
  here, but not 100% certain.
* Tidy: No referenced properties.

Extensions:
* AbuseFilter: No referenced properties.
* LiquidThreads: No referenced properties.
* Transliterator: No referenced properties.
* WYSIWIG: No referenced properties.

Change-Id: I1b2e3360468cbfc803ab884f999437e9b8c3758d

10 years agoSet visibility of class properties of HashtableReplacer
Siebrand Mazeland [Thu, 7 Nov 2013 21:46:41 +0000 (22:46 +0100)]
Set visibility of class properties of HashtableReplacer

Set to private. Not referenced in core or 600+ checked extensions.

Change-Id: I7275aa99fb9e4c0c0df9756c1b3433884a71f04c

10 years agoDeclare visibility on class properties
Siebrand Mazeland [Thu, 7 Nov 2013 21:39:48 +0000 (22:39 +0100)]
Declare visibility on class properties

Set to protected, so they are accessible when subclassed. Grepped core and
a little over 600 extensions for usage. Only usage found in UploadBase.php
and no direct usage of class properties.

Change-Id: Icb3a43867670f140f05643379c7acad34c6518c1

10 years agoDeclare visibility on class property
Siebrand Mazeland [Thu, 7 Nov 2013 21:34:34 +0000 (22:34 +0100)]
Declare visibility on class property

Checked core and extensions for possible usage. Found no occurrences. Make
protected, so it is accessible when subclassed.

Change-Id: I5f25cbaf20215bce9c9d614c76df906c6b9cba93

10 years agoAddress some PHP CodeSniffer errors and warnings
Siebrand Mazeland [Mon, 4 Nov 2013 10:02:48 +0000 (11:02 +0100)]
Address some PHP CodeSniffer errors and warnings

Change-Id: I495481e3532834f1f8a45cda9402d609de7e2bd7

10 years agoRemove underscore from CdbReader_[DBA|PHP] classes and related file
Siebrand Mazeland [Mon, 4 Nov 2013 10:02:48 +0000 (11:02 +0100)]
Remove underscore from CdbReader_[DBA|PHP] classes and related file

Also gets rid of some CodeSniffer errors. There are more cases in core
(cache, pool counter, installer, database, load balancer, diff, CSS
Janus, less (argh!), media, parser, revdel, ...), that have class names
with underscores I'd be trying to get rid of later.

Change-Id: I33709c05e597978a5574a445fa43c583cbd7e12b

10 years agoMerge "Remove deprecated ChangesList::newFromUser function"
jenkins-bot [Thu, 7 Nov 2013 21:14:00 +0000 (21:14 +0000)]
Merge "Remove deprecated ChangesList::newFromUser function"

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

Change-Id: Ieec9d2dd657cfaea9d0e00e225b9b5a30ffa9acd

10 years agoSupport CIDR ranges in $wgSquidServersNoPurge
Bryan Davis [Thu, 7 Nov 2013 19:59:13 +0000 (12:59 -0700)]
Support CIDR ranges in $wgSquidServersNoPurge

Use IP::isInRange() in wfIsConfiguredProxy() to allow matching against
CIDR entries in $wgSquidServersNoPurge. This will allow maintainers of
large networks to whitelist contiguous blocks of IPv4 and/or IPv6
addresses as trusted X-Forwarded-For providers.

This change also makes a small change to
WebRequestTest::testGetIpLackOfRemoteAddrThrowAnException() which was
failing under some configurations due to non-default globals
configuration.

Bug: 52829
Change-Id: I49e34bdf13e8e8c6cd169c362c283fe1034bdc6d

10 years agoAdd convenience maintenance script wrapper
aude [Tue, 5 Nov 2013 15:54:16 +0000 (15:54 +0000)]
Add convenience maintenance script wrapper

Useful for scripts or extensions installed in non-standard locations.

Example usage:

php maintenance/runScript.php
extensions/Wikibase/lib/maintenance/dispatchChanges.php

Change-Id: I6ffc72f41f3f96dd535a427d90c7166372459bd2

10 years agoMerge "Cleaned up DatabaseBase constructor to use an array"
jenkins-bot [Thu, 7 Nov 2013 19:36:22 +0000 (19:36 +0000)]
Merge "Cleaned up DatabaseBase constructor to use an array"

10 years agoMerge "Add rc.unpatrolled to the recentchanges API"
jenkins-bot [Thu, 7 Nov 2013 18:56:24 +0000 (18:56 +0000)]
Merge "Add rc.unpatrolled to the recentchanges API"

10 years agoUse anon-specific text in Article::showMissingArticle
Matthias Mullie [Wed, 11 Sep 2013 20:03:10 +0000 (13:03 -0700)]
Use anon-specific text in Article::showMissingArticle

Just like Article::getContentObject(), Article::showMissingArticle()
should display noarticletextanon for non-logged-in editors instead of
noarticletext.

Change-Id: I7003a1d331437e0a2a1f3aabfbe8793b37200f8b

10 years agoMerge "Migrate usage of wikibits in legacy protect.js and upload.js"
jenkins-bot [Thu, 7 Nov 2013 18:09:27 +0000 (18:09 +0000)]
Merge "Migrate usage of wikibits in legacy protect.js and upload.js"

10 years agoMerge "Declare visibility on Autoloader::$autoloadLocalClassesLower"
jenkins-bot [Thu, 7 Nov 2013 18:04:21 +0000 (18:04 +0000)]
Merge "Declare visibility on Autoloader::$autoloadLocalClassesLower"

10 years agoMerge "Add close elements through code"
jenkins-bot [Thu, 7 Nov 2013 17:57:18 +0000 (17:57 +0000)]
Merge "Add close elements through code"

10 years agoMerge "Break long lines"
jenkins-bot [Thu, 7 Nov 2013 17:49:56 +0000 (17:49 +0000)]
Merge "Break long lines"

10 years agoMerge "Move files with tests to reflect the code"
jenkins-bot [Thu, 7 Nov 2013 17:45:41 +0000 (17:45 +0000)]
Merge "Move files with tests to reflect the code"

10 years agoDeclare visibility on Autoloader::$autoloadLocalClassesLower
Siebrand Mazeland [Thu, 7 Nov 2013 16:50:23 +0000 (17:50 +0100)]
Declare visibility on Autoloader::$autoloadLocalClassesLower

Make protected, add method to allow tests to clear the protected class
property, and remove a now unneeded class from the test.

Change-Id: I269cab8d3f4419c91dfe15d5722e19ff6da828d1

10 years agoMigrate usage of wikibits in legacy protect.js and upload.js
Timo Tijhof [Thu, 7 Nov 2013 17:35:24 +0000 (18:35 +0100)]
Migrate usage of wikibits in legacy protect.js and upload.js

Follows-up fcf4934a52.

protect:
* Use jQuery instead.
* Removing now-obsolete dependency.
* Make cell.appendChild more obvious and potentialy faster
  by grouping the dom actions in 1 sequence.

config:
* Removing obsolete dependency.

upload:
* Use jquery.spinner instead.
* Removing now-obsolete dependency.

jquery.spinner:
* While at it, updated documentation to be included in our
  jsduck index, similar to jquery.localize.

jsduck/external.js:
* Added @static to jQuery.ajax which was missing, it showed up
  between instance methods like jQuery#injectSpinner.

The only module left using mediawiki.legacy.wikibits is
mediawiki.legacy.ajax which remains in tact for now.

Bug: 56726
Change-Id: I712112626a99dc2d0090f554c56052770cd0ae88

10 years agoMerge "Rename mw.util.wikiGetlink to getUrl"
jenkins-bot [Thu, 7 Nov 2013 17:36:13 +0000 (17:36 +0000)]
Merge "Rename mw.util.wikiGetlink to getUrl"

10 years agoAdd close elements through code
Siebrand Mazeland [Tue, 8 Oct 2013 16:33:06 +0000 (18:33 +0200)]
Add close elements through code

Change-Id: I517221ebcc062477f315c6716e74056c754988a0

10 years agoBreak long lines
Siebrand Mazeland [Thu, 7 Nov 2013 17:10:50 +0000 (18:10 +0100)]
Break long lines

Fixes CodeSniffer errors/warnings.

Change-Id: I6417072270ec7236ad2412abda6f6afce189f0fd