forked from ZwiiCMS-Team/ZwiiCMS
[9.0.16] pageId fix
This commit is contained in:
parent
b74c86dfcd
commit
039312c031
@ -164,7 +164,7 @@ class page extends common {
|
||||
$pageId = $this->getInput('pageEditTitle', helper::FILTER_ID, true);
|
||||
// un dossier existe du même nom (erreur en cas de redirection)
|
||||
if (file_exists($pageId)) {
|
||||
$pageId = 'p-' . $pageId;
|
||||
$pageId = uniqid($pageId . '-');
|
||||
}
|
||||
// Si l'id a changée
|
||||
if ($pageId !== $this->getUrl(2)) {
|
||||
@ -318,4 +318,4 @@ class page extends common {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user