From: Steve Sutton Date: Thu, 1 Sep 2016 14:55:56 +0000 (-0400) Subject: Update stand template params to deal with no action. X-Git-Tag: v2.5.5^2~5^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=2f8b6814b2429abc2e41ebb0e25552606f00d078;p=WP-Plugins%2Fglm-member-db.git Update stand template params to deal with no action. In cases where we are using the smarty templates that are not using action we need to set this to an empty string. --- diff --git a/setup/standardTemplateParams.php b/setup/standardTemplateParams.php index 4f8f261a..295b203b 100644 --- a/setup/standardTemplateParams.php +++ b/setup/standardTemplateParams.php @@ -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: '' ) ); } - - - - -