From d6221b3f50cf4a6dd089b6dadb7faf08aa7e7f50 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sat, 9 Aug 2014 00:18:49 +0400 Subject: [PATCH] Themes Plugin: Imposible to create new CSS #335 --- plugins/box/themes/themes.admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/box/themes/themes.admin.php b/plugins/box/themes/themes.admin.php index 3783d3a..2786e16 100755 --- a/plugins/box/themes/themes.admin.php +++ b/plugins/box/themes/themes.admin.php @@ -119,7 +119,7 @@ class ThemesAdmin extends Backend if (Security::check(Request::post('csrf'))) { if (trim(Request::post('name')) == '') $errors['file_empty_name'] = __('Required field', 'themes'); - if (file_exists($template_path.Security::safeName(Request::post('name', null, false)).'.template.php')) $errors['file_exists'] = __('This template already exists', 'themes'); + if (file_exists($template_path.Security::safeName(Request::post('name'), null, false).'.template.php')) $errors['file_exists'] = __('This template already exists', 'themes'); if (count($errors) == 0) {