mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +00:00
Avoid errors by explicitely namespacing root exception
This commit is contained in:
@@ -72,7 +72,7 @@ class databox_cgu
|
||||
|
||||
if ($userValidation)
|
||||
$terms[$name] = array('sbas_id' => $databox->get_sbas_id(), 'terms' => $value, 'date' => $update);
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -282,7 +282,7 @@ class databox_field implements cache_cacheableInterface
|
||||
if ( ! isset(self::$_instance[$instance_id]) || (self::$_instance[$instance_id] instanceof self) === false) {
|
||||
try {
|
||||
self::$_instance[$instance_id] = $databox->get_data_from_cache($cache_key);
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
self::$_instance[$instance_id] = new self($app, $databox, $id);
|
||||
$databox->set_data_to_cache(self::$_instance[$instance_id], $cache_key);
|
||||
}
|
||||
|
@@ -143,7 +143,7 @@ class databox_status
|
||||
foreach ($sbas_ids as $databox) {
|
||||
try {
|
||||
$statuses[$databox->get_sbas_id()] = $databox->get_statusbits();
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -172,7 +172,7 @@ class databox_status
|
||||
}
|
||||
try {
|
||||
$statuses[$databox->get_sbas_id()] = $databox->get_statusbits();
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user