Fix usages of OC\Log\Owncloud

This commit is contained in:
Joas Schilling 2016-05-04 10:35:32 +02:00
parent cd7f4ed96f
commit 3ff314c6f2
No known key found for this signature in database
GPG Key ID: 70A0B324C41C0946
2 changed files with 5 additions and 4 deletions

View File

@ -89,8 +89,8 @@ class LogSettingsController extends Controller {
*/
public function getEntries($count=50, $offset=0) {
return new JSONResponse([
'data' => \OC_Log_Owncloud::getEntries($count, $offset),
'remain' => count(\OC_Log_Owncloud::getEntries(1, $offset + $count)) !== 0,
'data' => \OC\Log\Owncloud::getEntries($count, $offset),
'remain' => count(\OC\Log\Owncloud::getEntries(1, $offset + $count)) !== 0,
]);
}

View File

@ -44,15 +44,16 @@ OC_Util::addScript('files', 'jquery.fileupload');
$showLog = (\OC::$server->getConfig()->getSystemValue('log_type', 'owncloud') === 'owncloud');
$numEntriesToLoad = 3;
$entries = OC_Log_Owncloud::getEntries($numEntriesToLoad + 1);
$entries = \OC\Log\Owncloud::getEntries($numEntriesToLoad + 1);
$entriesRemaining = count($entries) > $numEntriesToLoad;
$entries = array_slice($entries, 0, $numEntriesToLoad);
$logFilePath = OC_Log_Owncloud::getLogFilePath();
$logFilePath = \OC\Log\Owncloud::getLogFilePath();
$doesLogFileExist = file_exists($logFilePath);
$logFileSize = 0;
if($doesLogFileExist) {
$logFileSize = filesize($logFilePath);
}
$config = \OC::$server->getConfig();
$appConfig = \OC::$server->getAppConfig();
$request = \OC::$server->getRequest();