diff --git a/htdocs/cron/list.php b/htdocs/cron/list.php index 40fe27d3404..d50ff41c1f0 100644 --- a/htdocs/cron/list.php +++ b/htdocs/cron/list.php @@ -491,7 +491,7 @@ if ($num > 0) { $object->id = $obj->rowid; $object->ref = $obj->rowid; - $object->label = $obj->label; + $object->label = preg_replace('/:.*$/', '', $obj->label); $object->status = $obj->status; $object->priority = $obj->priority; $object->processing = $obj->processing; @@ -499,6 +499,10 @@ if ($num > 0) { $object->datestart = $db->jdate($obj->datestart); $object->dateend = $db->jdate($obj->dateend); $object->module_name = $obj->module_name; + $reg = array(); + if (preg_match('/:(.*)$/', $obj->label, $reg)) { + $langs->load($reg[1]); + } $datelastrun = $db->jdate($obj->datelastrun); $datelastresult = $db->jdate($obj->datelastresult); @@ -512,9 +516,9 @@ if ($num > 0) { // Label print '