summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-02-11 13:21:55 +0100
committerErich Eckner <git@eckner.net>2019-02-11 13:21:55 +0100
commit4b72898b92b88d1db5ec0d2f8507011b8ad653b0 (patch)
tree0c452d57e6f84248375a0d910799f04a2b74ab77
parent94c64f86b16164927d662ebc832852d539c746cf (diff)
downloadarchweb32-4b72898b92b88d1db5ec0d2f8507011b8ad653b0.tar.xz
lib/*.php: should not require_once ../init.php - else it cannot be included from the parent directory
-rw-r--r--lib/format.php1
-rw-r--r--lib/helper.php2
-rw-r--r--lib/mysql.php1
-rw-r--r--lib/style.php1
4 files changed, 0 insertions, 5 deletions
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) {