From 4c4b65c86f4906b0cdd7b3115636ec829bb7099f Mon Sep 17 00:00:00 2001
From: Michael Hamann <michael@content-space.de>
Date: Sun, 20 Oct 2013 22:04:48 +0200
Subject: [PATCH] Fix handling of the legacy subscription action name

---
 inc/template.php | 5 +----
 1 file changed, 1 insertion(+), 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;
-- 
GitLab