mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 17:23:00 +00:00
Revise $path integration in move logic. Fixes #32
This commit is contained in:
parent
6217cbb6c0
commit
bf2da0b28c
3 changed files with 3 additions and 3 deletions
|
@ -2954,7 +2954,7 @@ register_module([
|
|||
// Move the file on disk
|
||||
rename($env->storage_prefix . $env->page, $env->storage_prefix . $new_name);
|
||||
}
|
||||
file_put_contents("./pageindex.json", json_encode($pageindex, JSON_PRETTY_PRINT));
|
||||
file_put_contents($env->storage_prefix . "pageindex.json", json_encode($pageindex, JSON_PRETTY_PRINT));
|
||||
|
||||
//move the page on the disk
|
||||
rename("$env->storage_prefix$env->page.md", "$env->storage_prefix$new_name.md");
|
||||
|
|
|
@ -140,7 +140,7 @@
|
|||
"author": "Starbeamrainbowlabs",
|
||||
"description": "Adds an action to allow administrators to move pages.",
|
||||
"id": "page-move",
|
||||
"lastupdate": 1447017276,
|
||||
"lastupdate": 1447266379,
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
|
|
|
@ -64,7 +64,7 @@ register_module([
|
|||
// Move the file on disk
|
||||
rename($env->storage_prefix . $env->page, $env->storage_prefix . $new_name);
|
||||
}
|
||||
file_put_contents("./pageindex.json", json_encode($pageindex, JSON_PRETTY_PRINT));
|
||||
file_put_contents($env->storage_prefix . "pageindex.json", json_encode($pageindex, JSON_PRETTY_PRINT));
|
||||
|
||||
//move the page on the disk
|
||||
rename("$env->storage_prefix$env->page.md", "$env->storage_prefix$new_name.md");
|
||||
|
|
Loading…
Reference in a new issue