diff options
| author | 2020-06-05 10:09:31 +0200 | |
|---|---|---|
| committer | 2020-06-05 10:09:31 +0200 | |
| commit | d4554fa087f9057610085ca685cd8fb79d8f2bd0 (patch) | |
| tree | 60ab634136516e98d0885d1033a5636233f837b7 /app/Controllers/categoryController.php | |
| parent | 27f0b614189c090028dfb9a56d1b21f1adf263d4 (diff) | |
Change add feed action (#3027)
* Docker Alpine 3.12 (#3025)
https://alpinelinux.org/posts/Alpine-3.12.0-released.html
With PHP 7.3.18 (from 7.3.17) (and Apache 2.4.43 unchanged).
No other significant change spotted
* Ensure feed attributes are used before load
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/Controllers/categoryController.php')
| -rw-r--r-- | app/Controllers/categoryController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Controllers/categoryController.php b/app/Controllers/categoryController.php index 2551a79d4..1d0359a39 100644 --- a/app/Controllers/categoryController.php +++ b/app/Controllers/categoryController.php @@ -28,7 +28,7 @@ class FreshRSS_category_Controller extends Minz_ActionController { */ public function createAction() { $catDAO = FreshRSS_Factory::createCategoryDao(); - $url_redirect = array('c' => 'subscription', 'a' => 'index'); + $url_redirect = array('c' => 'subscription', 'a' => 'add'); $limits = FreshRSS_Context::$system_conf->limits; $this->view->categories = $catDAO->listCategories(false); @@ -58,6 +58,7 @@ class FreshRSS_category_Controller extends Minz_ActionController { ); if ($catDAO->addCategory($values)) { + $url_redirect['a'] = 'index'; Minz_Request::good(_t('feedback.sub.category.created', $cat->name()), $url_redirect); } else { Minz_Request::bad(_t('feedback.sub.category.error'), $url_redirect); |
