diff options
-rw-r--r-- | lib/private/log/owncloud.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/log/owncloud.php b/lib/private/log/owncloud.php index aec527cfc5c..2e569faee80 100644 --- a/lib/private/log/owncloud.php +++ b/lib/private/log/owncloud.php @@ -91,11 +91,12 @@ class OC_Log_Owncloud { $time = $time->format($format); $url = ($request->getRequestUri() !== '') ? $request->getRequestUri() : '--'; $method = is_string($request->getMethod()) ? $request->getMethod() : '--'; - if(\OC::$server->getConfig()->getSystemValue('installed', false)) { + if($config->getValue('installed', false)) { $user = (\OC_User::getUser()) ? \OC_User::getUser() : '--'; } else { $user = '--'; } + $version = $config->getValue('version', ''); $entry = compact( 'reqId', 'remoteAddr', @@ -105,7 +106,8 @@ class OC_Log_Owncloud { 'time', 'method', 'url', - 'user' + 'user', + 'version' ); $entry = json_encode($entry); $handle = @fopen(self::$logFile, 'a'); |