Browse Source

Fix getting db size for sqlite

See https://github.com/FreshRSS/FreshRSS/issues/729
Marien Fressinaud 11 years ago
parent
commit
725aece83e
1 changed files with 1 additions and 1 deletions
  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) {
 	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'));
 	}
 	}
 }
 }