mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-22 13:45:02 +00:00
Bugfix: update the filename when moving page
This commit is contained in:
parent
7d3d190661
commit
fe978fa980
1 changed files with 3 additions and 0 deletions
|
@ -53,10 +53,13 @@ register_module([
|
|||
$pageindex->$new_name->$key = $value;
|
||||
}
|
||||
unset($pageindex->$page);
|
||||
$pageindex->$new_name->filename = $new_name;
|
||||
// If this page has an associated file, then we should move that too
|
||||
if(isset($pageindex->$new_name->uploadedfile) and
|
||||
$pageindex->$new_name->uploadedfile == true)
|
||||
{
|
||||
// Update the filepath to point to the description and not the image
|
||||
$pageindex->$new_name->filename = $pageindex->$new_name->filename . ".md";
|
||||
// Move the file in the pageindex
|
||||
$pageindex->$new_name->uploadedfilepath = $new_name;
|
||||
// Move the file on disk
|
||||
|
|
Loading…
Reference in a new issue