Revisão | 4b285c2a8cbb3bdcf2d32f955d98f5252ad1ebd0 (tree) |
---|---|
Hora | 2017-09-09 22:48:32 |
Autor | umorigu <umorigu@gmai...> |
Commiter | umorigu |
BugTrack/407 Show attached files on editing page
@@ -123,7 +123,8 @@ function catbody($title, $page, $body) | ||
123 | 123 | ' ' . get_pg_passage($_page, FALSE) : ''; |
124 | 124 | |
125 | 125 | // List of attached files to the page |
126 | - $attaches = ($attach_link && $is_read && exist_plugin_action('attach')) ? | |
126 | + $show_attaches = $is_read || arg_check('edit'); | |
127 | + $attaches = ($attach_link && $show_attaches && exist_plugin_action('attach')) ? | |
127 | 128 | attach_filelist() : ''; |
128 | 129 | |
129 | 130 | // List of related pages |