lhc/web/wiklou.git
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 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 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 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"

10 years agoAvoid empty batch in ListredirectsPage::preprocessResults
umherirrender [Sat, 16 Nov 2013 17:17:36 +0000 (18:17 +0100)]
Avoid empty batch in ListredirectsPage::preprocessResults

Change-Id: Iaf371cdb1c0628a42996537d966165a0d7f92ad7

10 years agoMerge "SkinTemplate: Add $this as a parameter to PersonalUrls hook"
jenkins-bot [Sat, 16 Nov 2013 17:15:40 +0000 (17:15 +0000)]
Merge "SkinTemplate: Add $this as a parameter to PersonalUrls hook"

10 years agoMerge "Use the native set_charset() method if available instead of SET NAMES"
jenkins-bot [Sat, 16 Nov 2013 17:14:08 +0000 (17:14 +0000)]
Merge "Use the native set_charset() method if available instead of SET NAMES"

10 years agoMerge "Fix covers tag in GlobalTest"
jenkins-bot [Sat, 16 Nov 2013 15:08:11 +0000 (15:08 +0000)]
Merge "Fix covers tag in GlobalTest"

10 years agoFix covers tag in GlobalTest
aude [Sat, 16 Nov 2013 15:01:24 +0000 (16:01 +0100)]
Fix covers tag in GlobalTest

Change-Id: Ia9e6f539e9b70e82c3fc0b352585650aa3ec5d7a

10 years agoAdd continue editing link also to js and css pages
umherirrender [Fri, 20 Sep 2013 17:16:52 +0000 (19:16 +0200)]
Add continue editing link also to js and css pages

Wrap link in a span with class

Change-Id: I3cbbf9c2ae23672c0939261f2675273f5923e5f9

10 years agoSkinTemplate: Add $this as a parameter to PersonalUrls hook
Bartosz Dziewoński [Sat, 16 Nov 2013 12:36:24 +0000 (13:36 +0100)]
SkinTemplate: Add $this as a parameter to PersonalUrls hook

Change-Id: I1116fd64ea0beac148ee75ea4ec050741fc2c3b7

10 years agoMerge "Links to mediawiki.org in messages should use HTTPS"
jenkins-bot [Sat, 16 Nov 2013 12:28:02 +0000 (12:28 +0000)]
Merge "Links to mediawiki.org in messages should use HTTPS"

10 years agoFix function doc of ContentHandler::getLocalizedName
umherirrender [Sat, 16 Nov 2013 11:28:48 +0000 (12:28 +0100)]
Fix function doc of ContentHandler::getLocalizedName

The funcion is about model, so the return value is also about model.

Change-Id: I18325eb33525a334a2a6db15f4381c627845c711

10 years agoMerge "Split mocks/media/MockBitmaphandler file"
jenkins-bot [Sat, 16 Nov 2013 12:13:36 +0000 (12:13 +0000)]
Merge "Split mocks/media/MockBitmaphandler file"

10 years agoMerge "Prevent space before ellipsis when truncating"
jenkins-bot [Sat, 16 Nov 2013 12:10:27 +0000 (12:10 +0000)]
Merge "Prevent space before ellipsis when truncating"

10 years agoSplit mocks/media/MockBitmaphandler file
addshore [Fri, 15 Nov 2013 22:48:36 +0000 (23:48 +0100)]
Split mocks/media/MockBitmaphandler file

Change-Id: Idc231e8fd1f1ad1e4173e7c0bddfbec4efaad96b

10 years agoMerge "Add used message keys to ContentHandler::getLocalizedName"
jenkins-bot [Sat, 16 Nov 2013 12:01:41 +0000 (12:01 +0000)]
Merge "Add used message keys to ContentHandler::getLocalizedName"

10 years agoMerge "Deprecate addButton and insertTags in mediawiki.action.edit"
jenkins-bot [Sat, 16 Nov 2013 11:56:58 +0000 (11:56 +0000)]
Merge "Deprecate addButton and insertTags in mediawiki.action.edit"

10 years agoAdd used message keys to ContentHandler::getLocalizedName
umherirrender [Sat, 16 Nov 2013 11:37:25 +0000 (12:37 +0100)]
Add used message keys to ContentHandler::getLocalizedName

Change-Id: Ide072627e87c94da5a180d8d00aa38683af44f4e

10 years agoRemove SQL patches for old table 'validate'
umherirrender [Fri, 8 Nov 2013 17:08:05 +0000 (18:08 +0100)]
Remove SQL patches for old table 'validate'

The table has been unused and dropped since 1.8,
so there is no need to keep the patches for the updater.

See https://www.mediawiki.org/wiki/Manual:Validate_table

Change-Id: Iaadf1115ff6e6cba986c5402320da78ba3c2a8f4

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 agoDeprecate addButton and insertTags in mediawiki.action.edit
umherirrender [Sat, 16 Nov 2013 09:45:46 +0000 (10:45 +0100)]
Deprecate addButton and insertTags in mediawiki.action.edit

In wikibits many global functions marked as deprecated,
does this also in mediawiki.action.edit.

Change-Id: I64fcb41bc7812ac1aebc75f4f866b4b07fb7dc8e

10 years agoUse the native set_charset() method if available instead of SET NAMES
Alexandre Emsenhuber [Fri, 15 Nov 2013 22:21:40 +0000 (23:21 +0100)]
Use the native set_charset() method if available instead of SET NAMES

According to the PHP manual, it is the recommended way to set the charset.

- mysql extension has it for MySQL >= 5.0.7
- mysqli extension has it for MySQL >= 5.0.6
or if using mysqlnd.

Change-Id: I8cd2f97fcad4b045c6f99ff894254847b13c6878

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 agoLinks to mediawiki.org in messages should use HTTPS
Bartosz Dziewoński [Fri, 15 Nov 2013 21:01:23 +0000 (22:01 +0100)]
Links to mediawiki.org in messages should use HTTPS

Find: (https?:)?//(www\.)?mediawiki.org
Replace with: https://www.mediawiki.org

Bug: 54835
Change-Id: Ic107486d46c87a11281f09f016a675ea9e11bbb1

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 agoPrevent space before ellipsis when truncating
UltrasonicNXT [Sun, 10 Nov 2013 08:55:10 +0000 (08:55 +0000)]
Prevent space before ellipsis when truncating

When truncating a string at a point where it contains a space (ie "hello
world" to 9 chars), the resultant string will have a space before the
ellipsis ("hello ..."). This is both gramatically incorrect and just looks
wrong, and is fixed by trimming the string before appending the ellipsis.

Change-Id: Iec86b17bfc8c50e4c1a96fd373861841fc57848d

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: "? :" -> "?:""