diff options
| author | 2014-12-28 19:46:04 +0100 | |
|---|---|---|
| committer | 2014-12-28 19:46:04 +0100 | |
| commit | 0cd975bfd06b45865722d85fbdab120439623ddc (patch) | |
| tree | 790f442337f88cfecb20b0c62bfec2f61af83c94 /app/Models/LogDAO.php | |
| parent | 5f327abeeca1953ff9d11f93afb9fbd9ceb825ba (diff) | |
| parent | 497d295be470454b7bd068a5c5cceda8caa19527 (diff) | |
Merge branch '729-move_data' into dev
To update, please follow instructions in https://github.com/FreshRSS/FreshRSS/issues/729
Diffstat (limited to 'app/Models/LogDAO.php')
| -rw-r--r-- | app/Models/LogDAO.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Models/LogDAO.php b/app/Models/LogDAO.php index 21593435d..4c56e3150 100644 --- a/app/Models/LogDAO.php +++ b/app/Models/LogDAO.php @@ -3,7 +3,7 @@ class FreshRSS_LogDAO { public static function lines() { $logs = array(); - $handle = @fopen(LOG_PATH . '/' . Minz_Session::param('currentUser', '_') . '.log', 'r'); + $handle = @fopen(join_path(DATA_PATH, 'users', Minz_Session::param('currentUser', '_'), 'log.txt'), 'r'); if ($handle) { while (($line = fgets($handle)) !== false) { if (preg_match('/^\[([^\[]+)\] \[([^\[]+)\] --- (.*)$/', $line, $matches)) { @@ -20,6 +20,6 @@ class FreshRSS_LogDAO { } public static function truncate() { - file_put_contents(LOG_PATH . '/' . Minz_Session::param('currentUser', '_') . '.log', ''); + file_put_contents(join_path(DATA_PATH, 'users', Minz_Session::param('currentUser', '_'), 'log.txt'), ''); } } |
