Fixed mass tag redirect

This commit is contained in:
Marcin Kurczewski 2014-05-12 00:22:02 +02:00
parent 4ba83e6834
commit 20ad5da89a
2 changed files with 7 additions and 2 deletions

View file

@ -111,13 +111,17 @@ class TagController
Messenger::message('Tag renamed successfully.');
}
public function massTagRedirectAction()
public function massTagRedirectView()
{
$context = getContext();
$context->viewName = 'tag-list-wrapper';
Access::assert(new Privilege(Privilege::MassTag));
}
public function massTagRedirectAction()
{
$this->massTagRedirectView();
$suppliedOldPage = intval(InputHelper::get('old-page'));
$suppliedOldQuery = InputHelper::get('old-query');
$suppliedQuery = InputHelper::get('query');

View file

@ -83,7 +83,8 @@ $tagValidation =
\Chibi\Router::register(['TagController', 'renameAction'], 'POST', '/tags-rename', $tagValidation);
\Chibi\Router::register(['TagController', 'mergeView'], 'GET', '/tags-merge', $tagValidation);
\Chibi\Router::register(['TagController', 'mergeAction'], 'POST', '/tags-merge', $tagValidation);
\Chibi\Router::register(['TagController', 'massTagRedirectAction'], 'GET', '/mass-tag-redirect', $tagValidation);
\Chibi\Router::register(['TagController', 'massTagRedirectView'], 'GET', '/mass-tag-redirect', $tagValidation);
\Chibi\Router::register(['TagController', 'massTagRedirectAction'], 'POST', '/mass-tag-redirect', $tagValidation);
$userValidation =
[