Fixed cdnPath being set even if config entry is blank
authorDan
Sat, 23 Aug 2008 16:02:07 -0400
changeset 702 15cd41fd8a05
parent 701 dd80cde96a6c
child 703 e492511e31ea
Fixed cdnPath being set even if config entry is blank
includes/common.php
--- a/includes/common.php	Thu Aug 21 11:24:56 2008 -0400
+++ b/includes/common.php	Sat Aug 23 16:02:07 2008 -0400
@@ -265,7 +265,12 @@
 
 // Set our CDN path
 if ( !defined('cdnPath') )
-  define('cdnPath', getConfig('cdn_path', scriptPath));
+{
+  $cdnpath = getConfig('cdn_path', scriptPath);
+  if ( empty($cdnpath) )
+    $cdnpath = scriptPath;
+  define('cdnPath', $cdnpath);
+}
 
 //
 // Low level maintenance