Skip to content

Commit 52d8473

Browse files
committed
fix loading logs in oc9.1
1 parent a59f3b3 commit 52d8473

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

controller/logcontroller.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ public function __construct($appName,
4949

5050
private function getLogIterator() {
5151
$dateFormat = $this->config->getSystemValue('logdateformat', \DateTime::ISO8601);
52-
$handle = fopen(\OC_Log_Owncloud::getLogFilePath(), 'rb');
52+
$logClass = class_exists('\OC\Log\Owncloud') ? '\OC\Log\Owncloud' : '\OC_Log_Owncloud';
53+
$handle = fopen($logClass::getLogFilePath(), 'rb');
5354
return new LogIterator($handle, $dateFormat);
5455
}
5556

0 commit comments

Comments
 (0)