parses the links in the moodle addon dynamically, so that other addons can easily override the phrase used for the links

This commit is contained in:
SimonGschnell
2024-07-18 14:03:15 +02:00
parent da8bb697df
commit ddd4d5bafe
@@ -379,6 +379,7 @@ class LvMenu extends FHCAPI_Controller
'name'=>$p->t('lehre/gesamtnote'),
'c4_icon'=> base_url('skin/images/button_endnote.png'),
'c4_link'=> base_url('cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php?lvid='.urlencode($lvid).'&stsem='.urlencode($angezeigtes_stsem))
//'c4_link'=> base_url('benotungstool/lvgesamtnoteverwalten.php?lvid='.urlencode($lvid).'&stsem='.urlencode($angezeigtes_stsem))
);
}
else
@@ -388,8 +389,8 @@ class LvMenu extends FHCAPI_Controller
'id'=>'core_menu_gesamtnote',
'position'=>'80',
'name'=>$p->t('lehre/gesamtnote'),
'c4_icon'=>'skin/images/button_endnote.png',
'c4_link'=>'',
'c4_icon'=>base_url('skin/images/button_endnote.png'),
'c4_link'=>'#',
'c4_linkList'=>[[$p->t('lehre/noteneingabedeaktiviert'),'#']],
);
}