diff options
| author | 2014-10-29 10:15:22 +0100 | |
|---|---|---|
| committer | 2014-10-29 10:15:22 +0100 | |
| commit | 1ea996c4eaa0f07f4fd906e7cade68a9bee3b11d (patch) | |
| tree | 582ac865701f46695dfd51ee24260db240fa3e32 /app/Controllers/categoryController.php | |
| parent | 9f97f7df8822ed2f32a9bc9d46ece92dee93089c (diff) | |
Update i18n for limit of category.
Diffstat (limited to 'app/Controllers/categoryController.php')
| -rw-r--r-- | app/Controllers/categoryController.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Controllers/categoryController.php b/app/Controllers/categoryController.php index ef8af7ed6..609284559 100644 --- a/app/Controllers/categoryController.php +++ b/app/Controllers/categoryController.php @@ -35,9 +35,10 @@ class FreshRSS_category_Controller extends Minz_ActionController { $limits = Minz_Configuration::limits(); $this->view->categories = $catDAO->listCategories(false); + if (count($this->view->categories) >= $limits['max_categories']) { - Minz_Request::bad(_t('over_max_categories', $limits['max_categories']), $url_redirect); - return; + Minz_Request::bad(_t('sub.categories.over_max', $limits['max_categories']), + $url_redirect); } if (Minz_Request::isPost()) { |
