added URI fallback. This enables pictshare to be run directly from "php -S localhost:8000"

This commit is contained in:
Chris
2020-06-06 11:52:34 +02:00
parent ceffa04b6e
commit dce00906ec

View File

@@ -18,4 +18,6 @@ require_once(ROOT . DS . 'content-controllers' . DS. 'video'. DS . 'video.contro
//send the URL to the architect. It'll know what to do //send the URL to the architect. It'll know what to do
$url = $_GET['url']; $url = $_GET['url'];
if(!$url)
$url = ltrim($_SERVER['REQUEST_URI'],'/');
architect($url); architect($url);