mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 00:00:49 +00:00
c9a3bf9fa5
Using DerivativeContext also makes the code easier to read. getContext() returns an IContextSource, in this interface has no setRequest() method and this can fail for some kinds of IContextSource. $view is a ContextSource, which implements setContext(). This also allows us pass in a new context with the right request object, and also to set the title so we don't have different titles on $view and the main context. Change-Id: Ia575cd6163defeb423a542e342034cac5eb6108c |
||
---|---|---|
.. | ||
ApiVisualEditor.php | ||
ApiVisualEditorEdit.php | ||
SpecialCollabPad.php | ||
VisualEditorDataModule.php | ||
VisualEditorDesktopArticleTargetInitModule.php | ||
VisualEditorHooks.php |