From 20395728571f653f7b3aad9ce5000df9f5c4ea11 Mon Sep 17 00:00:00 2001 From: umorigu Date: Sat, 9 Sep 2017 22:48:32 +0900 Subject: [PATCH] BugTrack/407 Show attached file list on editing page --- lib/html.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/html.php b/lib/html.php index d128972..9f24688 100644 --- a/lib/html.php +++ b/lib/html.php @@ -123,7 +123,8 @@ function catbody($title, $page, $body) ' ' . get_pg_passage($_page, FALSE) : ''; // List of attached files to the page - $attaches = ($attach_link && $is_read && exist_plugin_action('attach')) ? + $show_attaches = $is_read || arg_check('edit'); + $attaches = ($attach_link && $show_attaches && exist_plugin_action('attach')) ? attach_filelist() : ''; // List of related pages -- 2.11.0