1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-15 03:05:26 +02:00
This commit is contained in:
Ryan Cramer
2021-03-19 09:28:34 -04:00
parent 2bb6179475
commit be10a6ce7e

View File

@@ -405,6 +405,8 @@ class FileLog extends Wire {
*
*/
public function getTotalLines() {
if(!is_readable($this->logFilename)) return 0;
if(filesize($this->logFilename) < $this->chunkSize) {
$data = file($this->logFilename);