Revert "Now automatically loading setup/standardTemplateParams.php from each register...
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 1 Mar 2019 21:20:59 +0000 (16:20 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 1 Mar 2019 21:20:59 +0000 (16:20 -0500)
This reverts commit db77ef80c666ed84a9533204b73b71cddf16e402.

controllers/admin.php
controllers/front.php
readme.txt

index 1d65a06..17e59ab 100755 (executable)
@@ -368,13 +368,8 @@ class glmMembersAdmin extends GlmPluginSupport
         // Load Smarty Template support
         $smarty = new smartyTemplateSupport();
 
-        // Add standard parameters from any registered plugin/add-on that has a standardTemplateParams.php file
-        foreach ($this->config['addOns'] as $a) {
-            $paramsScript = $a['dir'].'/setup/standardTemplateParams.php';
-            if (is_file($paramsScript)) {
-                require_once $paramsScript;
-            }
-        }
+        // Add standard template parameters
+        require GLM_MEMBERS_PLUGIN_SETUP_PATH.'/standardTemplateParams.php';
 
         // Add data from model to Smarty template
         if (is_array($results['data']) && count($results['data']) > 0) {
index 6e31620..5d6aa9c 100644 (file)
@@ -660,13 +660,8 @@ class glmMembersFront extends GlmPluginSupport
         // Load Smarty Template support
         $smarty = new smartyTemplateSupport();
 
-        // Add standard parameters from any registered plugin/add-on that has a standardTemplateParams.php file
-        foreach ($this->config['addOns'] as $a) {
-            $paramsScript = $a['dir'].'/setup/standardTemplateParams.php';
-            if (is_file($paramsScript)) {
-                require_once $paramsScript;
-            }
-        }
+        // Add standard parameters
+        require GLM_MEMBERS_PLUGIN_SETUP_PATH.'/standardTemplateParams.php';
 
         // Add data from model to Smarty template
         if (is_array($results['data']) && count($results['data']) > 0) {
index c7d0ad7..9d2cac2 100755 (executable)
@@ -66,9 +66,6 @@ There is of course much more to this.
 (none)
 
 == Changelog ==
-= (pending) =
-* Now automatically loading setup/standardTemplateParams.php from each registered plugin if the file exists
-
 = 2.11.1 - 2 =
 * Bug fixes in the smarty templates.