Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-02-14 14:36:34 +0100
committerErich Eckner <git@eckner.net>2019-02-14 14:36:34 +0100
commit5a403f224741ddd159f6b89a94c35899a4e5a0c7 (patch)
treecf522e647d07c2e1994fe4d2014607ddd556ac27
parentfb4107ccf13a9f32d66069f91a24c8744ed6b391 (diff)
mirrorlist.php now in /
-rw-r--r--mirrorlist.php (renamed from mirrorlist/index.php)4
1 files changed, 2 insertions, 2 deletions
diff --git a/mirrorlist/index.php b/mirrorlist.php
index a9f0211..c9df00d 100644
--- a/mirrorlist/index.php
+++ b/mirrorlist.php
@@ -1,5 +1,5 @@
<?php
-require_once "../init.php";
+require_once "init.php";
include BASE . "/lib/mysql.php";
include BASE . "/lib/style.php";
@@ -52,7 +52,7 @@ if (array_key_exists('country', $_GET)) {
'),' .
'`mirror_statuses`.`protocol`';
- $request = '&' . preg_replace(',^.*/\?,', '', $_SERVER['REQUEST_URI']) . '&';
+ $request = '&' . preg_replace(',^.*\?,', '', $_SERVER['REQUEST_URI']) . '&';
if (array_key_exists('protocol', $_GET)) {
$filter .= ' AND `mirror_statuses`.`protocol` IN (';
foreach ($protocols as $protocol)