lhc/web/wiklou.git
9 years agoAdd srcset for images in <gallery>
Brian Wolff [Wed, 25 Feb 2015 23:18:16 +0000 (19:18 -0400)]
Add srcset for images in <gallery>

Bug: T64709
Change-Id: I476beb6cf072c5a38570143d1f56baa3f49d23d4

9 years agoDon't alias tt special pages to titles with double underscore
Federico Leva [Wed, 25 Feb 2015 16:24:39 +0000 (17:24 +0100)]
Don't alias tt special pages to titles with double underscore

Such titles are invalid, as far as I can see. I get "no such special
page" at https://tt.wikipedia.org/wiki/Special:Unusedimages etc.

Change-Id: Id9869a9af5c67c18af78a925c8c4fdbaef062d32

9 years agoMerge "Start moving objectcache into libs/"
jenkins-bot [Wed, 25 Feb 2015 16:04:49 +0000 (16:04 +0000)]
Merge "Start moving objectcache into libs/"

9 years agoMerge "Avoid calling rollback() in handleWriteError() if there is no trx"
jenkins-bot [Wed, 25 Feb 2015 09:16:04 +0000 (09:16 +0000)]
Merge "Avoid calling rollback() in handleWriteError() if there is no trx"

9 years agoMerge "Fix parameter order for block logs"
jenkins-bot [Wed, 25 Feb 2015 08:34:27 +0000 (08:34 +0000)]
Merge "Fix parameter order for block logs"

9 years agoStart moving objectcache into libs/
Kunal Mehta [Wed, 25 Feb 2015 08:22:50 +0000 (00:22 -0800)]
Start moving objectcache into libs/

The base BagOStuff class and some of the implementations are
not dependent on MediaWiki and can be in the libs folder.

Change-Id: I299f9abb778abc65a70461a2aff3015c02a1f04d

9 years agoAllow subscribing to module loading exceptions
Gergő Tisza [Wed, 14 Jan 2015 07:09:41 +0000 (07:09 +0000)]
Allow subscribing to module loading exceptions

Provide access via mw.track to module loading errors which are
otherwise swallowed by mw.loader.

Bug: T513
Bug: T85263
Change-Id: Ifc13c207af36dc56be931a3b140063354513a4ec

9 years agomediawiki.sectionAnchor: Indent with tabs
Bartosz Dziewoński [Wed, 25 Feb 2015 00:10:32 +0000 (01:10 +0100)]
mediawiki.sectionAnchor: Indent with tabs

