public static function onComposeCommonBodyMail(Title $title, &$keys, &$body, User $editor, &$bodyHTML, &$postTransformKeys) { global $wgEnableWikiaFollowedPages, $wgEnableWikiaFollowedPagesOnlyPrefs; wfProfileIn(__METHOD__); $oEthHelper = new self(); if (array_key_exists('$ACTION', $keys)) { $action = $keys['$ACTION']; /* * modify bodyHTML for blogpost action * check if Follow Ext is enabled, otherwise parameter $keys['$PAGETITLE'] that we need hasn't been initialized on MailNotifyBuildKeys hook */ if ($action == FollowHelper::LOG_ACTION_BLOG_POST && (!empty($wgEnableWikiaFollowedPages) || !empty($wgEnableWikiaFollowedPagesOnlyPrefs))) { $result = $oEthHelper->bodyBlogpost($title, $keys, $body, $editor, $bodyHTML, $postTransformKeys, $action); wfProfileOut(__METHOD__); return $result; } } /* Default template may be put here */ wfProfileOut(__METHOD__); return true; }