diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2020-04-26 21:03:08 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2020-04-26 21:13:51 +0200 |
commit | ade9edeb849803082856f7633194913ad4df93a0 (patch) | |
tree | a864c593f92851678d7ab9fe4e7e9cfdefb539c8 /css.php | |
parent | c3cc300a952a793b9655226db1aad050daaa3803 (diff) | |
download | ratatoeskr-cms-ade9edeb849803082856f7633194913ad4df93a0.tar.gz ratatoeskr-cms-ade9edeb849803082856f7633194913ad4df93a0.tar.bz2 ratatoeskr-cms-ade9edeb849803082856f7633194913ad4df93a0.zip |
Automatic code formatting
Diffstat (limited to 'css.php')
-rw-r--r-- | css.php | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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."; |