From af2eebfc1eb7d2d8e19ababfdcd371466a7d8a41 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sun, 1 Feb 2015 13:42:25 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=BF=D1=80=D0=B8=D0=B2=D0=B5=D0=B4=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BA=20=D0=BD=D0=B8=D0=B6=D0=BD=D0=B5=D0=BC?= =?UTF-8?q?=D1=83=20=D1=80=D0=B5=D0=B3=D0=B8=D1=81=D1=82=D1=80=D1=83=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D0=B8=D0=BC=D1=91=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app.php b/app.php index 61f9d97..3a5091e 100644 --- a/app.php +++ b/app.php @@ -4,7 +4,6 @@ * Add your routes here */ $app->get('/skins/{nickname}', function ($nickname) use ($app) { - $nickname = strtolower($nickname); $systemVersion = $app->request->get("version", "int"); $minecraftVersion = $app->request->get("minecraft_version", "string"); @@ -16,7 +15,7 @@ $app->get('/skins/{nickname}', function ($nickname) use ($app) { // TODO: восстановить функцию деградации скинов $skin = Skins::findFirst(array(array( - "nickname" => $nickname + "nickname" => strtolower($nickname) ))); if (!$skin || $skin->skinId == 0) @@ -36,7 +35,7 @@ $app->get('/cloaks/{nickname}', function ($nickname) use ($app) { $app->get("/textures/{nickname}", function($nickname) use ($app) { $skin = Skins::findFirst(array(array( - "nickname" => $nickname + "nickname" => strtolower($nickname) ))); if ($skin && $skin->skinId != 0) {