예제 #1
0
 public static function execute(ApplicationAbstract $application)
 {
     $data = array('language_id' => $_GET['id'], 'group' => $_GET['group'], 'definitions' => $_POST['def']);
     if (Languages::updateDefinition($data)) {
         Registry::get('MessageStack')->add(null, OSCOM::getDef('ms_success_action_performed'), 'success');
     } else {
         Registry::get('MessageStack')->add(null, OSCOM::getDef('ms_error_action_not_performed'), 'error');
     }
     OSCOM::redirect(OSCOM::getLink(null, null, 'id=' . $_GET['id'] . '&group=' . $_GET['group']));
 }