From 4b72898b92b88d1db5ec0d2f8507011b8ad653b0 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 11 Feb 2019 13:21:55 +0100 Subject: lib/*.php: should not require_once ../init.php - else it cannot be included from the parent directory --- lib/format.php | 1 - lib/helper.php | 2 -- lib/mysql.php | 1 - lib/style.php | 1 - 4 files changed, 5 deletions(-) (limited to 'lib') diff --git a/lib/format.php b/lib/format.php index 00e8296..72cf531 100644 --- a/lib/format.php +++ b/lib/format.php @@ -4,7 +4,6 @@ if (function_exists("export_as_requested")) return; -require_once "../init.php"; include_once BASE . "/lib/http.php"; function export_as_requested($content) { diff --git a/lib/helper.php b/lib/helper.php index b9a62fb..e10f46c 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -4,8 +4,6 @@ if (function_exists("format_time_duration")) return; -require_once "../init.php"; - function format_time_duration($val) { $val = floor($val); $result = ""; diff --git a/lib/mysql.php b/lib/mysql.php index 19d0dae..c6d7fdf 100644 --- a/lib/mysql.php +++ b/lib/mysql.php @@ -4,7 +4,6 @@ if (isset($mysql)) return; -require_once "../init.php"; include_once BASE . "/lib/http.php"; include_once BASE . "/lib/mysql-joins.php"; diff --git a/lib/style.php b/lib/style.php index e8ad972..3527994 100644 --- a/lib/style.php +++ b/lib/style.php @@ -3,7 +3,6 @@ if (function_exists("print_header")) return; -require_once "../init.php"; require_once BASE . "/lib/mysql.php"; function print_header($title) { -- cgit v1.2.3-70-g09d2