From: Anthony Talarico Date: Wed, 14 Nov 2018 17:13:05 +0000 (-0500) Subject: removing test code from the controller X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=b7e4e367188e4e8cff6c6e1c02f9daf8a7ddd8a2;p=WP-Plugins%2Fglm-member-db.git removing test code from the controller --- diff --git a/controllers/admin.php b/controllers/admin.php index b241ee0d..e1158a37 100755 --- a/controllers/admin.php +++ b/controllers/admin.php @@ -1070,12 +1070,9 @@ class glmMembersAdmin extends GlmPluginSupport // Update the Smarty view path $smarty->template->addTemplateDir($viewPath); - if ( $returnOutput == 'getTemplateData') { - return $smarty->template->getTemplateVars(); - } + // Generate output from model data and view if ( $returnOutput ) { - //echo '
', print_r($smarty->template->getTemplateVars()), '
'; $output = $output.$smarty->template->fetch( $viewFile ); } else { echo $output;