Skip to content
Browse files

Issue #6 fixed for PHP conn

  • Loading branch information...
1 parent d77372a commit cbb8a753230e7dc79710cd583b611ba5be75ac91 @simogeo simogeo committed Nov 21, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/jquery.filetree/connectors/jqueryFileTree.php
View
4 scripts/jquery.filetree/connectors/jqueryFileTree.php
@@ -28,8 +28,8 @@
if( file_exists($path) ) {
$files = scandir($path);
natcasesort($files);
+ echo "<ul class=\"jqueryFileTree\" style=\"display: none;\">";
if( count($files) > 2 ) { /* The 2 accounts for . and .. */
- echo "<ul class=\"jqueryFileTree\" style=\"display: none;\">";
// All dirs
foreach( $files as $file ) {
if( file_exists($path . $file) && !in_array($file, $config['unallowed_dirs']) && $file != '.' && $file != '..' && is_dir($root . $_POST['dir'] . $file) ) {
@@ -43,8 +43,8 @@
echo "<li class=\"file ext_".strtolower($ext)."\"><a href=\"#\" rel=\"" . htmlentities($_POST['dir'] . $file, ENT_COMPAT, 'UTF-8') . "\">" . htmlentities($file, ENT_COMPAT, 'UTF-8'). "</a></li>";
}
}
- echo "</ul>";
}
+ echo "</ul>";
}
}

0 comments on commit cbb8a75

Please sign in to comment.
Something went wrong with that request. Please try again.