diff options
| author | 2014-10-30 19:57:08 +0100 | |
|---|---|---|
| committer | 2014-10-30 19:57:08 +0100 | |
| commit | 58deab37cdd97e93ac25aba574a32befe1db2243 (patch) | |
| tree | 56c618b6dc3620de31917294c69304f61c52f9d6 /app/Controllers/subscriptionController.php | |
| parent | ba832bef4de4a02df46023b389f752b01d43c98b (diff) | |
Fix Minz_Error::error() -> use default values
Diffstat (limited to 'app/Controllers/subscriptionController.php')
| -rw-r--r-- | app/Controllers/subscriptionController.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/app/Controllers/subscriptionController.php b/app/Controllers/subscriptionController.php index a89168eb3..67b95eba6 100644 --- a/app/Controllers/subscriptionController.php +++ b/app/Controllers/subscriptionController.php @@ -11,10 +11,7 @@ class FreshRSS_subscription_Controller extends Minz_ActionController { */ public function firstAction() { if (!FreshRSS_Auth::hasAccess()) { - Minz_Error::error( - 403, - array('error' => array(_t('access_denied'))) - ); + Minz_Error::error(403); } $catDAO = new FreshRSS_CategoryDAO(); @@ -71,10 +68,7 @@ class FreshRSS_subscription_Controller extends Minz_ActionController { $id = Minz_Request::param('id'); if ($id === false || !isset($this->view->feeds[$id])) { - Minz_Error::error( - 404, - array('error' => array(_t('page_not_found'))) - ); + Minz_Error::error(404); return; } |
