aboutsummaryrefslogtreecommitdiff
path: root/htdocs/js.php
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs/js.php')
-rw-r--r--htdocs/js.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/htdocs/js.php b/htdocs/js.php
index c9939fe..57d847f 100644
--- a/htdocs/js.php
+++ b/htdocs/js.php
@@ -1,11 +1,10 @@
<?php
require __DIR__.'/../init.php';
-global $config;
$name = $_REQUEST['name'] ?? '';
-if (!$config['is_dev'] || !$name || !is_dir($path = ROOT.'/htdocs/js/'.$name)) {
+if (!is_dev() || !$name || !is_dir($path = APP_ROOT.'/htdocs/js/'.$name)) {
http_response_code(403);
exit;
}