lhc/web/wiklou.git
10 years agoMerge "Various fixes for RecentChange"
jenkins-bot [Tue, 19 Nov 2013 18:03:46 +0000 (18:03 +0000)]
Merge "Various fixes for RecentChange"

10 years agoMerge "remove specific FORCE INDEX clauses causing trouble"
jenkins-bot [Tue, 19 Nov 2013 17:54:30 +0000 (17:54 +0000)]
Merge "remove specific FORCE INDEX clauses causing trouble"

10 years agoremove specific FORCE INDEX clauses causing trouble
Sean Pringle [Tue, 19 Nov 2013 09:53:05 +0000 (19:53 +1000)]
remove specific FORCE INDEX clauses causing trouble

bug: 45619
Change-Id: I6b8f35bd8d709ccc8e4811836e7731bcedb5520c

10 years agoRemove no longer needed code for PHP 5.2 compat
jeroendedauw [Tue, 19 Nov 2013 17:04:11 +0000 (18:04 +0100)]
Remove no longer needed code for PHP 5.2 compat

Change-Id: I9c1f5f12f51274c443084da55447d12b828a9fb0

10 years agoVarious fixes for RecentChange
Siebrand Mazeland [Tue, 19 Nov 2013 12:29:45 +0000 (13:29 +0100)]
Various fixes for RecentChange

* Do not return the value of a function that returns void
* Update documentation

Change-Id: I2b25bf34f578be516a19c84d45860ab6c7f93e0e

10 years agoMerge "Adding hlist module to mediawiki"
jenkins-bot [Tue, 19 Nov 2013 11:17:47 +0000 (11:17 +0000)]
Merge "Adding hlist module to mediawiki"

10 years agoMerge "Remove unused classes Title[List]Dependency"
jenkins-bot [Tue, 19 Nov 2013 08:40:16 +0000 (08:40 +0000)]
Merge "Remove unused classes Title[List]Dependency"

10 years agoMerge "Update formatting"
jenkins-bot [Tue, 19 Nov 2013 06:39:03 +0000 (06:39 +0000)]
Merge "Update formatting"

10 years agoMerge "Address CodeSniffer errors and warnings"
jenkins-bot [Tue, 19 Nov 2013 06:35:56 +0000 (06:35 +0000)]
Merge "Address CodeSniffer errors and warnings"

10 years agoUpdate formatting
Siebrand Mazeland [Mon, 18 Nov 2013 22:07:49 +0000 (23:07 +0100)]
Update formatting

Change-Id: I7586c4d50f7332c515b8377749c4250cc9e04d83

10 years agoMerge "Add visibility to Status functions and variables"
jenkins-bot [Tue, 19 Nov 2013 06:20:43 +0000 (06:20 +0000)]
Merge "Add visibility to Status functions and variables"

10 years agoAdd visibility to Status functions and variables
aude [Thu, 24 Oct 2013 19:41:51 +0000 (19:41 +0000)]
Add visibility to Status functions and variables

Change-Id: I829a7503693318586e33605d2ac8e2ca63f3c886

10 years agoMerge "Move RecentChangeTest to subdirectory"
jenkins-bot [Tue, 19 Nov 2013 05:32:19 +0000 (05:32 +0000)]
Merge "Move RecentChangeTest to subdirectory"

10 years agoAddress CodeSniffer errors and warnings
Siebrand Mazeland [Mon, 18 Nov 2013 22:03:29 +0000 (23:03 +0100)]
Address CodeSniffer errors and warnings

Change-Id: Ie119db7d6d9e9eb3c1cd9c07b8f84fd155847c62

10 years agoMerge "Fix indentation of comment in tables.sql"
jenkins-bot [Tue, 19 Nov 2013 05:26:56 +0000 (05:26 +0000)]
Merge "Fix indentation of comment in tables.sql"

10 years agoMerge "Put status handling in EditPage into private function"
jenkins-bot [Mon, 18 Nov 2013 23:17:51 +0000 (23:17 +0000)]
Merge "Put status handling in EditPage into private function"

10 years agoMerge "mediawiki.ui: Add right padding to .agora-field-styling()"
jenkins-bot [Mon, 18 Nov 2013 22:52:46 +0000 (22:52 +0000)]
Merge "mediawiki.ui: Add right padding to .agora-field-styling()"

