summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2013-10-20 22:04:48 +0200
committerMichael Hamann <michael@content-space.de>2013-10-20 22:06:21 +0200
commit4c4b65c86f4906b0cdd7b3115636ec829bb7099f (patch)
tree2d81b8717f85eb8572a93f63cb1ba276f3a9495e
parent8c404966d3ce2b83b0dcb368308eb44714e63beb (diff)
downloadrpg-4c4b65c86f4906b0cdd7b3115636ec829bb7099f.tar.gz
rpg-4c4b65c86f4906b0cdd7b3115636ec829bb7099f.tar.bz2
Fix handling of the legacy subscription action name
-rw-r--r--inc/template.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/inc/template.php b/inc/template.php
index b42c9d934..e967bf27d 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -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;