Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 13117

Re: Update to v2.02 error

$
0
0
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.

Viewing all articles
Browse latest Browse all 13117

Latest Images

Trending Articles