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 @@
1<?php 1<?php
2 2
3global $full_domain = 'https://hn.cleberg.net', 3$full_domain = 'https://hn.cleberg.net';
4 $path = ltrim($_SERVER['REQUEST_URI'], '/'), 4$path = ltrim($_SERVER['REQUEST_URI'], '/');
5 $elements = explode('/', $path); 5$elements = explode('/', $path);
6 6
7if (empty($elements[0])) { 7if (empty($elements[0])) {
8 $html_output = get_stories( 8 $html_output = get_stories(