OSDN Git Service

BugTrack/407 Show attached files on editing page bugtrack_2428_bugtrack_wikiname2
authorumorigu <umorigu@gmail.com>
Sat, 9 Sep 2017 13:48:32 +0000 (22:48 +0900)
committerumorigu <umorigu@gmail.com>
Sat, 9 Sep 2017 13:48:32 +0000 (22:48 +0900)
lib/html.php

index d128972..9f24688 100644 (file)
@@ -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