X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;ds=sidebyside;f=handlers%2F60_move_rename_delete.sh;h=27246bd108acecac61ba2d7dc17406979aa2272d;hb=e1441ae3543689244e9275c0581ad6c00d610f67;hp=33f79d00270f381636c1f110765de79f6277444d;hpb=116a9fbba5874eec7efb4f2253844e8158fffde9;p=shellwiki
diff --git a/handlers/60_move_rename_delete.sh b/handlers/60_move_rename_delete.sh
index 33f79d0..27246bd 100755
--- a/handlers/60_move_rename_delete.sh
+++ b/handlers/60_move_rename_delete.sh
@@ -1,5 +1,19 @@
#!/bin/sh
+# Copyright 2022 - 2023 Paul Hänsch
+#
+# Permission to use, copy, modify, and/or distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED âAS ISâ AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+# SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+# IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
l10n_immutablepage >/dev/null 2>&1 \
|| l10n_immutablepage(){ #TRANSLATION
cat <<-EOF
@@ -71,20 +85,40 @@ l10n_deletepage >/dev/null 2>&1 \
Delete Page
$(HTML "${page}")
This page and its attachments will be deleted
+
-
Past revisions of the page text (including the current one) will remain accessible and can be restored.
-
Attachments will be deleted completely, and cannot be restored.
-
Subpages will not be affected and can still be accessed normally.
+ EOF
+ [ "$REV_PAGES" = true ] \
+ && printf '
Past revisions of the page text (including the current one) will remain accessible and can be restored.