From a2b7feb6f9b72d138165456a82a6516c2f4d8ea7 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 6 Jun 2020 11:53:22 +0200 Subject: [PATCH] changed to oneliner --- index.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.php b/index.php index 6c978be..be94583 100644 --- a/index.php +++ b/index.php @@ -17,7 +17,5 @@ require_once(ROOT . DS . 'content-controllers' . DS. 'video'. DS . 'video.contro //send the URL to the architect. It'll know what to do -$url = $_GET['url']; -if(!$url) - $url = ltrim($_SERVER['REQUEST_URI'],'/'); +$url = $_GET['url']?$_GET['url']:ltrim($_SERVER['REQUEST_URI'],'/'); architect($url); \ No newline at end of file