summaryrefslogtreecommitdiff
path: root/includes/maintenance/deleteUnusedAssets.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/maintenance/deleteUnusedAssets.php')
-rw-r--r--includes/maintenance/deleteUnusedAssets.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/maintenance/deleteUnusedAssets.php b/includes/maintenance/deleteUnusedAssets.php
index bd7cd38..0c195a2 100644
--- a/includes/maintenance/deleteUnusedAssets.php
+++ b/includes/maintenance/deleteUnusedAssets.php
@@ -1,7 +1,7 @@
<?php
global $action;
-if (!isset($_SERVER['DOCUMENT_ROOT'])) $_SERVER['DOCUMENT_ROOT'] = "../..";
+if (!isset($_SERVER['DOCUMENT_ROOT']) || $_SERVER['DOCUMENT_ROOT'] === "") $_SERVER['DOCUMENT_ROOT'] = "../..";
if (!isset($action)) $action = "list";
if (isset($_SERVER["argv"][1])) {
@@ -66,4 +66,4 @@ foreach (["heads", "bodies", "banners", "avatars"] as $t) {
}
}
-echo($count . " file(s), leaving " . $left . " file(s), action: " . $action . "\n"); \ No newline at end of file
+echo($count . " file(s), leaving " . $left . " file(s), action: " . $action . "\n");