diff options
author | Christian Cleberg <hello@cleberg.net> | 2023-05-31 21:44:45 -0500 |
---|---|---|
committer | Christian Cleberg <hello@cleberg.net> | 2023-05-31 21:44:45 -0500 |
commit | 325a5499cd9cdd69c964031af9ec7bc0346efad7 (patch) | |
tree | e2fda4b4cfa63cad365bf0443804a9e732a41ccf | |
parent | ee909e98c835e24c3c826ce8a5e75561cf4928d4 (diff) | |
download | hn-325a5499cd9cdd69c964031af9ec7bc0346efad7.tar.gz hn-325a5499cd9cdd69c964031af9ec7bc0346efad7.tar.bz2 hn-325a5499cd9cdd69c964031af9ec7bc0346efad7.zip |
fix error with global vars
-rw-r--r-- | index.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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( |