Commit 325a5499cd

325a5499cd9cdd69c964031af9ec7bc0346efad7

parent: ee909e98c8

Unsigned

cmc <hello@cleberg.net> · 2023-06-01 02:44 UTC

fix error with global vars

Layout: unified · split

index.php +3 −3
@@ -1,8 +1,8 @@
11<?php
22
3global $full_domain = 'https://hn.cleberg.net',
4 $path = ltrim($_SERVER['REQUEST_URI'], '/'),
5 $elements = explode('/', $path);
3$full_domain = 'https://hn.cleberg.net';
4$path = ltrim($_SERVER['REQUEST_URI'], '/');
5$elements = explode('/', $path);
66
77if (empty($elements[0])) {
88 $html_output = get_stories(