Skip to content

Commit

Permalink
minor closure fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre committed Jul 12, 2011
1 parent 0e28897 commit d6e5a3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
$CFG->userid = 0; // userid of daemon user
$CFG->groupid = 0; // groupid of daemon user
$CFG->listen_addr = "0.0.0.0"; // IP address where nanoFTPd should listen
$CFG->listen_port = 2121; // port where nanoFTPd should listen
$CFG->listen_port = 21; // port where nanoFTPd should listen
$CFG->low_port = 15000; // lowest PASV port
$CFG->high_port = 25000; // highest PASV port
$CFG->idle_time = 300; // close conn after this amount of seconds when inactive
Expand Down
3 changes: 2 additions & 1 deletion modules/Io/MogileFs.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,12 @@ public function pwd() {
public function ls($dir) {
if ($this->cwd === '/') {
return $this->listMogileClasses();
} else
} else {
$path = ltrim($this->cwd, '/');
if ($this->cfg->mogilefs->searchlist)
$path .= '/'.$dir;
return $this->listMogileFiles($path, $this->cfg->mogilefs->listlimit);
}
}

public function rm($filename) {
Expand Down

0 comments on commit d6e5a3c

Please sign in to comment.