1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-11 23:54:06 +02:00

Admin Panel: Entries Manager - improvements.

- Code fixes and refactoring according to Scrutinizer Tests.
This commit is contained in:
Awilum
2019-02-04 14:22:24 +03:00
parent c459dc5cf0
commit 0dd42ae199

View File

@@ -72,7 +72,7 @@ class EntriesManager
if (isset($move_entry)) {
if (Token::check((Http::post('token')))) {
if (!Filesystem::dirExists(realpath(PATH['entries'] . '/' . Http::post('parent_entry') . '/' . Http::post('name_current')))) {
if (!Filesystem::has(realpath(PATH['entries'] . '/' . Http::post('parent_entry') . '/' . Http::post('name_current')))) {
if (rename(
PATH['entries'] . '/' . Http::post('entry_path_current'),
PATH['entries'] . '/' . Http::post('parent_entry') . '/' . Text::safeString(Http::post('name_current'), '-', true)