mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
remove legacy variables, hopefully i didn't mess anything up
git-svn-id: http://www.observium.org/svn/observer/trunk@3134 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1191,15 +1191,6 @@ if ($config['memcached']['enable'])
|
||||
|
||||
# Set some times needed by loads of scripts (it's dynamic, so we do it here!)
|
||||
|
||||
## Please remove these where found replacing with $config['time']
|
||||
|
||||
$now = time();
|
||||
$day = time() - (24 * 60 * 60);
|
||||
$twoday = time() - (2 * 24 * 60 * 60);
|
||||
$week = time() - (7 * 24 * 60 * 60);
|
||||
$month = time() - (31 * 24 * 60 * 60);
|
||||
$year = time() - (365 * 24 * 60 * 60);
|
||||
|
||||
$config['time']['now'] = time();
|
||||
$config['time']['fourhour'] = time() - (4 * 60 * 60);
|
||||
$config['time']['sixhour'] = time() - (6 * 60 * 60);
|
||||
|
||||
Reference in New Issue
Block a user