X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FAdmin%2FPage%2FMessageTemplates.php;h=44d4f0b0c2c792dd11e19d991968c73eca15cbd8;hb=d0bb8a2fb7c8f4e65f5d3974d00a126db24f1376;hp=d9a75806e53eaf652a555d2b89fb5472de868a89;hpb=95b0090202aa538612981aa3cda2c71154397fec;p=civicrm-core.git diff --git a/CRM/Admin/Page/MessageTemplates.php b/CRM/Admin/Page/MessageTemplates.php index d9a75806e5..44d4f0b0c2 100644 --- a/CRM/Admin/Page/MessageTemplates.php +++ b/CRM/Admin/Page/MessageTemplates.php @@ -1,9 +1,9 @@ workflow_id) { // do not expose action link for reverting to default if the template did not diverge or we just reverted it now @@ -168,6 +180,13 @@ class CRM_Admin_Page_MessageTemplates extends CRM_Core_Page_Basic { } } + /** + * @param null $args + * @param null $pageArgs + * @param null $sort + * + * @throws Exception + */ function run($args = NULL, $pageArgs = NULL, $sort = NULL) { // handle the revert action and offload the rest to parent if (CRM_Utils_Request::retrieve('action', 'String', $this) & CRM_Core_Action::REVERT) { @@ -208,6 +227,8 @@ class CRM_Admin_Page_MessageTemplates extends CRM_Core_Page_Basic { /** * Get user context. * + * @param null $mode + * * @return string user context. */ function userContext($mode = NULL) { @@ -217,13 +238,12 @@ class CRM_Admin_Page_MessageTemplates extends CRM_Core_Page_Basic { /** * browse all entities. * - * @param int $action + * @internal param int $action * * @return void * @access public */ function browse() { - CRM_Core_Resources::singleton()->addScriptFile('civicrm', 'js/crm.livePage.js'); $action = func_num_args() ? func_get_arg(0) : NULL; if ($this->_action & CRM_Core_Action::ADD) { return;