# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- dministrator/components/com_comprofiler/imgToolbox.class.php +++ administrator/components/com_comprofiler/imgToolbox.class.php @@ -107,9 +107,12 @@ $this->_IM_path = $this->autodetectExec( 'convert' ); }else{ if($this->_IM_path){ - if(!is_dir($this->_IM_path)){ + if(function_exists( 'is_executable' )&&(!@is_executable( $this->_IM_path . 'convert' ))){ $error=1; $errorMSG = CBTxt::T('Error: your ImageMagick path is not correct! Please (re)specify it in the Admin-system under "Settings"'); + } elseif (!function_exists( 'is_executable' )) { + $error=1; + $errorMSG = CBTxt::T("Error: Unable to execute is_executable function"); } } } @@ -120,9 +123,12 @@ $this->_NETPBM_path = $this->autodetectExec( 'jpegtopnm' ); }else{ if($this->_NETPBM_path){ - if(!is_dir($this->_NETPBM_path)){ + if(function_exists( 'is_executable' )&&(!@is_executable( $this->_NETPBM_path . 'jpegtopnm' ))){ $error=1; $errorMSG = CBTxt::T('Error: your NetPBM path is not correct! Please (re)specify it in the Admin-system under "Settings"'); + } elseif (!function_exists( 'is_executable' )) { + $error=1; + $errorMSG = CBTxt::T("Error: Unable to execute is_executable function"); } } }