Fix typo (ML renaming code).
Fixes 2ccb43a271
Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
@ -2260,7 +2260,7 @@ function serendipity_renameFile($id, $newName, $path = null) {
|
|||||||
$newName = serendipity_uploadSecure(serendipity_makeFilename($newName), true);
|
$newName = serendipity_uploadSecure(serendipity_makeFilename($newName), true);
|
||||||
$imgBase = $serendipity['serendipityPath'] . $serendipity['uploadPath'];
|
$imgBase = $serendipity['serendipityPath'] . $serendipity['uploadPath'];
|
||||||
|
|
||||||
$newPath = $imgBase . $path . $newName . (empty($File['extension']) ? '' : '.' . $File['extension']);
|
$newPath = $imgBase . $path . $newName . (empty($file['extension']) ? '' : '.' . $file['extension']);
|
||||||
|
|
||||||
if (serendipity_isActiveFile($newName) || serendipity_isActiveFile($newPath)) {
|
if (serendipity_isActiveFile($newName) || serendipity_isActiveFile($newPath)) {
|
||||||
return sprintf('<span class="msg_error"><span class="icon-attention-circled" aria-hidden="true"></span> ' . ERROR_FILE_FORBIDDEN . "</span>\n", $newName);
|
return sprintf('<span class="msg_error"><span class="icon-attention-circled" aria-hidden="true"></span> ' . ERROR_FILE_FORBIDDEN . "</span>\n", $newName);
|
||||||
|
Reference in New Issue
Block a user