diff -r 449fdd113eb0 -r 704ba4b9819b includes/template.php
--- a/includes/template.php Sun Dec 27 02:27:35 2009 -0500
+++ b/includes/template.php Sun Dec 27 02:28:21 2009 -0500
@@ -514,13 +514,16 @@
$ash = '';
}
+ // Append the Enano version to URLs to break the cache on upgrades
+ $enano_version = enano_version();
+
// Set up javascript includes
// these depend heavily on whether we have a CDN to work with or not
if ( getConfig('cdn_path') )
{
// we're on a CDN, point to static includes
// CLI javascript compression script: includes/clientside/jscompress.php
- $js_head = '';
+ $js_head = '';
if ( !empty($this->js_preload) )
{
@@ -536,12 +539,12 @@
foreach ( $this->js_preload as $script )
{
- $js_head .= "\n ";
+ $js_head .= "\n ";
// special case for l10n: also load strings
if ( $script == 'l10n.js' )
{
global $lang;
- $js_head .= "\n ";
+ $js_head .= "\n ";
}
$loadlines[] = "loaded_components['$script'] = true;";
}
@@ -578,7 +581,7 @@
// point to jsres compressor
$js_head .= <<
-
+
JSEOF;
$js_foot = '';
@@ -593,16 +596,16 @@
{
// special case for l10n: also load strings
global $lang;
- $js_foot .= "\n ";
+ $js_foot .= "\n ";
}
$scripts = implode(',', $this->js_preload);
- $js_foot .= "\n ";
+ $js_foot .= "\n ";
}
$js_foot .= <<
-
+