Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorTyler Dence <tyzoid.d@gmail.com>2018-06-19 10:51:20 -0400
committerTyler Dence <tyzoid.d@gmail.com>2018-06-19 10:53:42 -0400
commit0f244f5cd391dcbf9d627f7dcb99ce54090fe858 (patch)
tree9e0b2054f2067039cfa5b3d01f9c282b7c44fd76 /packages
parent1e8cfa2306848879b4fa4b39fb60e80389d3d808 (diff)
Fix include path by generating absolute paths
Diffstat (limited to 'packages')
-rw-r--r--packages/index.php6
-rw-r--r--packages/pkginfo.php5
2 files changed, 7 insertions, 4 deletions
diff --git a/packages/index.php b/packages/index.php
index cd1413d..bb59503 100644
--- a/packages/index.php
+++ b/packages/index.php
@@ -1,7 +1,9 @@
<?php
+require "../init.php";
+
+require BASE . "/lib/mysql.php";
+require BASE . "/lib/style.php";
- include "lib/mysql.php";
- include "lib/style.php";
foreach (array("bugs","sort","del") as $expected_param)
if (! isset($_GET[$expected_param]))
diff --git a/packages/pkginfo.php b/packages/pkginfo.php
index fe1066b..e76bcec 100644
--- a/packages/pkginfo.php
+++ b/packages/pkginfo.php
@@ -1,7 +1,8 @@
<?php
+require "../init.php"
- include "lib/mysql.php";
- include "lib/style.php";
+require BASE . "/lib/mysql.php";
+require BASE . "/lib/style.php";
$json_content = json_decode(
file_get_contents(