ZF-7980: Zend_View::getScripthPath will not return paths to directories
Description
If is
$view->getScriptPath($param) leads on directory. Method returns path to directory. ANd directory is not script and it could be easily improved.
In protected function _script($name) { ... foreach ($this->_path['script'] as $dir) { if (is_readable($dir . $name) && !is_dir($dir . $name)) { return $dir . $name; } } ...
will resolve the problem.
Vebloud
Comments
Posted by Rob Allen (rob) on 2012-11-20T20:53:25.000+0000
Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".
Feel free to re-open and provide a patch if you want to fix this issue.