diff options
author | daniel <dkinzler@wikimedia.org> | 2019-08-21 17:51:10 +0200 |
---|---|---|
committer | Mobrovac <mobrovac@wikimedia.org> | 2019-08-29 10:43:11 +0000 |
commit | 6906a7728cf5447d30da6c7a51add936f469978a (patch) | |
tree | f931a62b04d7ca8bd61f410ff863414a24ec7442 /includes/diff/SlotDiffRenderer.php | |
parent | eb4ac89d6690ed4504206de5678a9a50e5edaadf (diff) | |
download | mediawikicore-6906a7728cf5447d30da6c7a51add936f469978a.tar.gz mediawikicore-6906a7728cf5447d30da6c7a51add936f469978a.zip |
Add UnknownContentHandler.
UnknownContentHandler can be configued to handle models that
belong to extensions that have been undeployed:
$wgContentHandlers['xyzzy'] = 'UnknownContentHandler';
This way, no errors will be thrown when trying to access
pages with the unsupported model. Instead, an error message is
shown, and editing is prevented.
This patch also improves handling of non-editable content in
EditPage and in DifferenceEngine.
Bug: T220608
Change-Id: Ia94521b786c0a5225a674e4dc3cb6761a723d75b
Diffstat (limited to 'includes/diff/SlotDiffRenderer.php')
-rw-r--r-- | includes/diff/SlotDiffRenderer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/diff/SlotDiffRenderer.php b/includes/diff/SlotDiffRenderer.php index 969e0ba7a38c..c58502b2b749 100644 --- a/includes/diff/SlotDiffRenderer.php +++ b/includes/diff/SlotDiffRenderer.php @@ -44,7 +44,7 @@ abstract class SlotDiffRenderer { * must have the same content model that was used to obtain this diff renderer. * @param Content|null $oldContent * @param Content|null $newContent - * @return string + * @return string HTML, one or more <tr> tags. */ abstract public function getDiff( Content $oldContent = null, Content $newContent = null ); |