Custom action : Fixed display of the custom onSuccess message

This commit is contained in:
Benjamin Renard 2011-04-06 15:55:45 +02:00
parent 22b9eca793
commit 15d93a94ec

View file

@ -43,7 +43,7 @@ if(LSsession :: startLSsession()) {
$GLOBALS['Smarty'] -> assign('pagetitle',$title.' : '.$objectname);
if ($config['function']($object)) {
if ($config['onSuccessMsgFormat']) {
LSsession :: addInfo(getFData($config['onSuccessMsgFormat'],$objectname));
}
else {
LSsession :: addInfo(getFData(_('The custom action %{customAction} have been successfully execute on %{objectname}.'),array('objectname' => $objectname,'customAction' => $_GET['customAction'])));