Commit 67399f87 authored by Robert Lyon's avatar Robert Lyon
Browse files

Stop the dwoo loader error (Bug #1193177)

The fix for this exists in Dwoo 1.2 so backporting it to older branches

Change-Id: Idafa654ea5e71118d8fdd1512e9a32cf1f4c39cd
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent 71104ae2
......@@ -100,7 +100,9 @@ class Dwoo_Loader implements Dwoo_ILoader
public function loadPlugin($class, $forceRehash = true)
// a new class was added or the include failed so we rebuild the cache
if (!isset($this->classPath[$class]) || !(include $this->classPath[$class])) {
if (!isset($this->classPath[$class]) ||
!is_readable($this->classPath[$class]) ||
!(include $this->classPath[$class])) {
if ($forceRehash) {
$this->rebuildClassPathCache($this->corePluginDir, $this->cacheDir . 'classpath.cache.d'.Dwoo::RELEASE_TAG.'.php');
foreach ($this->paths as $path=>$file) {
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