mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-04 21:24:37 -04:00
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>
This commit is contained in:
committed by
GitHub
parent
27f0b61418
commit
d4554fa087
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user