define syslog variables in common.php

darcs-hash:20080717163613-84dde-2684415a03d1a2754e148e4921ce39ad075bbc5b.gz
This commit is contained in:
Evan Prodromou 2008-07-17 12:36:13 -04:00
parent ca134adeec
commit 3ea1119e50
2 changed files with 2 additions and 1 deletions

View File

@ -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');

View File

@ -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;
}