From 4d291661a1112783aeffa0e5973d156ca1168746 Mon Sep 17 00:00:00 2001 From: Bruce Bannon Date: Sat, 7 Oct 2023 01:33:34 -0600 Subject: [PATCH] includes/init.php called more than once --- view_d.php | 1 - view_l.php | 1 - view_m.php | 1 - view_r.php | 1 - view_t.php | 1 - view_v.php | 1 - view_w.php | 1 - 7 files changed, 7 deletions(-) diff --git a/view_d.php b/view_d.php index c90a157c9..aa6ab4b76 100644 --- a/view_d.php +++ b/view_d.php @@ -20,7 +20,6 @@ * (except for nonuser calendars... which we allow regardless of group). */ // $start = microtime(); -require_once 'includes/init.php'; require_once 'includes/views.php'; $error = ''; diff --git a/view_l.php b/view_l.php index 253e72094..09a2e8d89 100644 --- a/view_l.php +++ b/view_l.php @@ -21,7 +21,6 @@ * groups (except for nonuser calendars... which we allow regardless of group). */ -require_once 'includes/init.php'; require_once 'includes/views.php'; view_init ( $id ); diff --git a/view_m.php b/view_m.php index fcd8959be..ff87dbc9b 100644 --- a/view_m.php +++ b/view_m.php @@ -17,7 +17,6 @@ * user_sees_only_his_groups is enabled, then we remove users not in this user's * groups (except for nonuser calendars... which we allow regardless of group). */ -require_once 'includes/init.php'; require_once 'includes/views.php'; $error = ''; diff --git a/view_r.php b/view_r.php index 3183b040f..5fbc0fef0 100644 --- a/view_r.php +++ b/view_r.php @@ -44,7 +44,6 @@ * enabled, then we remove users not in this user's groups * (except for nonuser calendars... which we allow regardless of group). */ -require_once 'includes/init.php'; require_once 'includes/views.php'; $error = ''; diff --git a/view_t.php b/view_t.php index bd4da021a..ac4c6cd49 100644 --- a/view_t.php +++ b/view_t.php @@ -19,7 +19,6 @@ * then we remove users not in this user's groups * (except for nonuser calendars... which we allow regardless of group). */ -require_once 'includes/init.php'; require_once 'includes/views.php'; $error = ''; diff --git a/view_v.php b/view_v.php index 16cc236a6..17b5bcff2 100644 --- a/view_v.php +++ b/view_v.php @@ -20,7 +20,6 @@ * user_sees_only_his_groups is enabled, then we remove users not in this user's * groups (except for nonuser calendars... which we allow regardless of group). */ -require_once 'includes/init.php'; require_once 'includes/views.php'; $DAYS_PER_TABLE = 7; diff --git a/view_w.php b/view_w.php index 3adeb5574..38f334e60 100644 --- a/view_w.php +++ b/view_w.php @@ -19,7 +19,6 @@ * then we remove users not in this user's groups * (except for nonuser calendars... which we allow regardless of group). */ -require_once 'includes/init.php'; require_once 'includes/views.php'; $error = '';