Sure.
I modified the core/theme.php as follows:
{{{
// replace all plugin assets to the theme, if the theme overrides
this asset
// when there are name conflicts (two plugins define the same
asset name in same folder),
// we shall rename so there is no more conflict.
$defaultThemePath = "plugins/" . $pathPluginName;
$newThemePath = "plugins/" . $this->themeName;
$overridingAsset = str_replace($defaultThemePath, $newThemePath,
$pathAsset);
// Strip trailing querystring, if any
$fileToCheck = $overridingAsset;
$posQMInFileToCheck = strpos($fileToCheck, '?');
if( $posQMInFileToCheck !== 0) {
$fileToCheck = substr($fileToCheck, 0, $posQMInFileToCheck);
}
if(file_exists($fileToCheck)) {
return str_replace($pathAsset, $overridingAsset, $source);
}
return $source;
}}}
Note that I filed 4438 before reading that you filed 4437.
4438 has the same code in the bug report.
Thank you.
I modified the core/theme.php as follows:
{{{
// replace all plugin assets to the theme, if the theme overrides
this asset
// when there are name conflicts (two plugins define the same
asset name in same folder),
// we shall rename so there is no more conflict.
$defaultThemePath = "plugins/" . $pathPluginName;
$newThemePath = "plugins/" . $this->themeName;
$overridingAsset = str_replace($defaultThemePath, $newThemePath,
$pathAsset);
// Strip trailing querystring, if any
$fileToCheck = $overridingAsset;
$posQMInFileToCheck = strpos($fileToCheck, '?');
if( $posQMInFileToCheck !== 0) {
$fileToCheck = substr($fileToCheck, 0, $posQMInFileToCheck);
}
if(file_exists($fileToCheck)) {
return str_replace($pathAsset, $overridingAsset, $source);
}
return $source;
}}}
Note that I filed 4438 before reading that you filed 4437.
4438 has the same code in the bug report.
Thank you.