mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
ea5a9f499f
|
@ -62,8 +62,13 @@ class SeedDMS_ConversionMgr {
|
|||
*/
|
||||
public function convert($file, $from, $to, $target=null, $params=array()) {
|
||||
if(isset($this->services[$from][$to])) {
|
||||
$service = end($this->services[$from][$to]);
|
||||
return $service->convert($file, $target, $params);
|
||||
$services = $this->services[$from][$to];
|
||||
for(end($services); key($services)!==null; prev($services)) {
|
||||
$service = current($services);
|
||||
$text = $service->convert($file, $target, $params);
|
||||
if($text !== false)
|
||||
return $text;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user