[geeklog-cvs] geeklog: Plugins can now set $_SCRIPTS in plugin_getFooter funct...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Tue Aug 30 10:02:38 EDT 2011


changeset 8394:8bced334b05b
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/8bced334b05b
user: Tom <websitemaster at cogeco.net>
date: Tue Aug 30 10:01:46 2011 -0400
description:
Plugins can now set $_SCRIPTS in plugin_getFooter function (bug #0001383)

diffstat:

 public_html/lib-common.php |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 1d708070aafc -r 8bced334b05b public_html/lib-common.php
--- a/public_html/lib-common.php	Sun Aug 28 17:05:27 2011 +0200
+++ b/public_html/lib-common.php	Tue Aug 30 10:01:46 2011 -0400
@@ -1508,11 +1508,14 @@
     // Call to plugins to set template variables in the footer
     PLG_templateSetVars( 'footer', $footer );
 
+    // Call any plugin that may want to include extra JavaScript functions
+    $plugin_footercode = PLG_getFooterCode();
+ 
     // Retrieve any JavaScript libraries, variables and functions
     $footercode = $_SCRIPTS->getFooter();
-    
-    // Call any plugin that may want to include extra JavaScript functions
-    $footercode .= PLG_getFooterCode();
+ 
+    // $_SCRIPTS code should be placed before plugin_footer_code but plugin_footer_code should still be allowed to set $_SCRIPTS
+    $footercode .= $plugin_footercode;
     
     $footer->set_var('plg_footercode', $footercode);
 



More information about the geeklog-cvs mailing list