Drop old logs code

This commit is contained in:
Flavio Copes
2016-01-10 18:22:06 +01:00
parent 2c9630b7af
commit 8e34aa3c30
4 changed files with 0 additions and 56 deletions

View File

@@ -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