Skip to content

Commit

Permalink
Fix handling of the legacy subscription action name
Browse files Browse the repository at this point in the history
  • Loading branch information
michitux committed Oct 20, 2013
1 parent 8c40496 commit 4c4b65c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions inc/template.php
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 4c4b65c

Please sign in to comment.