optimized log to oc2

This commit is contained in:
following
2013-07-17 13:00:57 +02:00
parent bd33e67c90
commit 2cb201b5f0
2 changed files with 11 additions and 16 deletions
+5 -2
View File
@@ -9,7 +9,7 @@
***************************************************************************/
require_once($opt['rootpath'] . 'lib2/logic/rowEditor.class.php');
require_once($opt['rootpath'] . 'lib/logtypes.inc.php'); // lib1 ???
require_once($opt['rootpath'] . 'lib2/logic/logtypes.inc.php');
class cache
{
@@ -575,6 +575,9 @@ class cache
}
// $userLogType:
// Logtype selected by the user, or null if not applicable
function getUserLogTypes($userLogType, $oldLogType = 0)
{
global $translate, $login;
@@ -582,7 +585,7 @@ class cache
$logTypes = array();
$logtypeNames = get_logtype_names();
$allowedLogtypes = get_cache_log_types($this->getCacheId(), 0);
$allowedLogtypes = get_cache_log_types($this->getCacheId(), $oldLogType);
$defaultLogType = $userLogType;
if (!logtype_ok($this->getCacheId(), $defaultLogType, $oldLogType))
$defaultLogType = $allowedLogtypes[0];