-
-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REF] Convert CRM_Core_Error::fatal to CRM_Core_Error::statusBounce i… #15863
[REF] Convert CRM_Core_Error::fatal to CRM_Core_Error::statusBounce i… #15863
Conversation
(Standard links)
|
CRM/Extension/Downloader.php
Outdated
@@ -105,7 +105,7 @@ public function download($key, $downloadUrl) { | |||
$destDir = $this->containerDir . DIRECTORY_SEPARATOR . $key; | |||
|
|||
if (!$downloadUrl) { | |||
CRM_Core_Error::fatal(ts('Cannot install this extension - downloadUrl is not set!')); | |||
CRM_Core_Error::statusBounce(ts('Cannot install this extension - downloadUrl is not set!')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this the form - otherwise an exception makes sense
@seamuslee001 were you going to update this to throw exceptions? |
4b1fdf5
to
df9f2d1
Compare
done @eileenmcnaughton |
@@ -105,7 +105,7 @@ public function download($key, $downloadUrl) { | |||
$destDir = $this->containerDir . DIRECTORY_SEPARATOR . $key; | |||
|
|||
if (!$downloadUrl) { | |||
CRM_Core_Error::fatal(ts('Cannot install this extension - downloadUrl is not set!')); | |||
throw new CRM_Extension_Exception(ts('Cannot install this extension - downloadUrl is not set!')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohh flash
…n Extension folder
Overview
This converts from deprecated function
CRM_Core_Error::fatal
to usingCRM_Core_Error::statusBounce
Before
Deprecated function used in the Extensions subsystem
After
Non depreacted function used
ping @yashodha @eileenmcnaughton