From ddd4d5bafeee74718b2362f4333a824216771936 Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Thu, 18 Jul 2024 14:03:15 +0200 Subject: [PATCH] parses the links in the moodle addon dynamically, so that other addons can easily override the phrase used for the links --- application/controllers/api/frontend/v1/LvMenu.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/controllers/api/frontend/v1/LvMenu.php b/application/controllers/api/frontend/v1/LvMenu.php index 67adaf96c..08d44821e 100644 --- a/application/controllers/api/frontend/v1/LvMenu.php +++ b/application/controllers/api/frontend/v1/LvMenu.php @@ -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'),'#']], ); }