consistent naming of calendar modes in english; fixed routerguard to work with router.push on mode or date changes inside stpl component;

This commit is contained in:
Johann Hoffmann
2025-02-18 14:48:14 +01:00
parent e2e537b09c
commit 8e76d93a5a
5 changed files with 54 additions and 59 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ class Stundenplan extends Auth_Controller
*/
public function index($mode = 'Week', $focus_date = null, $lv_id = null)
{
// Convert string "null" to actual null values -> ci3 reroute fix
// convert string "null" to actual null values -> ci3 reroute fix
$mode = ($mode === 'null') ? 'Week' : ucfirst(strtolower($mode));
$focus_date = ($focus_date === 'null') ? date('Y-m-d') : $focus_date;
$lv_id = ($lv_id === 'null') ? null : $lv_id;