Jdlrobson has uploaded a new change for review. https://gerrit.wikimedia.org/r/64350
Change subject: Add hook to allow template tweaks before rendering ...................................................................... Add hook to allow template tweaks before rendering Things like Zero want to override certain data keys. This allows them to e.g. public static function onMinervaPreRender( $template ) { $template->set( 'privacy', 'New privacy label' ); return true; } Change-Id: I89a89e9994b074d066e2a318aad0a160a634d7ae --- M includes/skins/MinervaTemplate.php 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend refs/changes/50/64350/1 diff --git a/includes/skins/MinervaTemplate.php b/includes/skins/MinervaTemplate.php index 46ebb9a..239c3e6 100644 --- a/includes/skins/MinervaTemplate.php +++ b/includes/skins/MinervaTemplate.php @@ -61,6 +61,7 @@ $this->prepareCommonData(); $this->prepareData(); $this->prepareBannerData(); + wfRunHooks( 'MinervaPreRender', array( &$this ) ); $this->render( $this->data ); } -- To view, visit https://gerrit.wikimedia.org/r/64350 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I89a89e9994b074d066e2a318aad0a160a634d7ae Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/MobileFrontend Gerrit-Branch: master Gerrit-Owner: Jdlrobson <jrob...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits