projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26bfc91
)
Avoid a blank screen if registry.php is missing
author
Chuck Hagenbuch
<chuck@horde.org>
Mon, 17 May 2010 02:18:46 +0000
(22:18 -0400)
committer
Chuck Hagenbuch
<chuck@horde.org>
Mon, 17 May 2010 02:18:46 +0000
(22:18 -0400)
framework/Core/lib/Horde/Registry.php
patch
|
blob
|
history
diff --git
a/framework/Core/lib/Horde/Registry.php
b/framework/Core/lib/Horde/Registry.php
index
cf81121
..
edff343
100644
(file)
--- a/
framework/Core/lib/Horde/Registry.php
+++ b/
framework/Core/lib/Horde/Registry.php
@@
-442,6
+442,9
@@
class Horde_Registry
$this->_cache['interfaces'] = array();
/* Read the registry configuration files. */
+ if (!file_exists(HORDE_BASE . '/config/registry.php')) {
+ throw new Horde_Exception('Missing registry.php configuration file');
+ }
require HORDE_BASE . '/config/registry.php';
$files = glob(HORDE_BASE . '/config/registry.d/*.php');
foreach ($files as $r) {