Skip to content

Commit 913f00c

Browse files
committed
Hide index from themes
Also refactor / clean up conditional This snuck in when I dropped index.html files for index.php files.
1 parent dc8cc20 commit 913f00c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

edit.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,7 @@ function do_submit_data ()
242242
{
243243
while (($file = readdir($dh)) == true)
244244
{
245-
if (($file == '.') || ($file == '..') || ($file == '.htaccess') || ($file == 'index.html') || ($file == '.svn'));
246-
else
245+
if (!in_array($file, ['.', '..', '.htaccess', 'index.php']))
247246
{
248247
$output .= '
249248
<option value="'.$file.'"';

0 commit comments

Comments
 (0)