10 years agoPut status handling in EditPage into private function
aude [Mon, 18 Nov 2013 21:24:59 +0000 (22:24 +0100)]
Put status handling in EditPage into private function

This bit of code is isolated enough to be separated from
attemptSave and be put into a private function.

Change-Id: I84c532358ee32fec959039c62798e4de0702f14a

10 years agoAdding hlist module to mediawiki
mayankmadan [Mon, 18 Nov 2013 19:28:36 +0000 (00:58 +0530)]
Adding hlist module to mediawiki

Bug: 40062
Change-Id: Ie4ac182ce53317654b4cc17b25cfa34596054df7

10 years agoMerge "Remove unused global in ForeignAPIRepo"
jenkins-bot [Mon, 18 Nov 2013 21:10:38 +0000 (21:10 +0000)]
Merge "Remove unused global in ForeignAPIRepo"

10 years agoRemove unused global in ForeignAPIRepo
umherirrender [Mon, 18 Nov 2013 20:49:28 +0000 (21:49 +0100)]
Remove unused global in ForeignAPIRepo

Follow-Up: I6849107a3af773687a31155b23a2d7b4d7a60645
Change-Id: I45d405a4dca9b7928f740fcd231e95c599310689

10 years agoMerge "Localisation updates from http://translatewiki.net."
Raimond Spekking [Mon, 18 Nov 2013 20:46:48 +0000 (20:46 +0000)]
Merge "Localisation updates from translatewiki.net."

10 years agoRemove unused classes Title[List]Dependency
Siebrand Mazeland [Mon, 18 Nov 2013 04:31:31 +0000 (05:31 +0100)]
Remove unused classes Title[List]Dependency

Classes TitleListDependency and TitleDependency that are currently not
used. Searched core and extensions in Gerrit.

Change-Id: I51404ce36c4ef55393588817d1673fd17c81b4a2

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

Change-Id: I3615ad83da760c512799749618a35cb2e366ba41

10 years agoMerge "Format email addresses more consistently"
jenkins-bot [Mon, 18 Nov 2013 20:33:37 +0000 (20:33 +0000)]
Merge "Format email addresses more consistently"

10 years agoFormat email addresses more consistently
Siebrand Mazeland [Sat, 16 Nov 2013 21:22:12 +0000 (22:22 +0100)]
Format email addresses more consistently

Change-Id: I1dbced804ff1e0bf8e162570c17cc537d318872f

10 years agoUpdate LinkCache::addGoodLinkObj param defaults to int
Siebrand Mazeland [Sun, 17 Nov 2013 20:42:23 +0000 (21:42 +0100)]
Update LinkCache::addGoodLinkObj param defaults to int

Update the defaults for $revision and $model from bool to int, making it
consistent with the documented input. Also update docs and line length.
Change "inval( $x )" to preferred "(int) $x" while changing the method.

Change-Id: Ic19a408aa7c50fb03e2c3aca8df3fa7cedc2420b

10 years agoMerge "Add WikiFilePage::getForeignCategories() method"
jenkins-bot [Mon, 18 Nov 2013 19:23:36 +0000 (19:23 +0000)]
Merge "Add WikiFilePage::getForeignCategories() method"

10 years agoMerge "Tweaked WikiPage::clear() comment a bit"
jenkins-bot [Mon, 18 Nov 2013 19:18:41 +0000 (19:18 +0000)]
Merge "Tweaked WikiPage::clear() comment a bit"

10 years agoAdd WikiFilePage::getForeignCategories() method
tgr [Wed, 13 Nov 2013 12:35:25 +0000 (12:35 +0000)]
Add WikiFilePage::getForeignCategories() method

Unlike getCategories(), this will return the categories
on the wiki where the file is hosted (so it should work with Commons).

Bug: 56598
Change-Id: Ice972f023c676b5857707ccf58ee108585a7f021

10 years agoMerge "Enable module storage for 0.05% of visitors w/storage-capable browsers"
jenkins-bot [Mon, 18 Nov 2013 19:06:45 +0000 (19:06 +0000)]
Merge "Enable module storage for 0.05% of visitors w/storage-capable browsers"

