aboutsummaryrefslogtreecommitdiff
path: root/app/views/admin
diff options
context:
space:
mode:
authorDavid Siegfried <david.siegfried@uni-vechta.de>2024-12-04 11:01:16 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2024-12-04 11:01:16 +0000
commite7f6d667e1b428bf452f34b96336552aaa7df4dc (patch)
tree58ad79c8243e2de1cf75ad494d7e86b5d56ea2a5 /app/views/admin
parent5e01759061ca0d8a2d95d3d974bb80472d529198 (diff)
Revert "Resolve "Sprachauswahl für Originalfassung der Modul(teil)-Deskriptoren""
Merge request studip/studip!3715
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/datafields/edit.php6
-rw-r--r--app/views/admin/datafields/index.php2
-rw-r--r--app/views/admin/datafields/new.php4
3 files changed, 6 insertions, 6 deletions
diff --git a/app/views/admin/datafields/edit.php b/app/views/admin/datafields/edit.php
index 49de452..46b7aa1 100644
--- a/app/views/admin/datafields/edit.php
+++ b/app/views/admin/datafields/edit.php
@@ -71,7 +71,7 @@ use Studip\Button, Studip\LinkButton;
<select multiple name="object_class[]" id="object_class" required>
<option value="NULL" <? if ($item->object_class === null) echo 'selected'; ?>><?= _('alle (mehrsprachige Eingabe bei Feldtyp textline, textarea, textmarkup)') ?></option>
- <? foreach (Config::get()->CONTENT_LANGUAGES as $key => $value) : ?>
+ <? foreach ((array) $GLOBALS['MVV_MODUL_DESKRIPTOR']['SPRACHE']['values'] as $key => $value) : ?>
<option value="<?= htmlReady($key) ?>" <? if (mb_strpos($item->object_class, $key) !== false) echo 'selected'; ?>>
<?= htmlReady($value['name']) ?>
</option>
@@ -82,7 +82,7 @@ use Studip\Button, Studip\LinkButton;
<select multiple name="object_class[]" id="object_class" required>
<option value="NULL" <? if ($item->object_class === null) echo 'selected'; ?>><?= _('alle (mehrsprachige Eingabe)') ?></option>
- <? foreach (Config::get()->CONTENT_LANGUAGES as $key => $value) : ?>
+ <? foreach ((array) $GLOBALS['MVV_MODULTEIL_DESKRIPTOR']['SPRACHE']['values'] as $key => $value) : ?>
<option value="<?= htmlReady($key) ?>" <? if (mb_strpos($item->object_class, $key) !== false) echo 'selected'; ?>>
<?= htmlReady($value['name']) ?>
</option>
@@ -90,7 +90,7 @@ use Studip\Button, Studip\LinkButton;
</select>
<? elseif ($item->object_type === 'studycourse'): ?>
<?= _('Typ/Abschnitt') ?>
-
+
<select name="object_class" required>
<option value="all_settings"<?= mb_strpos($item->object_class, 'all_settings') !== false ? ' selected' : '' ?>><?= _('alle (Abschnitt "Einstellungen")') ?></option>
<option value="all_info"<?= mb_strpos($item->object_class, 'all_info') !== false ? ' selected' : '' ?>><?= _('alle (Abschnitt "Inhalte und Informationen")') ?></option>
diff --git a/app/views/admin/datafields/index.php b/app/views/admin/datafields/index.php
index de4b512..e62b8d6 100644
--- a/app/views/admin/datafields/index.php
+++ b/app/views/admin/datafields/index.php
@@ -108,7 +108,7 @@
<?= $val->object_class !== null ? htmlReady($GLOBALS['INST_TYPE'][$val->object_class]['name']) : _('alle')?>
<? elseif ($key === 'moduldeskriptor' || $key === 'modulteildeskriptor') : ?>
<?= $val->object_class !== null ? htmlReady(implode(', ', array_map(function ($class) {
- return Config::get()->CONTENT_LANGUAGES[$class]['name'];
+ return $GLOBALS['MVV_MODULTEIL_DESKRIPTOR']['SPRACHE']['values'][$class]['name'];
}, explode(',', $val->object_class)))) : _('alle')?>
<? elseif ($key === 'studycourse'): ?>
<? $object_classes =
diff --git a/app/views/admin/datafields/new.php b/app/views/admin/datafields/new.php
index 3b99d2d..e64293f 100644
--- a/app/views/admin/datafields/new.php
+++ b/app/views/admin/datafields/new.php
@@ -72,13 +72,13 @@ use Studip\Button, Studip\LinkButton;
<? elseif ($object_typ === 'moduldeskriptor') : ?>
<select multiple name="object_class[]" required>
<option value="NULL" selected><?= _('alle (mehrsprachige Eingabe bei Feldtyp textline, textarea, textmarkup)') ?></option>
- <? foreach (Config::get()->CONTENT_LANGUAGES as $key => $value) : ?>
+ <? foreach ((array) $GLOBALS['MVV_MODUL_DESKRIPTOR']['SPRACHE']['values'] as $key => $value) : ?>
<option value="<?= htmlReady($key) ?>"><?= htmlReady($value['name']) ?></option>
<? endforeach; ?>
<? elseif ($object_typ === 'modulteildeskriptor') : ?>
<select multiple name="object_class[]" required>
<option value="NULL" selected><?= _('alle (mehrsprachige Eingabe bei Feldtyp textline, textarea, textmarkup)') ?></option>
- <? foreach (Config::get()->CONTENT_LANGUAGES as $key => $value) : ?>
+ <? foreach ((array) $GLOBALS['MVV_MODULTEIL_DESKRIPTOR']['SPRACHE']['values'] as $key => $value) : ?>
<option value="<?= htmlReady($key) ?>"><?= htmlReady($value['name']) ?></option>
<? endforeach; ?>
<? elseif ($object_typ === 'studycourse') : ?>