Fixed shortcode output showing before other content
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 21 May 2015 16:10:36 +0000 (12:10 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 21 May 2015 16:10:36 +0000 (12:10 -0400)
controllers/front.php

index ca6536a..2e06a82 100644 (file)
@@ -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