]> git.pld-linux.org Git - packages/eventum.git/commitdiff
- allow APP_SYSTEM_USER_ID and APP_BENCHMARK being redefined by local config.php
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 14 Mar 2005 16:13:05 +0000 (16:13 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    eventum-config.php -> 1.5

eventum-config.php

index 35a613f32a72688631f135d64db1a8f347f3fac2..e61aca29b080b974724feb9411a8ef10966e6b1d 100755 (executable)
@@ -35,14 +35,18 @@ define("APP_LOGIN_LOG", APP_LOG_PATH . "login_attempts.log");
 
 define("APP_VERSION", "%{APP_VERSION}%");
 
-// define the user_id of system user
-define("APP_SYSTEM_USER_ID", 1);
-
-define("APP_BENCHMARK", false);
-
 # include site config
 include_once '/etc/eventum/config.php';
 
+// define the user_id of system user
+if (!defined('APP_SYSTEM_USER_ID')) {
+    define("APP_SYSTEM_USER_ID", 1);
+}
+
+if (!defined('APP_BENCHMARK')) {
+    define("APP_BENCHMARK", false);
+}
+
 if (APP_BENCHMARK) {
     // always benchmark the scripts
     include_once("Benchmark/Timer.php");
This page took 0.031848 seconds and 4 git commands to generate.