mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Avoid errors by explicitely namespacing root exception
This commit is contained in:
@@ -240,7 +240,7 @@ class ACL implements cache_cacheableInterface
|
||||
$subdef_class = $record->get_databox()->get_subdef_structure()
|
||||
->get_subdef($record->get_type(), $subdef_name)
|
||||
->get_class();
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -748,7 +748,7 @@ class ACL implements cache_cacheableInterface
|
||||
|
||||
try {
|
||||
$ret[$sbas_id] = $this->app['phraseanet.appbox']->get_databox((int) $sbas_id);
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -799,7 +799,7 @@ class ACL implements cache_cacheableInterface
|
||||
$this->_rights_records_document = $tmp_rights['document'];
|
||||
|
||||
return $this;
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
$sql = 'SELECT sbas_id, record_id, preview, document
|
||||
@@ -841,7 +841,7 @@ class ACL implements cache_cacheableInterface
|
||||
$this->is_admin = $this->get_data_from_cache(self::CACHE_IS_ADMIN);
|
||||
|
||||
return $this;
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
$sql = 'SELECT create_db
|
||||
@@ -935,7 +935,7 @@ class ACL implements cache_cacheableInterface
|
||||
$this->_limited = $this->get_data_from_cache(self::CACHE_LIMITS_BAS);
|
||||
|
||||
return $this;
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user