From: hickert Date: Mon, 2 Aug 2010 10:54:44 +0000 (+0000) Subject: Ensure we either call the plugins constructor or manually set the initTime variable... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6a3998ded4663cf0b1ffc2fe8143c10696637336;p=gosa.git Ensure we either call the plugins constructor or manually set the initTime variable for the new statistics plugin. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19336 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/html/logout.php b/gosa-core/html/logout.php index b2f258425..c9ed421b6 100644 --- a/gosa-core/html/logout.php +++ b/gosa-core/html/logout.php @@ -51,6 +51,10 @@ if ((!isset($config)) || $config->get_cfg_value("core","language") == ""){ $lang= $config->get_cfg_value("core","language"); } +// Try to keep track of logouts, this will fail if our session has already expired. +// Nothing will be logged if config isn't present anymore. +stats::log('global', 'global', array(), $action = 'logout', $amount = 1, 0); + putenv("LANGUAGE="); putenv("LANG=$lang"); setlocale(LC_ALL, $lang);