@@ -364,7 +364,7 @@ class Dwoo_Compiler implements Dwoo_ICompiler
$this->processors['post'][]=$callback;
}
}
/**
* removes a postprocessor from the compiler
*
...
...
@@ -386,10 +386,10 @@ class Dwoo_Compiler implements Dwoo_ICompiler
}
}
}
/**
* internal function to autoload processors at runtime if required
*
*
* @param string $class the class/function name
* @param string $name the plugin name (without Dwoo_Plugin_ prefix)
*/
...
...
@@ -402,15 +402,15 @@ class Dwoo_Compiler implements Dwoo_ICompiler
thrownewDwoo_Exception('Processor '.$name.' could not be found in your plugin directories, please ensure it is in a file named '.$name.'.php in the plugin directory');
}
}
if(class_exists($class,false)){
returnarray(new$class($this),'process');
}
}
if(function_exists($class)){
return$class;
}
}
thrownewDwoo_Exception('Wrong processor name, when using autoload the processor must be in one of your plugin dir as "name.php" containg a class or function named "Dwoo_Processor_name"');
}
...
...
@@ -712,19 +712,19 @@ class Dwoo_Compiler implements Dwoo_ICompiler