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:
@@ -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;
|
||||
}
|
||||
|
5
ifm.php
5
ifm.php
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user