aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2023-05-31 21:44:45 -0500
committerChristian Cleberg <hello@cleberg.net>2023-05-31 21:44:45 -0500
commit325a5499cd9cdd69c964031af9ec7bc0346efad7 (patch)
treee2fda4b4cfa63cad365bf0443804a9e732a41ccf
parentee909e98c835e24c3c826ce8a5e75561cf4928d4 (diff)
downloadhn-325a5499cd9cdd69c964031af9ec7bc0346efad7.tar.gz
hn-325a5499cd9cdd69c964031af9ec7bc0346efad7.tar.bz2
hn-325a5499cd9cdd69c964031af9ec7bc0346efad7.zip
fix error with global vars
-rw-r--r--index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index 28a2cfe..c9f9a7e 100644
--- a/index.php
+++ b/index.php
@@ -1,8 +1,8 @@
<?php
-global $full_domain = 'https://hn.cleberg.net',
- $path = ltrim($_SERVER['REQUEST_URI'], '/'),
- $elements = explode('/', $path);
+$full_domain = 'https://hn.cleberg.net';
+$path = ltrim($_SERVER['REQUEST_URI'], '/');
+$elements = explode('/', $path);
if (empty($elements[0])) {
$html_output = get_stories(