projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
657116e
)
Don't return Holidays driver, if disabled.
author
Jan Schneider
<jan@horde.org>
Mon, 9 Mar 2009 08:24:48 +0000
(09:24 +0100)
committer
Jan Schneider
<jan@horde.org>
Thu, 12 Mar 2009 23:12:36 +0000
(
00:12
+0100)
kronolith/lib/Kronolith.php
patch
|
blob
|
history
diff --git
a/kronolith/lib/Kronolith.php
b/kronolith/lib/Kronolith.php
index
0ccc83d
..
60180bf
100644
(file)
--- a/
kronolith/lib/Kronolith.php
+++ b/
kronolith/lib/Kronolith.php
@@
-1954,6
+1954,9
@@
class Kronolith
break;
case 'Holidays':
+ if (empty($GLOBALS['conf']['holidays']['enable'])) {
+ return PEAR::raiseError(_("Holidays are disabled"));
+ }
$params['language'] = $GLOBALS['language'];
break;
}