diff options
Diffstat (limited to 'app/Models/LogDAO.php')
| -rw-r--r-- | app/Models/LogDAO.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/Models/LogDAO.php b/app/Models/LogDAO.php index e57e0b1b9..6205468bd 100644 --- a/app/Models/LogDAO.php +++ b/app/Models/LogDAO.php @@ -1,11 +1,9 @@ <?php class FreshRSS_LogDAO { - private static $filename = '/application.log'; - - public static function lines() { + public static function lines($user) { $logs = array (); - $handle = @fopen(LOG_PATH . self::$filename, 'r'); + $handle = @fopen(LOG_PATH . '/' . $user . '.log', 'r'); if ($handle) { while (($line = fgets($handle)) !== false) { if (preg_match ('/^\[([^\[]+)\] \[([^\[]+)\] --- (.*)$/', $line, $matches)) { |
