Skip to content
Snippets Groups Projects
Commit 4c4b65c8 authored by Michael Hamann's avatar Michael Hamann
Browse files

Fix handling of the legacy subscription action name

parent 8c404966
No related branches found
No related tags found
No related merge requests found
......@@ -606,6 +606,7 @@ function tpl_get_action($type) {
// check disabled actions and fix the badly named ones
if($type == 'history') $type = 'revisions';
if ($type == 'subscription') $type = 'subscribe';
if(!actionOK($type)) return false;
$accesskey = null;
......@@ -701,10 +702,6 @@ function tpl_get_action($type) {
$params['rev'] = $REV;
$params['sectok'] = getSecurityToken();
break;
/** @noinspection PhpMissingBreakStatementInspection */
case 'subscription':
$type = 'subscribe';
$params['do'] = 'subscribe';
case 'subscribe':
if(!$_SERVER['REMOTE_USER']) {
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment