diff options
| author | 2013-07-27 17:07:44 +0200 | |
|---|---|---|
| committer | 2013-07-27 17:07:44 +0200 | |
| commit | f6d730f9d1ce7957001bd981f04b32d67ebb44e6 (patch) | |
| tree | 1431d9b1f649eea9eb4531b8b39cd9e2c27f6ec9 /app/controllers/feedController.php | |
| parent | 2c2c57f837c8546b480900631698ba7402396102 (diff) | |
Fix issue #106 : modif nom classes Cache et Log
Passage en Minz_Cache et Minz_Log
Permet d'éviter les redondances quand ces classes sont déjà définies
Je n'utilise pas d'espace de nom parce que beaucoup de boulot et
nécessite obligatoirement php 5.3
Si d'autres classes nécessitent cette modification je le ferai au fur et
à mesure qu'on me remontera les soucis
La version de Minz pour FreshRSS n'est plus compatible avec la version
distribuée à part
Diffstat (limited to 'app/controllers/feedController.php')
| -rwxr-xr-x | app/controllers/feedController.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/feedController.php b/app/controllers/feedController.php index 4631e1e7e..21ea2aadd 100755 --- a/app/controllers/feedController.php +++ b/app/controllers/feedController.php @@ -86,14 +86,14 @@ class feedController extends ActionController { $params['id'] = $feed->id (); } } catch (BadUrlException $e) { - Log::record ($e->getMessage (), Log::ERROR); + Minz_Log::record ($e->getMessage (), Minz_Log::ERROR); $notif = array ( 'type' => 'bad', 'content' => Translate::t ('invalid_url', $url) ); Session::_param ('notification', $notif); } catch (FeedException $e) { - Log::record ($e->getMessage (), Log::ERROR); + Minz_Log::record ($e->getMessage (), Minz_Log::ERROR); $notif = array ( 'type' => 'bad', 'content' => Translate::t ('internal_problem_feed') @@ -101,7 +101,7 @@ class feedController extends ActionController { Session::_param ('notification', $notif); } catch (FileNotExistException $e) { // Répertoire de cache n'existe pas - Log::record ($e->getMessage (), Log::ERROR); + Minz_Log::record ($e->getMessage (), Minz_Log::ERROR); $notif = array ( 'type' => 'bad', 'content' => Translate::t ('internal_problem_feed') @@ -160,7 +160,7 @@ class feedController extends ActionController { $feedDAO->updateLastUpdate ($feed->id ()); $flux_update++; } catch (FeedException $e) { - Log::record ($e->getMessage (), Log::ERROR); + Minz_Log::record ($e->getMessage (), Minz_Log::ERROR); $feedDAO->isInError ($feed->id ()); } @@ -264,7 +264,7 @@ class feedController extends ActionController { } } catch (FeedException $e) { $error = true; - Log::record ($e->getMessage (), Log::ERROR); + Minz_Log::record ($e->getMessage (), Minz_Log::ERROR); } } |
