Commit f49e8f36 by Seldaek

Fixed a 1.0.0beta regression that messed with custom plugin directories on Windows

git-svn-id: svn://dwoo.org/dwoo/trunk@180 0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent 39e2cef8
[2008--] 1.0.0
* Lines containing only comments and whitespace are now entirely removed
* Adapters: Zend: Added parameters to provide a custom engine (extends Dwoo)
or a custom data class (extends Dwoo_Data) - thanks to Maxime Mérian for
the patch
* Fixed a 1.0.0beta regression that messed with custom plugin directories
on Windows
[2008-09-08] 1.0.0beta
! Important note : Dwoo.php should not be included directly anymore, please
......
......@@ -139,7 +139,7 @@ class Dwoo_Loader implements Dwoo_ILoader
if (!$pluginDir) {
throw new Dwoo_Exception('Plugin directory does not exist or can not be read : '.$pluginDirectory);
}
$cacheFile = $this->cacheDir . 'classpath-'.substr(strtr($pluginDir, '/\\', '--'), strlen($pluginDir) > 80 ? -80 : 0).'.d'.Dwoo::RELEASE_TAG.'.php';
$cacheFile = $this->cacheDir . 'classpath-'.substr(strtr($pluginDir, '/\\:'.PATH_SEPARATOR, '----'), strlen($pluginDir) > 80 ? -80 : 0).'.d'.Dwoo::RELEASE_TAG.'.php';
$this->paths[$pluginDir] = $cacheFile;
$foo = @file_get_contents($cacheFile);
if ($foo) {
......
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