Change-Id: I3105e96c7ef95ddaf457e40c120f489427db7b86

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 24 Feb 2015 20:35:59 +0000 (21:35 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I88964ba360569a63d7d3d0d7e78e70001bad5806

9 years agoAvoid calling rollback() in handleWriteError() if there is no trx
Aaron Schulz [Tue, 24 Feb 2015 19:34:23 +0000 (11:34 -0800)]
Avoid calling rollback() in handleWriteError() if there is no trx

Change-Id: Ic3be89151160ad57acda5d95e3995a77f3835717

9 years agoFix parameter order for block logs
umherirrender [Sun, 22 Feb 2015 20:41:37 +0000 (21:41 +0100)]
Fix parameter order for block logs

The new block log params does not known the message number 4 (which is
index 3), therefore LogFormatter::getMessageParameters adds empty index
to keep the sequence in strong order.
But the loop was starting at index 4, not 3, which skips the needed
empty index 3 for the order.

Due to the missing $4 the legacy log params returning index 3 and 4,
therefore move them one up to match the new numbers.

Also fixed undefined index warnings for api's list=logevents

Follow-Up: Ibc7fcaa5a952ff90d42a6477da4baa429f3de64b
Change-Id: Ie23be129ee2bd1d2bf753c3b5cba293d64b8e0e8

9 years agoRemove getSecondaryDataUpdates and friends from ParserOutput.
daniel [Sun, 15 Feb 2015 19:34:43 +0000 (20:34 +0100)]
Remove getSecondaryDataUpdates and friends from ParserOutput.

This is a hard deprecation, with getSecondaryDataUpdates returning an
empty array and addSecondaryDataUpdate throwing an exception. This seems
prudent since there are no known users of these methods, and they
interfere with the parser cache:

DataUpdates are basically jobs, they need access to services to
function. That makes them inherently non-serializable. This interferes
with the function of the parser cache, which serializes ParserOutput
objects in order to persist them.

This could be solved by splitting DataUpdates into DataUpdateDefinitions
and DataUpdateHandlers, similar to how JobSpecification works with
wgJobClasses. That however seems pointless and overkill, since
ParserOutput already has a mechanism for storing arbitrary data,
including any info needed by an UpdateJob: the setExtensionData method.

After this change, the preferred method to introduce custom data updates
is to store any relevant data using setExtensionData and
implement Content::getSecondaryDataUpdates() if possible. If not,
use the 'SecondaryDataUpdates' hook to construct the necessary update
objects from the info stored using setExtensionData.

Change-Id: I0f6f49e61fa3d8904e55f42c99f342a3dc357495

9 years agoMerge "Require ext-iconv and suggest ext-intl in composer.json"
jenkins-bot [Mon, 23 Feb 2015 22:20:15 +0000 (22:20 +0000)]
Merge "Require ext-iconv and suggest ext-intl in composer.json"

9 years agoMerge "Add i18n for the infamous "Fatal exception of type MWException" errorbox"
jenkins-bot [Mon, 23 Feb 2015 21:40:14 +0000 (21:40 +0000)]
Merge "Add i18n for the infamous "Fatal exception of type MWException" errorbox"

9 years agoMerge "More debug diagnostics for upload by URL"
jenkins-bot [Mon, 23 Feb 2015 21:39:41 +0000 (21:39 +0000)]
Merge "More debug diagnostics for upload by URL"

9 years agoAdd i18n for the infamous "Fatal exception of type MWException" errorbox
Federico Leva [Thu, 12 Feb 2015 23:01:54 +0000 (00:01 +0100)]
Add i18n for the infamous "Fatal exception of type MWException" errorbox

These errors usually need to be reported, so it's better for the user
to understand them as much as possible.

Bug: T40095
Change-Id: Ibd2f984b66acb9150400126f21acf7cc5fc85acd

9 years agoMerge "DatabaseBase constructor cleanups"
jenkins-bot [Mon, 23 Feb 2015 21:18:23 +0000 (21:18 +0000)]
Merge "DatabaseBase constructor cleanups"

9 years agoMore debug diagnostics for upload by URL
saper [Mon, 10 Nov 2014 23:25:54 +0000 (00:25 +0100)]
More debug diagnostics for upload by URL

Increase debug log verbosity to
troubleshoot file upload by URL issues.

Bug: 73200
Change-Id: I530bd38b85911e0c153280b7d9a9da023f799b02

9 years agoDatabaseBase constructor cleanups
Aaron Schulz [Fri, 20 Feb 2015 22:10:26 +0000 (14:10 -0800)]
DatabaseBase constructor cleanups

* The array based format is now required
* Pass any additional parameters through factory() to __construct() even
  if the base clase does not recognize them. This makes DB specific
  options simpler.
* Also added missing bits to Sqlite constructors

Bug: T90288
Change-Id: I29b79a3c1bb2b5e51c1c8f5e04cd08c71e0662a3

9 years agoMove API release notes to correct places
Brad Jorsch [Mon, 23 Feb 2015 20:31:02 +0000 (15:31 -0500)]
Move API release notes to correct places

Change-Id: I301088e4ce4287bd8c9252704ebb190bfcb4aea8

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 23 Feb 2015 20:26:42 +0000 (21:26 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I2d870140da7fd8f4a2c68562ab1d2cb112ce47d4

9 years agoMerge "Warn when user trying to block nonexistent user"
jenkins-bot [Mon, 23 Feb 2015 19:23:40 +0000 (19:23 +0000)]
Merge "Warn when user trying to block nonexistent user"

9 years agoMerge "Removed cas() from ReplicatedBagOStuff as it is unused"
jenkins-bot [Mon, 23 Feb 2015 19:21:39 +0000 (19:21 +0000)]
Merge "Removed cas() from ReplicatedBagOStuff as it is unused"

9 years agoMerge "Remove "transwiki import" jargon term"
jenkins-bot [Mon, 23 Feb 2015 19:18:35 +0000 (19:18 +0000)]
Merge "Remove "transwiki import" jargon term"

9 years agoWarn when user trying to block nonexistent user
JuneHyeon Bae [Fri, 30 May 2014 09:14:54 +0000 (18:14 +0900)]
Warn when user trying to block nonexistent user

Now, Special:Block/Some_User and Special:Block/No_Such_User act the
same. So show warning when user opened 'Special:Block/No_such_user'
page.

Bug: T37687
Change-Id: I60292e1016b64224a6146add58106c9028e7914c

9 years agoMerge "New hooks ApiMain::moduleManager and ApiQuery::moduleManager"
jenkins-bot [Mon, 23 Feb 2015 18:59:59 +0000 (18:59 +0000)]
Merge "New hooks ApiMain::moduleManager and ApiQuery::moduleManager"

9 years agoMerge "Adding sample code to TemplateParser::processTemplate() docs"
jenkins-bot [Mon, 23 Feb 2015 18:56:56 +0000 (18:56 +0000)]
Merge "Adding sample code to TemplateParser::processTemplate() docs"

9 years agoRequire ext-iconv and suggest ext-intl in composer.json
aude [Mon, 23 Feb 2015 15:03:24 +0000 (16:03 +0100)]
Require ext-iconv and suggest ext-intl in composer.json

Since iconv is required, per running install.php, and
intl is recommended.

Bug: T90439
Change-Id: I70f6ce9d8d71f8abd3800bbe00aa0f754ce297a2

9 years agoNew hooks ApiMain::moduleManager and ApiQuery::moduleManager
Max Semenik [Thu, 12 Feb 2015 01:38:18 +0000 (17:38 -0800)]
New hooks ApiMain::moduleManager and ApiQuery::moduleManager

Needed to conditionally register API modules. The previous way, messing with globals
from extension functions, is getting problematic because Config class will make this
impossible.

Change-Id: I86b40aeec555dd6b3cd82cab31d96e85fdf0a665

9 years agoComposerJson: Ignore dependencies that start with "ext-"
Kunal Mehta [Mon, 23 Feb 2015 18:34:53 +0000 (10:34 -0800)]
ComposerJson: Ignore dependencies that start with "ext-"

Any requirements of MediaWiki core to depend upon PHP extensions should
be handled in the installer rather than checkComposerLockUpToDate.php, which
doesn't work anyways since PHP extensions are not included in the lock file.

Change-Id: Ib7af7ccf2f10bc941222d1ce534c7c20690b4c6f

9 years agoMerge "CategoryView modified to use css columns"
jenkins-bot [Mon, 23 Feb 2015 17:17:21 +0000 (17:17 +0000)]
Merge "CategoryView modified to use css columns"

9 years agoCategoryView modified to use css columns
Sumit Asthana [Sun, 1 Feb 2015 08:51:39 +0000 (14:21 +0530)]
CategoryView modified to use css columns

The categories on Category page were listed using table layout. This layout has
been changed to the responsive css column structure, which is 3 column wide
beyond 768px, otherwise shrinks to a single column.

break-inside is used which needs some consideration, see here:
http://css-tricks.com/almanac/properties/b/break-inside/

Bug: T55130
Change-Id: I437e6079b20e110047f93fb5c09aae40189f1ec0

9 years agoSpecial:WantedPages only lists page which having at least one red link pointing to it.
JuneHyeon Bae [Sat, 16 Mar 2013 09:44:52 +0000 (18:44 +0900)]
Special:WantedPages only lists page which having at least one red link pointing to it.

Bug: T19665
Change-Id: If2f0f09ad20ded630ad497a9c84a921c8233cfb1

9 years agoRemove "transwiki import" jargon term
Nemo bis [Sun, 15 Feb 2015 17:07:34 +0000 (18:07 +0100)]
Remove "transwiki import" jargon term

import-logentry-interwiki will be dealt with in a followup patch,
to avoid breaking changes before the new logging system is adopted.

https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Import-logentry-interwiki/pt

Change-Id: I3ca8b21bce49b41cac7109efb8056ca4469b88d7

9 years agoMerge "Make HashBagOStuff::lock() compatible with BagOStuff::lock"
jenkins-bot [Mon, 23 Feb 2015 15:01:52 +0000 (15:01 +0000)]
Merge "Make HashBagOStuff::lock() compatible with BagOStuff::lock"

9 years agoMerge "Add default type param for recentchanges and watchlist query api modules"
jenkins-bot [Mon, 23 Feb 2015 13:32:12 +0000 (13:32 +0000)]
Merge "Add default type param for recentchanges and watchlist query api modules"

9 years agoMerge "Add hook for custom difference engine (WikEdDiff)"
jenkins-bot [Mon, 23 Feb 2015 12:32:10 +0000 (12:32 +0000)]
Merge "Add hook for custom difference engine (WikEdDiff)"

9 years agoMake HashBagOStuff::lock() compatible with BagOStuff::lock
aude [Mon, 23 Feb 2015 11:35:55 +0000 (12:35 +0100)]
Make HashBagOStuff::lock() compatible with BagOStuff::lock

Fixes php strict standard error.

Bug: T90427
Change-Id: Ica2bddead9b5ad367510e898eeea1257a53b5b19

9 years agoMerge "Small optimization to ResourceLoader's canExpandStylesheetWith()"
jenkins-bot [Mon, 23 Feb 2015 09:07:29 +0000 (09:07 +0000)]
Merge "Small optimization to ResourceLoader's canExpandStylesheetWith()"

9 years agoRemoved cas() from ReplicatedBagOStuff as it is unused
Aaron Schulz [Mon, 23 Feb 2015 05:38:30 +0000 (21:38 -0800)]
Removed cas() from ReplicatedBagOStuff as it is unused

Change-Id: I2ff33ba806856ec4cc140a52590a922e13191bf2

9 years agoMerge "Made BagOStuff::cas properly optional"
jenkins-bot [Mon, 23 Feb 2015 05:32:38 +0000 (05:32 +0000)]
Merge "Made BagOStuff::cas properly optional"

9 years agoMerge "Removed FORCE INDEX from API category queries"
jenkins-bot [Mon, 23 Feb 2015 05:32:35 +0000 (05:32 +0000)]
Merge "Removed FORCE INDEX from API category queries"

9 years agoMade BagOStuff::cas properly optional
Aaron Schulz [Wed, 18 Feb 2015 23:47:06 +0000 (15:47 -0800)]
Made BagOStuff::cas properly optional

* merge() using the locking version by default. The callers that implement cas()
  override merge() to use the cas-based version. Those that do not no longer
  need to define the unused dummy method.
* Removed some redundant doc blocks.

Change-Id: I49f7dd5432efa8d76f4758c273f0859376ddafb7

9 years agoRemoved FORCE INDEX from API category queries
Aaron Schulz [Sun, 22 Feb 2015 20:49:37 +0000 (12:49 -0800)]
Removed FORCE INDEX from API category queries

Change-Id: I7333256b90e18b9ccb6cc0852d021a5fad2c7b45

9 years agoAdd a ReplicatedBagOStuff class
Aaron Schulz [Thu, 5 Feb 2015 02:22:08 +0000 (18:22 -0800)]
Add a ReplicatedBagOStuff class

Bug: T88634
Change-Id: I1f7cccd6ac376055ff2b84641ff38a85571c65b0

9 years agoMerge "Removed doCascadeProtectionUpdates method to avoid DB writes on page views"
jenkins-bot [Mon, 23 Feb 2015 01:18:05 +0000 (01:18 +0000)]
Merge "Removed doCascadeProtectionUpdates method to avoid DB writes on page views"

9 years agoSmall optimization to ResourceLoader's canExpandStylesheetWith()
Ori Livneh [Mon, 23 Feb 2015 01:07:36 +0000 (17:07 -0800)]
Small optimization to ResourceLoader's canExpandStylesheetWith()

The import CSS at-rule can only go in the very top of a style sheet.
(Technically, the charset at-rule may precede it, but that rule is not valid
for style sheets that are embedded in <style> tags.) So we don't need to scan
the entire CSS text for '@import' -- we just have to make sure that the CSS
text doesn't start with it.

Change-Id: I56c2ebd55d4a7e90dde8e89e76b6d1b52ed004f8

9 years agoRevert "Make eval.php try to handle newlines in code"
MaxSem [Wed, 18 Feb 2015 22:21:56 +0000 (22:21 +0000)]
Revert "Make eval.php try to handle newlines in code"

Completely broke the script for me.

<TimStarling> MaxSem: that was a pretty crazy change
<TimStarling> fancy trying to detect the end of a statement by shelling out to detect parse errors
<TimStarling> maybe just revert that?
<TimStarling> we can probably do a better job with a few regexes
<TimStarling> I wonder how php -a does it

This reverts commit f0ae292da7ef0673b30c68b4a6f3789b2eea8464.

Change-Id: I16c9c200dc3f4db55cecc23aaa0d9ff55504c19d

9 years agoRemoved doCascadeProtectionUpdates method to avoid DB writes on page views
Aaron Schulz [Thu, 12 Feb 2015 23:03:24 +0000 (15:03 -0800)]
Removed doCascadeProtectionUpdates method to avoid DB writes on page views

* Use special prioritized refreshLinksJobs instead, which triggers when
  transcluded pages are changed
* Also added a triggerOpportunisticLinksUpdate() method to handle
  dynamic transcludes

bug: T89389
Change-Id: Iea952d4d2e660b7957eafb5f73fc87fab347dbe7

9 years agoMerge "Wait for slaves in RecentChangesUpdateJob"
Aaron Schulz [Sun, 22 Feb 2015 21:32:39 +0000 (21:32 +0000)]
Merge "Wait for slaves in RecentChangesUpdateJob"

9 years agoMerge "Avoid @backupGlobals in ExtensionRegistryTest"
jenkins-bot [Sun, 22 Feb 2015 21:29:00 +0000 (21:29 +0000)]
Merge "Avoid @backupGlobals in ExtensionRegistryTest"

9 years agoWait for slaves in RecentChangesUpdateJob
Marius Hoch [Sun, 22 Feb 2015 21:08:48 +0000 (22:08 +0100)]
Wait for slaves in RecentChangesUpdateJob

Change-Id: Iba8dca2f92d1c9ba2e5ab064aae828e4d88779bb

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 22 Feb 2015 20:08:31 +0000 (21:08 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I9ae7340714bcaf5d5c8d95c9325b011a1988a9ce

9 years agoMerge "Give objects to DatabaseLogEntry::newFromRow"
jenkins-bot [Sun, 22 Feb 2015 14:55:35 +0000 (14:55 +0000)]
Merge "Give objects to DatabaseLogEntry::newFromRow"

9 years agoExport: Preloading the category name through a URL parameter
ayush_garg [Wed, 11 Feb 2015 11:13:26 +0000 (16:43 +0530)]
Export: Preloading the category name through a URL parameter

Bug: T88683
Change-Id: Iff7d4c1e7138c5160dbaa7b2455695837026d6c1

9 years agoGive objects to DatabaseLogEntry::newFromRow
umherirrender [Sun, 22 Feb 2015 10:36:00 +0000 (11:36 +0100)]
Give objects to DatabaseLogEntry::newFromRow

No need to cast to array, because the called function will recast to
object.

Change-Id: I0eaa62450a0ebcc9ab8458b225dfadb71197a2ad

9 years agoMerge "DatabaseBase: Document behavior of nulls in array conditions"
jenkins-bot [Sun, 22 Feb 2015 10:32:15 +0000 (10:32 +0000)]
Merge "DatabaseBase: Document behavior of nulls in array conditions"

9 years agoAvoid @backupGlobals in ExtensionRegistryTest
umherirrender [Sun, 22 Feb 2015 10:02:15 +0000 (11:02 +0100)]
Avoid @backupGlobals in ExtensionRegistryTest

Change-Id: Ia2c764b1c1ee8cff64e1ccdb863e5ef7534a286a

9 years agoDatabaseBase: Document behavior of nulls in array conditions
Kevin Israel [Sun, 22 Feb 2015 02:08:24 +0000 (21:08 -0500)]
DatabaseBase: Document behavior of nulls in array conditions

Follows-up 26235c73376b.

Change-Id: Id008557e53a8c27f49e87cb2120298ce6478b6df

9 years agoMerge "Migrate block log to new log system"
jenkins-bot [Sun, 22 Feb 2015 00:46:35 +0000 (00:46 +0000)]
Merge "Migrate block log to new log system"

9 years agoMerge "Use new log system when create log entry for revision delete"
jenkins-bot [Sun, 22 Feb 2015 00:45:07 +0000 (00:45 +0000)]
Merge "Use new log system when create log entry for revision delete"

9 years agoMerge "Call LogFormatter::getPreloadTitles on ChangesListSpecialPage"
jenkins-bot [Sun, 22 Feb 2015 00:25:21 +0000 (00:25 +0000)]
Merge "Call LogFormatter::getPreloadTitles on ChangesListSpecialPage"

9 years agoMerge "DatabaseInstaller::getGlobalDefaults: Return all needed globals"
jenkins-bot [Sun, 22 Feb 2015 00:24:19 +0000 (00:24 +0000)]
Merge "DatabaseInstaller::getGlobalDefaults: Return all needed globals"

9 years agoMerge "Use context when parsing message 'redirectedfrom'"
jenkins-bot [Sun, 22 Feb 2015 00:21:44 +0000 (00:21 +0000)]
Merge "Use context when parsing message 'redirectedfrom'"

9 years agoMerge "Escape message 'redirectto' in Article"
jenkins-bot [Sun, 22 Feb 2015 00:21:40 +0000 (00:21 +0000)]
Merge "Escape message 'redirectto' in Article"

9 years agoDatabaseInstaller::getGlobalDefaults: Return all needed globals
umherirrender [Sun, 11 Jan 2015 18:30:43 +0000 (19:30 +0100)]
DatabaseInstaller::getGlobalDefaults: Return all needed globals

Since Id364306d883e0d494b948854e05f3f79ba7dd6d2 the text boxes on the
gui installer were not preloaded with the default values from
DefaultSettings.php.

Changed this by return all needed globals (defined by getGlobalNames)
from DatabaseInstaller::getGlobalDefaults(). This injects the as default
value in function getVar and than gets used, when no value is set.

Bug: T71281
Change-Id: I8217b25e903e40ec82be3d700381ff7aea3b481f

9 years agoPass user to File::delete from Special:MovePage
umherirrender [Mon, 16 Feb 2015 19:19:37 +0000 (20:19 +0100)]
Pass user to File::delete from Special:MovePage

When doing a deleteAndMove in the file namespace the user was not
provided to the delete function which result in use of global $wgUser

Change-Id: I6953b83108d9f53b81534a8a12f86050f7e33bac

9 years agoSkip missed dependencies in ResourcesTest::testUnsatisfiableDependencies
umherirrender [Sat, 14 Feb 2015 12:47:23 +0000 (13:47 +0100)]
Skip missed dependencies in ResourcesTest::testUnsatisfiableDependencies

When a dependency is missing the test
ResourcesTest::testUnsatisfiableDependencies gives a error because of
Undefined index and stops further checks. Skip this situation because
the existing test ResourcesTest::testMissingDependencies already gives a
failure with a better explanation in this situation.

Change-Id: I71a88551df67d52ea96bf7283b5de892692f9336

9 years agoMerge "Fix @backupGlobals annotation in ExtensionRegistryTest"
jenkins-bot [Sat, 21 Feb 2015 22:15:03 +0000 (22:15 +0000)]
Merge "Fix @backupGlobals annotation in ExtensionRegistryTest"

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 21 Feb 2015 22:08:56 +0000 (23:08 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I81e65e9ea6d9574a81dbe3bb764a76f4441247e8

9 years agoFix @backupGlobals annotation in ExtensionRegistryTest
Kunal Mehta [Sat, 21 Feb 2015 20:20:26 +0000 (12:20 -0800)]
Fix @backupGlobals annotation in ExtensionRegistryTest

Change-Id: I9a38354030eb2638d7988c0f903fb2181ec17cc6

9 years agoMerge "Escape message editsection on action=view"
jenkins-bot [Sat, 21 Feb 2015 20:26:18 +0000 (20:26 +0000)]
Merge "Escape message editsection on action=view"

9 years agoUpgrade composer-merge-plugin to 1.0.0
Kunal Mehta [Sat, 21 Feb 2015 01:27:20 +0000 (17:27 -0800)]
Upgrade composer-merge-plugin to 1.0.0

* Smaller install size
* Included files are processed recursively, with an option to disable

Change-Id: I65bf1e0d0e972846ed9e30761738aaf3a2127c2f

9 years agoAdding sample code to TemplateParser::processTemplate() docs
kaldari [Fri, 20 Feb 2015 19:09:43 +0000 (11:09 -0800)]
Adding sample code to TemplateParser::processTemplate() docs

Also reverting punctuation that was accidently changed in
change I28cd13d4d.

Change-Id: I1283fbfbaf8cefbbc951599ee286d923b9dedf65

9 years agoFixing links on NoLocalSettings page
kaldari [Fri, 20 Feb 2015 23:44:03 +0000 (15:44 -0800)]
Fixing links on NoLocalSettings page

This fixes a regression caused by change I28cd13d4d.

Change-Id: Iff30f08688d17da2d690c5e798c43489b1cafc7e

9 years agoMerge "Use the request object provided in User::setCookies"
jenkins-bot [Fri, 20 Feb 2015 22:19:10 +0000 (22:19 +0000)]
Merge "Use the request object provided in User::setCookies"

9 years agoMore descriptive message for autoloader failures
Max Semenik [Fri, 13 Feb 2015 19:31:24 +0000 (11:31 -0800)]
More descriptive message for autoloader failures

Previously, it just failed with "No such file or directory" without explaining
what's wrong where why.

Change-Id: I776e8fe61f74fd21295da48a45c86ffed9489e23

9 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 20 Feb 2015 20:57:39 +0000 (21:57 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I2212217c92f8b76aa6682d082508d7d822e92a63

9 years agoCorrect misleading documentation
Erik Bernhardson [Fri, 20 Feb 2015 19:27:22 +0000 (11:27 -0800)]
Correct misleading documentation

Change-Id: Ib020467488616eeaa9b53672e5cc45c72f240a54

9 years agoMerge "Some clean-up of TemplateParser"
jenkins-bot [Fri, 20 Feb 2015 19:10:20 +0000 (19:10 +0000)]
Merge "Some clean-up of TemplateParser"

9 years agoMerge "Convert UtfNormalTest into a PHPUnit test"
jenkins-bot [Fri, 20 Feb 2015 18:50:45 +0000 (18:50 +0000)]
Merge "Convert UtfNormalTest into a PHPUnit test"

9 years agoSome clean-up of TemplateParser
kaldari [Fri, 20 Feb 2015 18:50:17 +0000 (10:50 -0800)]
Some clean-up of TemplateParser

* Replacing global var with Config
* Fixing spacing
* Adding @since tag

Change-Id: I8b0a35116eef6ecead16e03a3c408081ee500aa6

9 years agoMerge "Remove maintenance script dumpSisterSites.php"
jenkins-bot [Fri, 20 Feb 2015 17:52:57 +0000 (17:52 +0000)]
Merge "Remove maintenance script dumpSisterSites.php"

9 years agoAPI: Don't allow '#' in title-parts
Brad Jorsch [Fri, 20 Feb 2015 15:18:00 +0000 (10:18 -0500)]
API: Don't allow '#' in title-parts

As-is, this causes loss of a character from the passed-in title leading
to wrong output. But there should never be a '#' in a title-part anyway,
the best thing is to just disallow it completely.

Bug: T38358
Change-Id: Id90bfb9c63a5960e7d2d49350d3e0da0327d0e24

9 years agoRemove maintenance script dumpSisterSites.php
Kevin Israel [Fri, 20 Feb 2015 02:41:44 +0000 (21:41 -0500)]
Remove maintenance script dumpSisterSites.php

This script would perhaps better belong in the SisterSites extension, as noted
on the extension's MW.org description page. However, that extension was never
actually developed to a usable state (first commit was r16390, no substantial
changes since) or imported into Git, so apparently the feature (or at least
its implementation) is of only limited, possibly historical interest.

Change-Id: Ia4c3b0316815f06b7e82f013edfd1798ed07d9a3

9 years agoEscape message editsection on action=view
umherirrender [Sat, 7 Feb 2015 14:03:09 +0000 (15:03 +0100)]
Escape message editsection on action=view

Bug: T85864
Change-Id: Id55295a0406659242bbc12a59af7e23fb742237c

9 years agoMerge "mediawiki.special.preferences.js: Simplify modulo"
jenkins-bot [Fri, 20 Feb 2015 13:41:47 +0000 (13:41 +0000)]
Merge "mediawiki.special.preferences.js: Simplify modulo"

9 years agoMerge "mediawiki.special.preferences.js: Simplify creating elements"
jenkins-bot [Fri, 20 Feb 2015 13:40:33 +0000 (13:40 +0000)]
Merge "mediawiki.special.preferences.js: Simplify creating elements"

9 years agoRevert "Removed doCascadeProtectionUpdates method to avoid DB writes on page views"
Aude [Fri, 20 Feb 2015 12:11:44 +0000 (12:11 +0000)]
Revert "Removed doCascadeProtectionUpdates method to avoid DB writes on page views"

due to breakage at least in phpunit tests for mysql:

https://travis-ci.org/wikimedia/mediawiki-extensions-Wikibase/jobs/51490784

This reverts commit 132f7bb89f38780f1433caff8ec643e91a850a8a.

Change-Id: I85d19ab5ad30e8d13a956d7b7467a94c9e73219d

9 years agoAllow override of page disply within CategoryViewer
Erik Bernhardson [Tue, 3 Feb 2015 06:08:12 +0000 (22:08 -0800)]
Allow override of page disply within CategoryViewer

Patch adds two hook which are described in hooks.txt.  This
is being used to allow Flow to offer two links instead of just
one that are relevant to the page that was categorized.

The default output without these hooks is:

   <a href="...">Topic:Soiasdf90f09</a>

This patch allows flow to provide context as to where this topic came
from, by replacing that with:

   <a href="...">Topic:Soiasdf90f09</a> on <a href="...">Talk:Help</a>

(Note that the names of pages within the Topic namespace will also
become more friendly soonish, but outside the scope of this patch).

Bug: T87793
Related-Flow-Change: Ia4f2953bcd807ba3990e762a2efcaab428c40147
Change-Id: I182e6e35fcc3a2a298e928e088579bdb22e145ff

9 years agomediawiki.special.preferences.js: Simplify creating elements
Fomafix [Fri, 20 Feb 2015 12:19:16 +0000 (12:19 +0000)]
mediawiki.special.preferences.js: Simplify creating elements

See:
https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript#Creating_elements

Change-Id: Ied43829eb19a4270030af4d3f41882f6c0df7935

9 years agoMerge "Explicitly allow lines up to 100 chars in Rubocop"
jenkins-bot [Fri, 20 Feb 2015 12:06:29 +0000 (12:06 +0000)]
Merge "Explicitly allow lines up to 100 chars in Rubocop"

9 years agoMerge "Fix the Rubocop offense TrailingBlankLines"
jenkins-bot [Fri, 20 Feb 2015 12:06:23 +0000 (12:06 +0000)]
Merge "Fix the Rubocop offense TrailingBlankLines"

9 years agoMerge "Fix the Rubocop offense SpaceInsideHashLiteralBraces"
jenkins-bot [Fri, 20 Feb 2015 12:05:45 +0000 (12:05 +0000)]
Merge "Fix the Rubocop offense SpaceInsideHashLiteralBraces"

9 years agoMerge "Remove outdated Rubocop offenses from .rubocop_todo.yml"
jenkins-bot [Fri, 20 Feb 2015 12:05:21 +0000 (12:05 +0000)]
Merge "Remove outdated Rubocop offenses from .rubocop_todo.yml"

9 years agoMerge "Fix the Rubocop offense SpaceAroundOperators"
jenkins-bot [Fri, 20 Feb 2015 12:05:09 +0000 (12:05 +0000)]
Merge "Fix the Rubocop offense SpaceAroundOperators"

9 years agoMerge "Fix the Rubocop offense LeadingCommentSpace"
jenkins-bot [Fri, 20 Feb 2015 12:04:57 +0000 (12:04 +0000)]
Merge "Fix the Rubocop offense LeadingCommentSpace"

9 years agoMerge "Fix the Rubocop offense EmptyLinesAroundBody"
jenkins-bot [Fri, 20 Feb 2015 12:04:43 +0000 (12:04 +0000)]
Merge "Fix the Rubocop offense EmptyLinesAroundBody"

9 years agoMerge "Fix the Rubocop offense EmptyLines"
jenkins-bot [Fri, 20 Feb 2015 12:04:39 +0000 (12:04 +0000)]
Merge "Fix the Rubocop offense EmptyLines"

9 years agoMerge "Fix the Rubocop offense AmbiguousRegexpLiteral"
jenkins-bot [Fri, 20 Feb 2015 12:04:34 +0000 (12:04 +0000)]
Merge "Fix the Rubocop offense AmbiguousRegexpLiteral"