OSDN Git Service
(root)
/
pukiwiki
/
pukiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93795e6
)
BugTrack/407 Show attached files on editing page
bugtrack_2428_bugtrack_wikiname2
author
umorigu
<umorigu@gmail.com>
Sat, 9 Sep 2017 13:48:32 +0000
(22:48 +0900)
committer
umorigu
<umorigu@gmail.com>
Sat, 9 Sep 2017 13:48:32 +0000
(22:48 +0900)
lib/html.php
patch
|
blob
|
history
diff --git
a/lib/html.php
b/lib/html.php
index
d128972
..
9f24688
100644
(file)
--- 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