summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)