Skip to content

Commit

Permalink
backend: Extend a74f303
Browse files Browse the repository at this point in the history
  • Loading branch information
ophian committed Nov 13, 2023
1 parent d71802c commit 5055b12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions templates/default/admin/images.inc.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@
<label for="dircreate_parent">{$CONST.PARENT_DIRECTORY}</label>
<select id="dircreate_parent" name="serendipity[parent]">
<option value="">{$CONST.BASE_DIRECTORY}</option>
{foreach $folders AS $folder}
<option{if $folder.relpath == $get.only_path OR $folder.relpath == $dir} selected{/if} value="{$folder.relpath}">{'&nbsp;'|str_repeat:($folder.depth*2)}{$folder.name}</option>{* * *}
{/foreach}
{foreach $folders AS $folder}
<option{if $folder.relpath == $get.only_path OR $folder.relpath == $dir} selected{/if} value="{$folder.relpath}">{'&nbsp;'|str_repeat:($folder.depth*2)}{$folder.name}</option>
{/foreach}
</select>
</div>
{serendipity_hookPlugin hookAll=true hook="backend_directory_createoptions" addData=$folders}
Expand Down
2 changes: 1 addition & 1 deletion templates/default/admin/media_pane.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<option value=""></option>
<option value="uploadRoot">{$CONST.BASE_DIRECTORY}</option>
{foreach $media.paths AS $folderFoot}
<option value="{$folderFoot.relpath}">{'&nbsp;'|str_repeat:($folderFoot.depth*2)}{$folderFoot.name}</option>{* * *}
<option value="{$folderFoot.relpath}">{'&nbsp;'|str_repeat:($folderFoot.depth*2)}{$folderFoot.name}</option>
{/foreach}
</select>
</div>
Expand Down

0 comments on commit 5055b12

Please sign in to comment.