mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 08:55:54 +00:00
do not pop service from services in convert(), use end()
This commit is contained in:
parent
e9ae9cce34
commit
d422927f87
|
@ -62,7 +62,7 @@ class SeedDMS_ConversionMgr {
|
||||||
*/
|
*/
|
||||||
public function convert($file, $from, $to, $target=null, $params=array()) {
|
public function convert($file, $from, $to, $target=null, $params=array()) {
|
||||||
if(isset($this->services[$from][$to])) {
|
if(isset($this->services[$from][$to])) {
|
||||||
$service = array_pop($this->services[$from][$to]);
|
$service = end($this->services[$from][$to]);
|
||||||
return $service->convert($file, $target, $params);
|
return $service->convert($file, $target, $params);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user