From: umorigu Date: Sat, 9 Sep 2017 13:48:32 +0000 (+0900) Subject: BugTrack/407 Show attached file list on editing page X-Git-Tag: r1_5_4~183 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=20395728571f653f7b3aad9ce5000df9f5c4ea11;p=pukiwiki%2Fpukiwiki.git BugTrack/407 Show attached file list on editing page --- 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