Go to file
Kunal Mehta 48748a6046 Improve validation of ScribuntoContent
Implement Content::prepareSave() to ensure that any content
directly passed to WikiPage::doEditContent() that doesn't run edit
filters will still be validated. We have to use prepareSave() instead of
Content::isValid() because validation depends upon the current Title.

Create a ScribuntoContent::validate() convenience function to hold the
logic for that and add a todo to use it in the EditFilterMerged hook.

Also, remove a parser test that depended upon being able to save invalid
modules directly, as what it is testing is no longer possible (unless it
pre-dates making valid syntax a requirement).

Bug: T145548
Change-Id: Ie57eff36100963f02899d669df7375577f7375e1
2016-09-14 11:50:07 -07:00
common Improve validation of ScribuntoContent 2016-09-14 11:50:07 -07:00
engines Add mw.hash to Scribunto 2016-08-18 04:39:04 +02:00
i18n Localisation updates from https://translatewiki.net. 2016-09-13 22:55:55 +02:00
modules Update jscs configuration 2016-02-13 16:18:05 +01:00
tests/engines Improve validation of ScribuntoContent 2016-09-14 11:50:07 -07:00
.gitignore build: Updating mediawiki/mediawiki-codesniffer to 0.7.2 2016-05-27 18:24:16 -07:00
.gitreview Adding .gitreview 2012-04-06 13:46:17 -04:00
.jscsrc Update jscs configuration 2016-02-13 16:18:05 +01:00
.jshintignore Add jshint to npm 2016-02-19 15:33:18 +00:00
.jshintrc Add jshint to npm 2016-02-19 15:33:18 +00:00
composer.json build: Updating mediawiki/mediawiki-codesniffer to 0.7.2 2016-05-27 18:24:16 -07:00
Gruntfile.js Add jshint to npm 2016-02-19 15:33:18 +00:00
package.json Add jshint to npm 2016-02-19 15:33:18 +00:00
phpcs.xml Fix uncontroversial phpcs errors 2016-05-18 16:31:28 -04:00
Scribunto.i18n.php Fix uncontroversial phpcs errors 2016-05-18 16:31:28 -04:00
Scribunto.magic.php Localisation in Breton language 2016-05-09 09:25:35 +00:00
Scribunto.namespaces.php Localisation in Tajik language 2016-08-23 13:34:12 +00:00
Scribunto.php Add mw.hash to Scribunto 2016-08-18 04:39:04 +02:00