Explorar el Código

Fix getting db size for sqlite

See https://github.com/FreshRSS/FreshRSS/issues/729
Marien Fressinaud hace 11 años
padre
commit
725aece83e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Models/EntryDAOSQLite.php

+ 1 - 1
app/Models/EntryDAOSQLite.php

@@ -169,6 +169,6 @@ class FreshRSS_EntryDAOSQLite extends FreshRSS_EntryDAO {
 	}
 
 	public function size($all = false) {
-		return @filesize(DATA_PATH . '/' . $this->current_user . '.sqlite');
+		return @filesize(join_path(DATA_PATH, 'users', $this->current_user, 'db.sqlite'));
 	}
 }