From: Chuck Scott Date: Thu, 21 May 2015 16:10:36 +0000 (-0400) Subject: Fixed shortcode output showing before other content X-Git-Tag: v1.0.0~10 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=3bff232a783330e71e632b808b8239ab43a72cb6;p=WP-Plugins%2Fglm-member-db.git Fixed shortcode output showing before other content --- diff --git a/controllers/front.php b/controllers/front.php index ca6536a3..2e06a820 100644 --- a/controllers/front.php +++ b/controllers/front.php @@ -436,11 +436,13 @@ class glmMembersFront extends GlmPluginSupport } // Generate output from model data and view - $smarty->template->display($view); + $out = $smarty->template->fetch($view); // Restore timezone that was set before our code was called date_default_timezone_set($defaultTimeZone); + return $out; + } } ?> \ No newline at end of file