FIX: fix routes to writing new blog and blog post overview

This commit is contained in:
Michal Kváček
2016-08-16 13:20:30 +02:00
parent be81834aad
commit 0993d812cb
+3 -3
View File
@@ -71,7 +71,7 @@ class Article extends Handler
// get data and try to save them
$data = EditContent::getFields($request, $fields);
$data['allowComments'] = (int) $data['allowComments'];
$data['allowComments'] = (int)$data['allowComments'];
list($revision, $changedColumns) = $content->updateWithHistory($fields, $data, $revisionID);
@@ -90,8 +90,8 @@ class Article extends Handler
$menu = \Menu::instance('mainMenu');
$menu->dropdown(trans('article::module.name'), function ($sub) {
$sub->route('article.new', trans('article::article.new'), [], 10, ['icon' => 'fa fa-fw fa-pencil']);
$sub->route('article.overview', trans('article::article.overview'), [], 30, ['icon' => 'fa fa-fw fa-book']);
$sub->route('content.new', trans('article::article.new'), ['id' => self::getModuleId()], 10, ['icon' => 'fa fa-fw fa-pencil']);
$sub->route('content.overview', trans('article::article.overview'), ['id' => self::getModuleId()], 30, ['icon' => 'fa fa-fw fa-book']);
}, 10, ['icon' => 'fa fa-fw fa-book']);
}