mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-06 04:07:35 +02:00
Drop old logs code
This commit is contained in:
@@ -490,24 +490,6 @@ class Admin
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Get log file for fatal errors.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function logs()
|
||||
{
|
||||
if (!isset($this->logs)) {
|
||||
$file = LogFile::instance($this->grav['locator']->findResource('log://exception.log'));
|
||||
|
||||
$content = $file->content();
|
||||
|
||||
$this->logs = array_reverse($content);
|
||||
}
|
||||
|
||||
return $this->logs;
|
||||
}
|
||||
|
||||
/**
|
||||
* Used by the Dashboard in the admin to display the X latest pages
|
||||
* that have been modified
|
||||
|
||||
Reference in New Issue
Block a user