diff options
| author | 2013-11-13 23:34:30 +0100 | |
|---|---|---|
| committer | 2013-11-13 23:34:30 +0100 | |
| commit | 6fe1e1bad0c0164e187ce4c560c2f35bafdff9a5 (patch) | |
| tree | 9d5211cdd786094fc2cda8a0b251f653581b168a /app/controllers/indexController.php | |
| parent | 803cd05a58c93b91dc73db32fd95cc11372aa82f (diff) | |
Ajout d'un bouton pour effacer les logs
https://github.com/marienfressinaud/FreshRSS/issues/242
Diffstat (limited to 'app/controllers/indexController.php')
| -rwxr-xr-x | app/controllers/indexController.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/indexController.php b/app/controllers/indexController.php index e99ae2e44..7b5dbd264 100755 --- a/app/controllers/indexController.php +++ b/app/controllers/indexController.php @@ -211,6 +211,10 @@ class indexController extends ActionController { View::prependTitle (Translate::t ('logs') . ' - '); + if (Request::isPost ()) { + file_put_contents(LOG_PATH . '/application.log', ''); + } + $logs = array(); try { $logDAO = new LogDAO (); |
