smarty 开启use_sub_dirs的错误修复

通过跟踪代码修改 internals/core.create_dir_structure.php 对照修改

 

<textarea cols="50" rows="15" name="code" class="php:nocontrols"> //fix my template dir structure by zero array_splice($_dir_parts,0,count(explode(DIRECTORY_SEPARATOR,realpath($smarty-&gt;template_dir)))-1,$smarty-&gt;template_dir); $_new_dir=''; /* all paths use "/" only from here */ foreach ($_dir_parts as $_dir_part) {</textarea>

你可能感兴趣的:(smarty 开启use_sub_dirs的错误修复)