10 years agoTweaked WikiPage::clear() comment a bit
Aaron Schulz [Sun, 17 Nov 2013 19:40:42 +0000 (11:40 -0800)]
Tweaked WikiPage::clear() comment a bit

Change-Id: I9ec27b575de5547d1ab0569c4c2cdd1307f8307a

10 years agoMerge "Declare visibility on class properties of LCStore* classes"
jenkins-bot [Mon, 18 Nov 2013 18:58:22 +0000 (18:58 +0000)]
Merge "Declare visibility on class properties of LCStore* classes"

10 years agoMerge "Declare visibility on class properties of LocalisationCache"
jenkins-bot [Mon, 18 Nov 2013 18:56:27 +0000 (18:56 +0000)]
Merge "Declare visibility on class properties of LocalisationCache"

10 years agoMerge "Remove underscore from classes LCStore_*"
jenkins-bot [Mon, 18 Nov 2013 18:54:25 +0000 (18:54 +0000)]
Merge "Remove underscore from classes LCStore_*"

10 years agoMerge "Set visibility on class properties for *Dependency classes"
jenkins-bot [Mon, 18 Nov 2013 18:46:48 +0000 (18:46 +0000)]
Merge "Set visibility on class properties for *Dependency classes"

10 years agoMerge "Declare visibility for class properties of LocalisationCacheBulkLoad"
jenkins-bot [Mon, 18 Nov 2013 18:45:10 +0000 (18:45 +0000)]
Merge "Declare visibility for class properties of LocalisationCacheBulkLoad"

10 years agoMerge "Remove underscore from class LocalisationCache_BulkLoad"
jenkins-bot [Mon, 18 Nov 2013 18:43:16 +0000 (18:43 +0000)]
Merge "Remove underscore from class LocalisationCache_BulkLoad"

10 years agoMerge "Break long lines in includes/cache/"
jenkins-bot [Mon, 18 Nov 2013 18:41:27 +0000 (18:41 +0000)]
Merge "Break long lines in includes/cache/"

10 years agoMerge "Update formatting"
jenkins-bot [Mon, 18 Nov 2013 18:39:29 +0000 (18:39 +0000)]
Merge "Update formatting"

10 years agoMerge "Remove unused local variables"
jenkins-bot [Mon, 18 Nov 2013 18:37:37 +0000 (18:37 +0000)]
Merge "Remove unused local variables"

10 years agoFix indentation of comment in tables.sql
umherirrender [Mon, 18 Nov 2013 18:34:49 +0000 (19:34 +0100)]
Fix indentation of comment in tables.sql

Change-Id: Id879b4438f8f004549c090567ff76b64c5072824

10 years agoMerge "Set visibility for class properties of DependencyWrapper"
jenkins-bot [Mon, 18 Nov 2013 18:30:05 +0000 (18:30 +0000)]
Merge "Set visibility for class properties of DependencyWrapper"

10 years agoMerge "Address errors and warnings in CodeSniffer in api/"
jenkins-bot [Mon, 18 Nov 2013 18:28:22 +0000 (18:28 +0000)]
Merge "Address errors and warnings in CodeSniffer in api/"

10 years agoMerge "Update indentation"
jenkins-bot [Mon, 18 Nov 2013 18:24:27 +0000 (18:24 +0000)]
Merge "Update indentation"

10 years agoMerge "Address CodeSniffer comments in ApiBase.php"
jenkins-bot [Mon, 18 Nov 2013 18:22:25 +0000 (18:22 +0000)]
Merge "Address CodeSniffer comments in ApiBase.php"

10 years agoMerge "Allow null to be passed to User::setNewPassword()"
jenkins-bot [Mon, 18 Nov 2013 16:56:17 +0000 (16:56 +0000)]
Merge "Allow null to be passed to User::setNewPassword()"

10 years agoAdded fail-over support to JobQueueAggregatorRedis using "redisServers" option
Aaron Schulz [Sun, 17 Nov 2013 22:04:04 +0000 (14:04 -0800)]
Added fail-over support to JobQueueAggregatorRedis using "redisServers" option

* Also cleaned up various bits of documentation errors and cruft

Change-Id: Icccae5329941e4311fef02b6137a6b90f39f9046

10 years agoMove RecentChangeTest to subdirectory
aude [Mon, 18 Nov 2013 15:45:15 +0000 (16:45 +0100)]
Move RecentChangeTest to subdirectory

