# HG changeset patch # User Dan # Date 1219521727 14400 # Node ID 15cd41fd8a05686a6e0d0dfbad3281200be7e522 # Parent dd80cde96a6c3d61cce769b35a64ca6f47679d4a Fixed cdnPath being set even if config entry is blank diff -r dd80cde96a6c -r 15cd41fd8a05 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