1
0
mirror of https://github.com/misterunknown/ifm.git synced 2025-08-09 09:36:29 +02:00

return a boolean value for isDocroot

This commit is contained in:
Marco Dickert
2017-08-06 23:12:21 +02:00
parent 7dda92b34f
commit 107d4deeef
3 changed files with 6 additions and 9 deletions

View File

@@ -2812,7 +2812,7 @@ function IFM( params ) {
private function getConfig() {
$ret = $this->config;
$ret['inline'] = ( $this->mode == "inline" ) ? true : false;
$ret['isDocroot'] = ( $this->getRootDir() == $this->getScriptRoot() ) ? "true" : "false";
$ret['isDocroot'] = ( $this->getRootDir() == $this->getScriptRoot() ) ? true : false;
echo $this->jsonResponse( $ret );
}
@@ -3550,9 +3550,8 @@ function IFM( params ) {
return copy( $source, $this->pathCombine( $dest, basename( $source ) ) );
chdir( $source );
foreach( glob( '*' ) as $item ) {
foreach( glob( '*' ) as $item )
$this->xcopy( $item, $dest );
}
chdir( '..' );
return true;
}

View File

@@ -2812,7 +2812,7 @@ function IFM( params ) {
private function getConfig() {
$ret = $this->config;
$ret['inline'] = ( $this->mode == "inline" ) ? true : false;
$ret['isDocroot'] = ( $this->getRootDir() == $this->getScriptRoot() ) ? "true" : "false";
$ret['isDocroot'] = ( $this->getRootDir() == $this->getScriptRoot() ) ? true : false;
echo $this->jsonResponse( $ret );
}
@@ -3550,9 +3550,8 @@ function IFM( params ) {
return copy( $source, $this->pathCombine( $dest, basename( $source ) ) );
chdir( $source );
foreach( glob( '*' ) as $item ) {
foreach( glob( '*' ) as $item )
$this->xcopy( $item, $dest );
}
chdir( '..' );
return true;
}

View File

@@ -380,7 +380,7 @@ f00bar;
private function getConfig() {
$ret = $this->config;
$ret['inline'] = ( $this->mode == "inline" ) ? true : false;
$ret['isDocroot'] = ( $this->getRootDir() == $this->getScriptRoot() ) ? "true" : "false";
$ret['isDocroot'] = ( $this->getRootDir() == $this->getScriptRoot() ) ? true : false;
echo $this->jsonResponse( $ret );
}
@@ -1118,9 +1118,8 @@ f00bar;
return copy( $source, $this->pathCombine( $dest, basename( $source ) ) );
chdir( $source );
foreach( glob( '*' ) as $item ) {
foreach( glob( '*' ) as $item )
$this->xcopy( $item, $dest );
}
chdir( '..' );
return true;
}