Short description
SVN Version 361 worked as expected. Version 362 breaks.
Environment
PHP 5.2.6, Debian Lenny
Steps to reproduce
I have three template files, which are an inheritance chain. I use the grandchild "index.tpl", which {extends '../designArea.tpl'}, which {extends 'design.tpl'}
Expected behavior
Template should be shown.
Actual behavior
Exception thrown:
exception 'Dwoo_Compilation_Exception' with message 'Compilation error at line 1 in "file:/XXXX/index.tpl" : Extends : Resource "file:designArea.tpl" not found.' in /PATH/dwoo/lib/plugins/builtin/functions/extends.php:65 Stack trace: #0 [internal function]: Dwoo_Plugin_extends::compile(Object(Dwoo_Compiler), ''designArea...') #1 /PATH/dwoo/lib/Dwoo/Compiler.php(1855): call_user_func_array(Array, Array) #2 /PATH/dwoo/lib/Dwoo/Compiler.php(1365): Dwoo_Compiler->parseFunction('{do extendsChec...', 129, 1765, false, 'root', 158) #3 /PATH/dwoo/lib/Dwoo/Compiler.php(805): Dwoo_Compiler->parse('{do extendsChec...', 129, NULL, false, 'root', 158) #4 /PATH/dwoo/lib/Dwoo/Template/String.php(369): Dwoo_Compiler->compile(Object(Dwoo), Object(Dwoo_Template_File)) #5 /PATH/dwoo/lib/Dwoo/Core.php(370): Dwoo_Template_String->getCompiledTemplate(Object(Dwoo), NULL) #6 /PATH/dwoo/lib/Dwoo/Core.php(299): Dwoo_Core->get(Object(Dwoo_Template_File), Object(Dwoo_Data), NULL, true) #7 /PATH/MyScript.php(41): Dwoo_Core->output(Object(Dwoo_Template_File), Object(Dwoo_Data))
Jordi Boggiano at Wednesday 1 September 2010 15:38:37 UTC
Sorry about that, my "fix" from this morning created a regression, and for once I forgot to run the tests :/
It's now fixed on github and will be replicated in svn trunk within 30mins.
Sven Rautenberg at Wednesday 1 September 2010 16:03:11 UTC
Your instant response is very much welcome, once again. :)