From 107d4deeef53e300f5082cb3a5caff9b9d419942 Mon Sep 17 00:00:00 2001 From: Marco Dickert Date: Sun, 6 Aug 2017 23:12:21 +0200 Subject: [PATCH] return a boolean value for isDocroot --- build/libifm.php | 5 ++--- ifm.php | 5 ++--- src/main.php | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/build/libifm.php b/build/libifm.php index d530080..4cb492f 100644 --- a/build/libifm.php +++ b/build/libifm.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; } diff --git a/ifm.php b/ifm.php index d2ad6c0..09a841d 100644 --- a/ifm.php +++ b/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; } diff --git a/src/main.php b/src/main.php index 2ad563d..311449f 100644 --- a/src/main.php +++ b/src/main.php @@ -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; }