mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-07-31 18:30:20 +02:00
Themes Plugin: Imposible to create new CSS #335
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
Reference in New Issue
Block a user