includes/template.php
changeset 1048 7b9132bfb5ce
parent 1047 d996bb6d6e74
child 1053 bdbb49cf6f1b
--- a/includes/template.php	Wed Jul 08 22:44:46 2009 -0400
+++ b/includes/template.php	Wed Jul 08 23:37:01 2009 -0400
@@ -549,7 +549,7 @@
     {
       // we're on a CDN, point to static includes
       // CLI javascript compression script: includes/clientside/jscompress.php
-      $js_head = '';
+      $js_head = '<script type="text/javascript" src="' . cdnPath . '/includes/clientside/static/enano-lib-basic.js"></script>';
       
       if ( !empty($this->js_preload) )
       {
@@ -560,6 +560,7 @@
         {
           $script = preg_replace('/\.js$/', '', $script) . '.js';
         }
+        unset($script);
         $this->js_preload = array_unique($this->js_preload);
         
         foreach ( $this->js_preload as $script )
@@ -582,8 +583,6 @@
     </script>";
       }
       
-      $js_head .= '<script type="text/javascript" src="' . cdnPath . '/includes/clientside/static/enano-lib-basic.js"></script>';
-      
       $js_foot = <<<JSEOF
     <script type="text/javascript">
       // This initializes the Javascript runtime when the DOM is ready - not when the page is