Commit d86c69ea authored by mikeytown2's avatar mikeytown2

#940554 by joelstein: fix css files that have multiple periods in the filename.

parent 26b95c8b
......@@ -4613,11 +4613,13 @@ function _boost_change_extension($old, $new) {
* filename
*/
function _boost_kill_file_extension($filename) {
$basename = basename($filename);
$basename = substr($basename, 0, strrpos($basename, '.'));
if (count(explode('/', $filename)) > 1 ) {
return dirname($filename) . '/' . array_shift(explode('.', basename($filename)));
return dirname($filename) . '/' . $basename;
}
else {
return array_shift(explode('.', basename($filename)));
return $basename;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment