mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 14:33:14 +00:00
Avoid errors by explicitely namespacing root exception
This commit is contained in:
@@ -80,7 +80,7 @@ class module_report_add extends module_report
|
||||
try {
|
||||
$user = User_Adapter::getInstance($value, $this->app);
|
||||
$caption = $user->get_display_name();
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
} elseif ($field == 'date')
|
||||
|
@@ -328,7 +328,7 @@ class module_report_dashboard implements module_report_dashboard_componentInterf
|
||||
$this->app, $sbasid, $coll, $this->dmin, $this->dmax
|
||||
);
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
$i ++;
|
||||
|
@@ -76,7 +76,7 @@ class module_report_dashboard_feed implements module_report_dashboard_componentI
|
||||
$result->setApplication($app);
|
||||
|
||||
return $result;
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
|
||||
|
@@ -114,7 +114,7 @@ class module_report_download extends module_report
|
||||
if (array_key_exists('record_id', $row)) {
|
||||
try {
|
||||
$record = new \record_adapter($app, $this->sbas_id, $row['record_id']);
|
||||
} catch (Exception_Record_AdapterNotFound $e) {
|
||||
} catch (\Exception_Record_AdapterNotFound $e) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@@ -80,7 +80,7 @@ class module_report_edit extends module_report
|
||||
try {
|
||||
$user = User_Adapter::getInstance($value, $this->app);
|
||||
$caption = $user->get_display_name();
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
} elseif ($field == 'date') {
|
||||
|
@@ -498,7 +498,7 @@ class module_report_nav extends module_report
|
||||
|
||||
try {
|
||||
$record = new record_adapter($this->app, $sbas_id, $rid);
|
||||
} catch (Exception_Record_AdapterNotFound $e) {
|
||||
} catch (\Exception_Record_AdapterNotFound $e) {
|
||||
return $this->report;
|
||||
}
|
||||
|
||||
|
@@ -81,7 +81,7 @@ class module_report_push extends module_report
|
||||
try {
|
||||
$user = User_Adapter::getInstance($value, $this->app);
|
||||
$caption = $user->get_display_name();
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
} elseif ($field == 'date') {
|
||||
|
@@ -81,7 +81,7 @@ class module_report_sent extends module_report
|
||||
try {
|
||||
$user = User_Adapter::getInstance($value, $this->app);
|
||||
$caption = $user->get_display_name();
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
} elseif ($field == 'date') {
|
||||
|
@@ -81,7 +81,7 @@ class module_report_validate extends module_report
|
||||
try {
|
||||
$user = User_Adapter::getInstance($value, $this->app);
|
||||
$caption = $user->get_display_name();
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
} elseif ($field == 'date') {
|
||||
|
Reference in New Issue
Block a user