diff options
author | mainframe98 <k.s.werf@hotmail.com> | 2020-06-08 09:33:11 +0200 |
---|---|---|
committer | Jdlrobson <jrobson@wikimedia.org> | 2020-06-09 21:51:58 +0000 |
commit | 4e2897575ad6c57b26b8d4615999c7b1ebabec38 (patch) | |
tree | 0b411e6c9e5ef1d3a4e262b4a5a2e358bb0f8628 /autoload.php | |
parent | 2c910958dc8ddeec5cd951c925b4506a1fc5920a (diff) | |
download | mediawikicore-4e2897575ad6c57b26b8d4615999c7b1ebabec38.tar.gz mediawikicore-4e2897575ad6c57b26b8d4615999c7b1ebabec38.zip |
Replace BaseTemplateAfterPortlet with SkinAfterPortlet
BaseTemplate should not handle anything but rendering.
In order to allow replacing it with another renderer,
such as Mustache or Vue, its hooks should be moved to
the Skin class instead.
BaseTemplateAfterPortlet is soft deprecated to allow
filtering, preventing the hook from running twice.
Both BaseTemplate::getAfterPortlet and ::renderAfterPortlet
have been deprecated as well, with both now calling
Skin::getAfterPortlet after running the
BaseTemplateAfterPortlet hook.
Bug: T253797
Change-Id: I438daa79d3d97e2518e6258c3213a805bd1f30e8
Diffstat (limited to 'autoload.php')
-rw-r--r-- | autoload.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/autoload.php b/autoload.php index bfaf6ac0e079..b353e418226a 100644 --- a/autoload.php +++ b/autoload.php @@ -1104,6 +1104,7 @@ $wgAutoloadLocalClasses = [ 'MediaWiki\\Mail\\IEmailer' => __DIR__ . '/includes/mail/IEmailer.php', 'MediaWiki\\ProcOpenError' => __DIR__ . '/includes/exception/ProcOpenError.php', 'MediaWiki\\ShellDisabledError' => __DIR__ . '/includes/exception/ShellDisabledError.php', + 'MediaWiki\\Skins\\Hook\\SkinAfterPortletHook' => __DIR__ . '/includes/skins/Hook/SkinAfterPortletHook.php', 'MediaWiki\\Special\\SpecialPageFactory' => __DIR__ . '/includes/specialpage/SpecialPageFactory.php', 'MediaWiki\\Storage\\IncompleteRevisionException' => __DIR__ . '/includes/Revision/IncompleteRevisionException.php', 'MediaWiki\\Storage\\MutableRevisionRecord' => __DIR__ . '/includes/Revision/MutableRevisionRecord.php', |