pub / rememori

Simple file-based bookmarking and notes application
git clone https://src.jayvii.de/pub/rememori.git
Home | Log | Files | Exports | Refs | README | RSS

commit 3148f5abd63610857773012011208275963b61fb
parent 22060c1f36b3668b72838f76534d0dd7219bf7d2
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Fri,  1 Nov 2024 11:28:37 +0100

fix: if filename changed, update it in index

Diffstat:
Mindex.php | 2+-
Mlib/edit.php | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/index.php b/index.php @@ -83,7 +83,7 @@ $category = "unknown"; } /* edit note */ - edit_note( + $filename = edit_note( $user, $category, $filename, diff --git a/lib/edit.php b/lib/edit.php @@ -54,8 +54,8 @@ function edit_note( return false; } - /* if all went fine, return "true" */ - return true; + /* if all went fine, return the new filename */ + return $filename; } // function