ruflin/xBoilerplate — pull request #5 by igama (2012-03-27 14:41:04+00:00)
Title: Fix to get correct path of JS and CSS with CDN Versions

If a version is set in config.php css and js files will not load. The following code will clean the version information from the url.

$version = $this->getConfig()->version;
$cssFileClean = str_replace($version + DIRECTORY_SEPARATOR,'',$cssFile);
$file = 'css/' . $cssFileClean;

$version = $this->getConfig()->version;
$jsFileClean = str_replace($version + DIRECTORY_SEPARATOR,'',$jsFile);
$file = 'js/' . $jsFileClean;