Skip to content

Commit

Permalink
fix wrong loop ending end
Browse files Browse the repository at this point in the history
and reported a bug in upcoming smarty 3.1.28-dev smarty-php/smarty#90

References #364
  • Loading branch information
ophian committed Sep 19, 2015
1 parent 44d0be4 commit 8ac718a
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions templates/2k11/admin/images.inc.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -185,19 +185,25 @@
<ul id="serendipity_image_folders" class="option_list">
{foreach $folders as $folder}
{if ! $folder@first}
{if $folder.depth > $priorDepth}
<ul>
{if ($folder.depth > $priorDepth)}

<ul>
{/if}

{if $folder.depth < $priorDepth}
</li>
{for $i=$folder.depth+1 to $priorDepth}
</ul></li>
{/for}

</li>

{for $i=($folder.depth+1) to $priorDepth}

</ul>
</li>
{/for}
{/if}

{if $folder.depth == $priorDepth}
</li>
{if ($folder.depth == $priorDepth)}

</li>
{/if}
{/if}

Expand All @@ -214,10 +220,16 @@
</ul>
</div>
{/foreach}

</li>
{for $i=1 to $priorDepth}
</ul></li>
{if $i != $priorDepth}

</ul>
</li>
{/if}
{/for}

</ul>

<a class="button_link" href="?serendipity[adminModule]=images&amp;serendipity[adminAction]=directoryCreate">{$CONST.CREATE_NEW_DIRECTORY}</a>
Expand Down

0 comments on commit 8ac718a

Please sign in to comment.