aboutsummaryrefslogtreecommitdiff
path: root/css.php
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-04-26 21:03:08 +0200
committerLaria Carolin Chabowski <laria@laria.me>2020-04-26 21:13:51 +0200
commitade9edeb849803082856f7633194913ad4df93a0 (patch)
treea864c593f92851678d7ab9fe4e7e9cfdefb539c8 /css.php
parentc3cc300a952a793b9655226db1aad050daaa3803 (diff)
downloadratatoeskr-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.php10
1 files changed, 4 insertions, 6 deletions
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.";