Fixed mass tag redirect
This commit is contained in:
parent
4ba83e6834
commit
20ad5da89a
2 changed files with 7 additions and 2 deletions
|
@ -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');
|
||||
|
|
|
@ -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 =
|
||||
[
|
||||
|
|
Loading…
Reference in a new issue