StudiengangEP phrasen

This commit is contained in:
chfhtw
2026-09-14 09:31:13 +02:00
parent b7c0a9aa49
commit 88715e9dd2
2 changed files with 22 additions and 1 deletions
@@ -63,9 +63,10 @@ class StudiengangEP extends FHCAPI_Controller
*/
public function getAllowed()
{
$this->loadPhrases([ 'global' ]);
$this->load->library('form_validation');
$this->form_validation->set_rules('permissions[]', 'Permissions', 'required');
$this->form_validation->set_rules('permissions[]', $this->p->t('global', 'permissions'), 'required');
if (!$this->form_validation->run())
$this->terminateWithValidationErrors($this->form_validation->error_array());
+20
View File
@@ -1353,6 +1353,26 @@ $phrases = array(
)
)
),
array(
'app' => 'core',
'category' => 'global',
'phrase' => 'permissions',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Rechte',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Permissions',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'global',