matches location of class within includes

Change-Id: I78d3212032ded3deaeef93aaca4d575a35559990

10 years agoAllow null to be passed to User::setNewPassword()
Alexandre Emsenhuber [Mon, 18 Nov 2013 15:04:09 +0000 (16:04 +0100)]
Allow null to be passed to User::setNewPassword()

This allows the temporary password to be cleared. This methods now
behaves the same as User::setInternalPassword() with that value.

Bug: 57075
Change-Id: I2c446864c7eb591dcb64e5971bc9989950715d15

10 years agoMerge "Add show=unpatrolled to the recentchanges API"
jenkins-bot [Mon, 18 Nov 2013 15:01:48 +0000 (15:01 +0000)]
Merge "Add show=unpatrolled to the recentchanges API"

10 years agoMerge "Relicense jquery.placeholder.js to MIT"
jenkins-bot [Mon, 18 Nov 2013 10:30:40 +0000 (10:30 +0000)]
Merge "Relicense jquery.placeholder.js to MIT"

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

Change-Id: I5a74c20de10a3203ff81d453de6c739a8a476081

10 years agoAdd show=unpatrolled to the recentchanges API
Timo Tijhof [Fri, 25 Oct 2013 10:11:08 +0000 (12:11 +0200)]
Add show=unpatrolled to the recentchanges API

Adding it only in the API because SpecialRecentChanges only shows
"Hide patrolled edits" option if rcpatrol is enabled.

