Custom action : fix translation on display onSuccessMsgFormat

This commit is contained in:
Benjamin Renard 2012-03-13 10:29:31 +01:00
parent e22fbef942
commit ea5c120b75

View file

@ -44,7 +44,7 @@ if(LSsession :: startLSsession()) {
if ($config['function']($object)) {
if ($config['disableOnSuccessMsg']!=true) {
if ($config['onSuccessMsgFormat']) {
LSsession :: addInfo(getFData($config['onSuccessMsgFormat'],$objectname));
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'])));