summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-17 12:36:13 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-17 12:36:13 -0400
commit3ea1119e500c23ee918569e2a58cc5abaa1d8a5a (patch)
tree11cd52a17f4ad446c66deff33d58c38102461584 /lib
parentca134adeec7d6e8a692c2801cc3077d80e6e3644 (diff)
define syslog variables in common.php
darcs-hash:20080717163613-84dde-2684415a03d1a2754e148e4921ce39ad075bbc5b.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/common.php2
-rw-r--r--lib/util.php1
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/common.php b/lib/common.php
index a49806b05..25dbbf341 100644
--- a/lib/common.php
+++ b/lib/common.php
@@ -26,6 +26,8 @@ define('AVATAR_STREAM_SIZE', 48);
define('AVATAR_MINI_SIZE', 24);
define('MAX_AVATAR_SIZE', 256 * 1024);
+define_syslog_variables();
+
# global configuration object
require_once('PEAR.php');
diff --git a/lib/util.php b/lib/util.php
index 1aa9d2944..249c467d9 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -1054,7 +1054,6 @@ function common_ensure_syslog() {
static $initialized = false;
if (!$initialized) {
global $config;
- define_syslog_variables();
openlog($config['syslog']['appname'], 0, LOG_USER);
$initialized = true;
}