Project

General

Profile

Bug #2920 ยป 2920.patch

krileon, 20 October 2011 15:59

View differences:

administrator/components/com_comprofiler/imgToolbox.class.php
$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");
}
}
}
......
$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");
}
}
}
    (1-1/1)