diff options
| author | 2013-12-30 12:39:21 +0100 | |
|---|---|---|
| committer | 2013-12-30 12:39:21 +0100 | |
| commit | 3cc073f2d1dd4a5fef5d66e6f30c4496bf2e6421 (patch) | |
| tree | f31485c80374aff2efcb58a3013b577c27713a24 /app/Models/LogDAO.php | |
| parent | 92efd68a3a13e49fe7bbfb8441611c0dcd639415 (diff) | |
Log compatible multi-utilisateur
Contribue à https://github.com/marienfressinaud/FreshRSS/issues/126.
Il faudra restaurer la gestion du cache HTTP pour les logs
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)) { |
