From ade9edeb849803082856f7633194913ad4df93a0 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Sun, 26 Apr 2020 21:03:08 +0200 Subject: Automatic code formatting --- css.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'css.php') diff --git a/css.php b/css.php index 466b103..a1ae6bc 100644 --- a/css.php +++ b/css.php @@ -11,16 +11,14 @@ require_once(dirname(__FILE__) . "/ratatoeskr/sys/models.php"); -if(!isset($_GET["name"])) +if (!isset($_GET["name"])) { die(); -try -{ +} +try { $style = Style::by_name($_GET["name"]); header("Content-Type: text/css; charset=UTF-8"); echo str_replace("%root%", ".", $style->code); -} -catch(DoesNotExistError $e) -{ +} catch (DoesNotExistError $e) { header("HTTP/1.1 404 Not Found"); header("Content-Type: text/plain; charset=UTF-8"); echo "404 - Not found."; -- cgit v1.2.3-70-g09d2