From affe58b80192187ed2f1785f8721d77c3c721208 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Mon, 19 Feb 2018 14:15:06 +0000 Subject: [PATCH] PHP doesn't allow abstract static functions. --- CRM/Core/Task.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CRM/Core/Task.php b/CRM/Core/Task.php index 96a64e8a56..29aa84280c 100644 --- a/CRM/Core/Task.php +++ b/CRM/Core/Task.php @@ -120,7 +120,7 @@ abstract class CRM_Core_Task { /** * Show tasks selectively based on the permission level * of the user - * This function should be call parent::corePermissionedTaskTitles + * This function should be overridden by the child class which would normally call parent::corePermissionedTaskTitles * * @param int $permission * @param array $params @@ -129,7 +129,9 @@ abstract class CRM_Core_Task { * @return array * set of tasks that are valid for the user */ - abstract public static function permissionedTaskTitles($permission, $params); + public static function permissionedTaskTitles($permission, $params) { + return self::corePermissionedTaskTitles(self::tasks(), $permission, $params); + } /** * Show tasks selectively based on the permission level -- 2.25.1