X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FSystem%2FJoomla.php;h=956dd83670e98c0014b54a41b8636fd5c4cc095a;hb=54744051dea726c2b1495f24fc1cf7ba7fa25e11;hp=746ef630ecee9b17217ca3eb084295a5a36d292e;hpb=6b5dfd14377463ae9a2cce380113be72cdbd00e8;p=civicrm-core.git diff --git a/CRM/Utils/System/Joomla.php b/CRM/Utils/System/Joomla.php index 746ef630ec..956dd83670 100644 --- a/CRM/Utils/System/Joomla.php +++ b/CRM/Utils/System/Joomla.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2019 | + | Copyright CiviCRM LLC (c) 2004-2020 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2019 + * @copyright CiviCRM LLC (c) 2004-2020 */ /** @@ -473,9 +473,10 @@ class CRM_Utils_System_Joomla extends CRM_Utils_System_Base { /** * FIXME: Use CMS-native approach + * @throws \CRM_Core_Exception. */ public function permissionDenied() { - CRM_Core_Error::fatal(ts('You do not have permission to access this page.')); + throw new CRM_Core_Exception(ts('You do not have permission to access this page.')); } /**