show=!patrolled returns results that include changes that can't
be patrolled which technically correct (they aren't correct)
but probably not what you're looking for when looking for
unpatrolled changes.

Change-Id: I356a8625c7126b90aa7e7a23efe3bef7d448b502

10 years agoSet visibility on class properties for *Dependency classes
Siebrand Mazeland [Mon, 18 Nov 2013 04:25:43 +0000 (05:25 +0100)]
Set visibility on class properties for *Dependency classes

Set visibility to private for properties that are not referenced outside
of the class itself, and when the class is not currently being subclassed.

Change-Id: I427c6de5a0a29b43cff755db0eb8a750db620173

10 years agoSet visibility for class properties of DependencyWrapper
Siebrand Mazeland [Mon, 18 Nov 2013 04:14:24 +0000 (05:14 +0100)]
Set visibility for class properties of DependencyWrapper

Set to private. No subclassing and no uses outside of the class in core or
extensions.

Change-Id: If195d02b8ce853242312de7fb4bc7dc1cbe94365

10 years agoDeclare visibility on class properties of LCStore* classes
Siebrand Mazeland [Sun, 17 Nov 2013 22:18:01 +0000 (23:18 +0100)]
Declare visibility on class properties of LCStore* classes

No direct references found in core or extensions outside of the classes
themselves. None of these are subclassed, so set all of them to private.

Change-Id: Id599c0830c1e6d3679c7ae55147f4444f8252987

10 years agoAdd/update/remove incomplete/incorrect documentation
Siebrand Mazeland [Sat, 16 Nov 2013 21:19:42 +0000 (22:19 +0100)]
Add/update/remove incomplete/incorrect documentation

Change-Id: I3c2c7f61d9a579ad794ce7b564ccc8a7cfb9b6fc

10 years agoDeclare visibility on class properties of LocalisationCache
Siebrand Mazeland [Sun, 17 Nov 2013 21:49:03 +0000 (22:49 +0100)]
Declare visibility on class properties of LocalisationCache

Mark all private, except the one that's being used in subclass. Checked
core and extension for direct uses. None found.

Change-Id: If73d65ca094ff56deb19d3b6f3ef99892654726d

10 years agoUpdate docs to reduce inconsistent type compatibility in api/
Siebrand Mazeland [Sat, 16 Nov 2013 21:15:17 +0000 (22:15 +0100)]
Update docs to reduce inconsistent type compatibility in api/

Change-Id: Iaf97aeb514ddb2176491c3820fe891be8e989939

10 years agoMerge "Add ar_id and el_id sequences for PostgreSQL"
jenkins-bot [Sun, 17 Nov 2013 21:36:08 +0000 (21:36 +0000)]
Merge "Add ar_id and el_id sequences for PostgreSQL"

10 years agoRemove underscore from classes LCStore_*
Siebrand Mazeland [Sun, 17 Nov 2013 21:09:31 +0000 (22:09 +0100)]
Remove underscore from classes LCStore_*

iPart of program to remove underscores from class names. Checked core and
600+ extensions for occurrences. All uses are in core, and are updated in
this change.

Change-Id: I432dc249d22053728013ae7d0d56c3c398021c5e

10 years agoDeclare visibility for class properties of LocalisationCacheBulkLoad
Siebrand Mazeland [Sun, 17 Nov 2013 21:03:53 +0000 (22:03 +0100)]
Declare visibility for class properties of LocalisationCacheBulkLoad

Mark all as private. Not referenced elsewhere in core or extensions.

Change-Id: Ibe0e854f39261053e5147138309c3a4b1944e5fe

10 years agoRemove underscore from class LocalisationCache_BulkLoad
Siebrand Mazeland [Sun, 17 Nov 2013 20:59:43 +0000 (21:59 +0100)]
Remove underscore from class LocalisationCache_BulkLoad

Part of program to remove underscores from class names. Checked core and
600+ extensions for occurrences. All uses are in core, and are updated in
this change.

Change-Id: Ib157c3cf209677718ff184552cf872b1d3f4e969

10 years agoBreak long lines in includes/cache/
Siebrand Mazeland [Sun, 17 Nov 2013 20:49:59 +0000 (21:49 +0100)]
Break long lines in includes/cache/

Change-Id: I23a6f46f89b3cdcaf2a3b982dc63e779eed5840d

10 years agoUpdate formatting
Siebrand Mazeland [Sun, 17 Nov 2013 20:36:27 +0000 (21:36 +0100)]
Update formatting

Change-Id: I9aa56cbe0989d6f302ee0f47c4a6154101f73e90

10 years agoUpdate some documentation in CacheTime and ParserCache
Siebrand Mazeland [Sat, 16 Nov 2013 21:11:49 +0000 (22:11 +0100)]
Update some documentation in CacheTime and ParserCache

Change-Id: I31be0d4639f2a7189e15b622b34595564fad2a3d

10 years agoUpdate indentation in ApiUserrights::execute()
Siebrand Mazeland [Sun, 17 Nov 2013 19:25:44 +0000 (20:25 +0100)]
Update indentation in ApiUserrights::execute()

The previous formatting was inconsistent.

Change-Id: I22d7cba00cd39df7069b47f78ca130e3e031ceb4

10 years agoSimplify ApiUserRights::getUrUser()
Siebrand Mazeland [Sun, 17 Nov 2013 19:22:39 +0000 (20:22 +0100)]
Simplify ApiUserRights::getUrUser()

Remove unneeded else and local variable assignment.

Change-Id: I166d811b220e925be11da5c49b6fe55f0d8e71c8

10 years agoUpdate documentation for ApiDelete::deleteFile()
Siebrand Mazeland [Sun, 17 Nov 2013 19:04:13 +0000 (20:04 +0100)]
Update documentation for ApiDelete::deleteFile()

WikiPage was no longer valid given the current type hint. Added
types and documentation where missing.

Change-Id: Ie0a3a8fff3ad496b723958133867df48a695d3b7

10 years agoMerge "Add function to clear mPreparedEdit, to use in cases of mutable content"
jenkins-bot [Sun, 17 Nov 2013 19:38:40 +0000 (19:38 +0000)]
Merge "Add function to clear mPreparedEdit, to use in cases of mutable content"

10 years agoAdd function to clear mPreparedEdit, to use in cases of mutable content
aude [Sun, 17 Nov 2013 09:32:15 +0000 (10:32 +0100)]
Add function to clear mPreparedEdit, to use in cases of mutable content

In Wikibase, EntityContent is mutable and needs to clear
prepared edit before performing a save.

Follow-up to I2c34baa

Change-Id: I770bf2dc960c0a67a9b8315b7cdf24f3b89b6480

10 years agoMerge "Removed excess profile calls"
jenkins-bot [Sun, 17 Nov 2013 19:25:12 +0000 (19:25 +0000)]
Merge "Removed excess profile calls"

10 years agoFix inconsistent line break
Siebrand Mazeland [Sun, 17 Nov 2013 18:33:14 +0000 (19:33 +0100)]
Fix inconsistent line break

Change-Id: I42098f3bdbf470bd9de1d29ad64005dfd6f7e134

10 years agoRemove unused local variables
Siebrand Mazeland [Sat, 16 Nov 2013 21:01:42 +0000 (22:01 +0100)]
Remove unused local variables

Change-Id: I4162d45e68d65347108f94b3d80bc146f3393c1b

10 years agoAddress errors and warnings in CodeSniffer in api/
Siebrand Mazeland [Sat, 16 Nov 2013 19:09:17 +0000 (20:09 +0100)]
Address errors and warnings in CodeSniffer in api/

Change-Id: I06de371393d50eada33154626874b106d814642b

10 years agoUpdate indentation
Siebrand Mazeland [Sat, 16 Nov 2013 21:04:00 +0000 (22:04 +0100)]
Update indentation

Change-Id: Id0ff1d21362aa8984529ecde39304c7aedf589c1

10 years agoAddress CodeSniffer comments in ApiBase.php
Siebrand Mazeland [Sat, 16 Nov 2013 20:58:44 +0000 (21:58 +0100)]
Address CodeSniffer comments in ApiBase.php

Change-Id: Ifd8567dcccf51a16f0dc7459a3bbe9e21e928d91

10 years agoRemoved excess profile calls
Aaron Schulz [Sun, 17 Nov 2013 07:44:41 +0000 (23:44 -0800)]
Removed excess profile calls

Change-Id: Idd57e8d7fff56c62a66c7fcaf4627b9096f0c363

10 years agoChanged use of tag_summary to use change_tag with GROUP_CONCAT()
Aaron Schulz [Fri, 15 Nov 2013 07:23:36 +0000 (23:23 -0800)]
Changed use of tag_summary to use change_tag with GROUP_CONCAT()

* Added buildGroupConcatField() method to the DB classes

bug: 53577
Change-Id: I976f297653880e66af429ba9b622a954fefcc512

10 years agoMerge "Fix incorrect parameter order for dieUsage()"
jenkins-bot [Sat, 16 Nov 2013 22:58:18 +0000 (22:58 +0000)]
Merge "Fix incorrect parameter order for dieUsage()"

10 years agoMerge "Add documentation for DerivativeRequest::__construct"
jenkins-bot [Sat, 16 Nov 2013 22:56:13 +0000 (22:56 +0000)]
Merge "Add documentation for DerivativeRequest::__construct"

10 years agoMerge "Remove useless method overriding"
jenkins-bot [Sat, 16 Nov 2013 22:44:55 +0000 (22:44 +0000)]
Merge "Remove useless method overriding"

10 years agoSet title to Special:Revisiondelete on action=revisiondelete
Alex Monk [Sun, 19 May 2013 16:29:34 +0000 (17:29 +0100)]
Set title to Special:Revisiondelete on action=revisiondelete

Bug: 48616
Change-Id: Idb85c797dbe349e956d21b5cde6a59d89dab4fd2

10 years agoMerge "Call setRelevantTitle during revision delete"
jenkins-bot [Sat, 16 Nov 2013 21:24:25 +0000 (21:24 +0000)]
Merge "Call setRelevantTitle during revision delete"

10 years agoMerge "Show correct link color on cached result of Special:DeadendPages"
Brian Wolff [Sat, 16 Nov 2013 21:12:47 +0000 (21:12 +0000)]
Merge "Show correct link color on cached result of Special:DeadendPages"

10 years agoMerge "ContentHandler: TextContent::diff should compare to given object, not itself"
jenkins-bot [Sat, 16 Nov 2013 21:02:31 +0000 (21:02 +0000)]
Merge "ContentHandler: TextContent::diff should compare to given object, not itself"

10 years agoCall setRelevantTitle during revision delete
Brian Wolff [Sat, 16 Nov 2013 20:51:45 +0000 (16:51 -0400)]
Call setRelevantTitle during revision delete

This will make the header tabs be for the page being deleted,
like it is for Special:MovePage and friends.

Change-Id: I52d848ef0763f6691cec9192794e8e7e9d933ed2

10 years agoContentHandler: TextContent::diff should compare to given object, not itself
Alex Monk [Sat, 16 Nov 2013 18:53:30 +0000 (18:53 +0000)]
ContentHandler: TextContent::diff should compare to given object, not itself

Not sure this is actually used anywhere which might be why this has gone unnoticed.

Also fix the method's docs.

Change-Id: Ifa7a684fe98774cae546b385b09a950cfa7eff32

10 years agoShow correct link color on cached result of Special:DeadendPages
umherirrender [Sat, 16 Nov 2013 20:27:54 +0000 (21:27 +0100)]
Show correct link color on cached result of Special:DeadendPages

Reaching this by doing a LinkBatch and than using
Linker::link instead of Linker::linkKnown.
This adds also the stub color to the link.

Bug: 56912
Change-Id: I516f95302546ccdf8d0fdc7101c2ff72daa5f2fb

10 years agoFix incorrect parameter order for dieUsage()
Siebrand Mazeland [Sat, 16 Nov 2013 20:12:12 +0000 (21:12 +0100)]
Fix incorrect parameter order for dieUsage()

Change-Id: Ib163c40d728bacbd16e7c4beaae0c80e79855686

10 years agoAdd documentation for DerivativeRequest::__construct
Siebrand Mazeland [Sat, 16 Nov 2013 20:02:28 +0000 (21:02 +0100)]
Add documentation for DerivativeRequest::__construct

Change-Id: I20e62d07b6a069b3c2b5b0cb67736ded294bcfb2

10 years agoMerge "Logic optimization for wfExpandUrl()"
jenkins-bot [Sat, 16 Nov 2013 20:03:33 +0000 (20:03 +0000)]
Merge "Logic optimization for wfExpandUrl()"

10 years agoMerge "Remove unused exception in SpecialPage::getTitleFor and add tests"
jenkins-bot [Sat, 16 Nov 2013 19:59:03 +0000 (19:59 +0000)]
Merge "Remove unused exception in SpecialPage::getTitleFor and add tests"

10 years agoLogic optimization for wfExpandUrl()
Yuri Astrakhan [Sat, 16 Nov 2013 19:55:08 +0000 (14:55 -0500)]
Logic optimization for wfExpandUrl()

removed redundant checks of the same variable, making the code
slightly more efficient

Change-Id: Ice4d3c45e80ca1214e2c36444baf0ce87b15a59b

10 years agoRemove unused exception in SpecialPage::getTitleFor and add tests
aude [Sat, 16 Nov 2013 14:24:02 +0000 (15:24 +0100)]
Remove unused exception in SpecialPage::getTitleFor and add tests

The way the existing code was, it seems the exception condition
was never hit, as one could enter a bogus special page title in
SpecialPage::getTitleFor and it returns a Title object anyway.

Some tests are also added for SpecialPage::getTitleFor(),
although more refactoring my be required to truly unit test this,
vs. indirectly testing other stuff via static methods.

Change-Id: I6e427d047a2f8e58677eb65b50866f767078c255

10 years agoRemove useless method overriding
Siebrand Mazeland [Sat, 16 Nov 2013 19:01:55 +0000 (20:01 +0100)]
Remove useless method overriding

Parent is:
public function __construct( $mainModule, $moduleName, $modulePrefix = '' )

Spotted by CodeSniffer

Change-Id: I71fdcc59584562e5287c43be337934a0ad4975b4

10 years agoLinkSearch: use default protocol if unsupported
Elliott Eggleston [Tue, 17 Sep 2013 00:53:22 +0000 (20:53 -0400)]
LinkSearch: use default protocol if unsupported

Default $protocol to http:// if part of link up to
colon or double-slash isn't in $wgUrlProtocols.

Also simplify elseif condition above - $protocol is
always blank there since neither if block above it
is executed.

Bug: 33029
Change-Id: I66d2c592998c750fe3da937b228fe1387fcd344c

10 years agoMerge "Add continue editing link also to js and css pages"
Brian Wolff [Sat, 16 Nov 2013 17:56:27 +0000 (17:56 +0000)]
Merge "Add continue editing link also to js and css pages"

10 years agoMerge "Avoid empty batch in ListredirectsPage::preprocessResults"
Brian Wolff [Sat, 16 Nov 2013 17:25:39 +0000 (17:25 +0000)]
Merge "Avoid empty batch in ListredirectsPage::preprocessResults"