Update stand template params to deal with no action.
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 1 Sep 2016 14:55:56 +0000 (10:55 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 1 Sep 2016 14:55:56 +0000 (10:55 -0400)
In cases where we are using the smarty templates that are not using
action we need to set this to an empty string.

setup/standardTemplateParams.php

index 4f8f261..295b203 100644 (file)
@@ -54,11 +54,6 @@ if (is_admin()) {
     // Front specific
     $smarty->templateAssign('frontDebug', GLM_MEMBERS_PLUGIN_FRONT_DEBUG);
     $smarty->templateAssign('errorMsg', $errorMsg);
-    $smarty->templateAssign('thisAction', $action);
+    $smarty->templateAssign('thisAction', ((isset($action)) ? $action: '' ) );
 
 }
-
-
-
-
-