lhc/web/wiklou.git
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 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 agoMerge "Use correct case for SpecialRecentChanges class in SpecialPageFactory::$mList"
jenkins-bot [Tue, 12 Nov 2013 21:41:10 +0000 (21:41 +0000)]
Merge "Use correct case for SpecialRecentChanges class in SpecialPageFactory::$mList"

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

Change-Id: I46ce170fbf18fdde0307af661a817aa1d3850d61

10 years agoRemoved sanity regex since there are too many random formats to track
Aaron Schulz [Tue, 12 Nov 2013 18:16:38 +0000 (10:16 -0800)]
Removed sanity regex since there are too many random formats to track

Change-Id: I9da57ac5b59372324fbe0c627f012c638c88fca0

10 years agoMerge "Expand release notes for Iab02cbd4"
jenkins-bot [Tue, 12 Nov 2013 19:47:41 +0000 (19:47 +0000)]
Merge "Expand release notes for Iab02cbd4"

10 years agoFix location of variable initialization
jeroendedauw [Tue, 12 Nov 2013 19:34:43 +0000 (20:34 +0100)]
Fix location of variable initialization

Change-Id: I270ae60d2b92208f4700e5b5d94385031eb38eca

10 years agoExpand release notes for Iab02cbd4
Bartosz Dziewoński [Tue, 12 Nov 2013 19:35:35 +0000 (20:35 +0100)]
Expand release notes for Iab02cbd4

The one-line blurb doesn't do that change justice.

Change-Id: If7021489f7f952a674659243288a55b8603eef16

10 years agoMerge "thumb.php: map b/c params prior to attempting redirection"
jenkins-bot [Tue, 12 Nov 2013 18:08:02 +0000 (18:08 +0000)]
Merge "thumb.php: map b/c params prior to attempting redirection"

10 years agoMerge "Suppress section edit links with action=render"
jenkins-bot [Tue, 12 Nov 2013 17:31:13 +0000 (17:31 +0000)]
Merge "Suppress section edit links with action=render"

10 years agoUse correct case for SpecialRecentChanges class in SpecialPageFactory::$mList
Alexandre Emsenhuber [Tue, 12 Nov 2013 14:57:49 +0000 (15:57 +0100)]
Use correct case for SpecialRecentChanges class in SpecialPageFactory::$mList

Was giving the following message in the debug log:
Class SpecialRecentchanges was loaded using incorrect case.

Change-Id: I11c90eebeed135d03cb326d484f849cae21d87da

10 years agoUse country neutral "national identification number"
Siebrand Mazeland [Tue, 12 Nov 2013 14:43:23 +0000 (15:43 +0100)]
Use country neutral "national identification number"

Bug: 56655
Change-Id: I66368685f59e9ca75ec3e752be6bbe4f83fe2c55

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 agoFix WikitextContentHandlerTest::testMakeRedirectContent() when content language is...
Alexandre Emsenhuber [Tue, 12 Nov 2013 12:57:13 +0000 (13:57 +0100)]
Fix WikitextContentHandlerTest::testMakeRedirectContent() when content language is not english

Clear the MagicWord object cache, otherwise the magic word names can be cached
in the wrong language, thus making the test fail.

Change-Id: Ia6da94ca2c4f9ca892c81b4aa7cf96108b42ccd5

10 years agothumb.php: map b/c params prior to attempting redirection
Tim Starling [Tue, 12 Nov 2013 03:57:22 +0000 (14:57 +1100)]
thumb.php: map b/c params prior to attempting redirection

This should fix most of the "No width specified" exceptions. I guess
most of this code will be rewritten to fix bug 56926, superseding this
patch, but I thought this might be a useful stopgap.

Bug: 56924
Change-Id: I5bcaaafc81e1e2a8a33819fa64790d5509dc6aa6

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 agoUse suppress/restoreWarnings()
Siebrand Mazeland [Mon, 11 Nov 2013 15:49:37 +0000 (16:49 +0100)]
Use suppress/restoreWarnings()

Instead of @

Change-Id: I0c422e452636ae1af664b24c0859d038592e0e8a

10 years agoUse capital as first letter for class names
Siebrand Mazeland [Mon, 11 Nov 2013 15:43:58 +0000 (16:43 +0100)]
Use capital as first letter for class names

Searched extensions and there is a follow-up for Translate extension. Because class
names are not case-sensitive, this change is backwards-compatible.

Change-Id: Ice6c8beea4fba5c00278c063e4f6198294efabdc

10 years agoUse capital for classes Languages and ExtensionLanguages
Siebrand Mazeland [Mon, 11 Nov 2013 15:32:51 +0000 (16:32 +0100)]
Use capital for classes Languages and ExtensionLanguages

Searched core and 600+ extensions for uses. Found no more.

Class names are case-insensitive anyway.

Change-Id: I296d39be9aa3a2690f80a23691b34394aa1c6637

10 years agoBreak long lines
Siebrand Mazeland [Mon, 11 Nov 2013 15:13:11 +0000 (16:13 +0100)]
Break long lines

Also:
* Remove an unneeded constant MEDIAWIKI check in a file with all classes.
* Document some variables.

Reduces PHP CodeSniffer errors and warnings.

Change-Id: I67bccf82e90302d13ad8fd04c8a4b75ac5edd984

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 agoBacklinkCache performance tweaks
Aaron Schulz [Sat, 9 Nov 2013 20:33:59 +0000 (12:33 -0800)]
BacklinkCache performance tweaks

* In partition(), avoid doing the JOIN since it is not needed and prevents
  index-only queries.
* Made numLinks() wrap partition when no $max is specified.
* Also fixed some docs

Change-Id: I05a83f71efb4c6e99e40883d7fa53da59184b13c

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 agoUpdate docs in CdbPHP.php
Siebrand Mazeland [Thu, 7 Nov 2013 22:23:29 +0000 (23:23 +0100)]
Update docs in CdbPHP.php

Change-Id: I76ff053ad231dd026b3e2576f913cc9d3fa52c79

10 years agoDon't use wfIsWindows() in CDB writers
Chad Horohoe [Thu, 7 Nov 2013 22:26:54 +0000 (14:26 -0800)]
Don't use wfIsWindows() in CDB writers

Uses the same logic, but without the dependency on MediaWiki.
Planning to use this in the het-deploy code.

Change-Id: I5d6baf6fe63d135c679e4795287daa0a8722dde6

10 years agoClean up CDB classes
Chad Horohoe [Thu, 7 Nov 2013 22:03:08 +0000 (14:03 -0800)]
Clean up CDB classes

- Inheritance was a little funny, reduced some duplication
- Throw CdbException instead of plain MWException
- Abstracted wfDebug() to encourage reuse
- Declare visibility on a couple of public methods
- Move DBA implementations to their own file

Change-Id: I2edfeabaf62e39927abe869764ff2bd676821cd0

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 agoSuppress section edit links with action=render
Bartosz Dziewoński [Thu, 7 Nov 2013 16:27:00 +0000 (17:27 +0100)]
Suppress section edit links with action=render

action=render is often used to pull the rendered HTML of an article
for inclusion in a different context. More often than not, the edit
links are not desired in that context.

Bug: 19415
Change-Id: Iab02cbd42f2f93f0f5264a74691ae1b84f296f12

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"