define syslog variables in common.php
darcs-hash:20080717163613-84dde-2684415a03d1a2754e148e4921ce39ad075bbc5b.gz
This commit is contained in:
parent
ca134adeec
commit
3ea1119e50
@ -26,6 +26,8 @@ define('AVATAR_STREAM_SIZE', 48);
|
|||||||
define('AVATAR_MINI_SIZE', 24);
|
define('AVATAR_MINI_SIZE', 24);
|
||||||
define('MAX_AVATAR_SIZE', 256 * 1024);
|
define('MAX_AVATAR_SIZE', 256 * 1024);
|
||||||
|
|
||||||
|
define_syslog_variables();
|
||||||
|
|
||||||
# global configuration object
|
# global configuration object
|
||||||
|
|
||||||
require_once('PEAR.php');
|
require_once('PEAR.php');
|
||||||
|
@ -1054,7 +1054,6 @@ function common_ensure_syslog() {
|
|||||||
static $initialized = false;
|
static $initialized = false;
|
||||||
if (!$initialized) {
|
if (!$initialized) {
|
||||||
global $config;
|
global $config;
|
||||||
define_syslog_variables();
|
|
||||||
openlog($config['syslog']['appname'], 0, LOG_USER);
|
openlog($config['syslog']['appname'], 0, LOG_USER);
|
||||||
$initialized = true;
|
$initialized = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user