mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-12 01:54:57 +00:00
call hook for setting msg of timeline item
This commit is contained in:
parent
1d626fc7e5
commit
c17d7246ad
|
@ -1196,7 +1196,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
$msg = getMLText('timeline_'.$item['type'], array('document'=>$item['document']->getName(), 'version'=> $item['version'], 'status'=> getOverallStatusText($item['status'])));
|
$msg = getMLText('timeline_'.$item['type'], array('document'=>$item['document']->getName(), 'version'=> $item['version'], 'status'=> getOverallStatusText($item['status'])));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$msg = '???';
|
$msg = $this->callHook('getTimelineMsg', $document, $item);
|
||||||
|
if(!is_string($msg))
|
||||||
|
$msg = '???';
|
||||||
}
|
}
|
||||||
$item['msg'] = $msg;
|
$item['msg'] = $msg;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user