From baabcad8ab34e7a6538a516143b6ae3d010b9382 Mon Sep 17 00:00:00 2001 From: hubaishan Date: Fri, 12 Jan 2018 18:18:09 +0300 Subject: [PATCH 1/2] [ticket/15510] Link Orphan attachments in ACP General to its page Link Orphan attachments in ACP General to Orphaned attachments page if Orphan attachments>0 PHPBB3-15510 --- phpBB/adm/style/acp_main.html | 10 ++++++++-- phpBB/includes/acp/acp_main.php | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/phpBB/adm/style/acp_main.html b/phpBB/adm/style/acp_main.html index 9522baa9c2..a414ae2c3b 100644 --- a/phpBB/adm/style/acp_main.html +++ b/phpBB/adm/style/acp_main.html @@ -153,8 +153,14 @@ {PHP_VERSION_INFO} {L_NUMBER_ORPHAN}{L_COLON} - {TOTAL_ORPHAN} - + + + {TOTAL_ORPHAN} + + {TOTAL_ORPHAN} + + +     diff --git a/phpBB/includes/acp/acp_main.php b/phpBB/includes/acp/acp_main.php index 4efa8c70b3..8f169d15a7 100644 --- a/phpBB/includes/acp/acp_main.php +++ b/phpBB/includes/acp/acp_main.php @@ -585,6 +585,7 @@ class acp_main 'U_INACTIVE_USERS' => append_sid("{$phpbb_admin_path}index.$phpEx", 'i=inactive&mode=list'), 'U_VERSIONCHECK' => append_sid("{$phpbb_admin_path}index.$phpEx", 'i=update&mode=version_check'), 'U_VERSIONCHECK_FORCE' => append_sid("{$phpbb_admin_path}index.$phpEx", 'versioncheck_force=1'), + 'U_ATTACH_ORPHAN' => append_sid("{$phpbb_admin_path}index.$phpEx", 'i=acp_attachments&mode=orphan'), 'S_VERSIONCHECK' => ($auth->acl_get('a_board')) ? true : false, 'S_ACTION_OPTIONS' => ($auth->acl_get('a_board')) ? true : false, From ede0a36076cdc1bf315f0d13dfc6606b3e95e499 Mon Sep 17 00:00:00 2001 From: hubaishan Date: Fri, 19 Jan 2018 16:28:54 +0300 Subject: [PATCH 2/2] [ticket/15510] Link Orphan attachments in ACP General to its page change `IF TOTAL_ORPHAN` to `IF TOTAL_ORPHAN > 0` PHPBB3-15510 --- phpBB/adm/style/acp_main.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/adm/style/acp_main.html b/phpBB/adm/style/acp_main.html index a414ae2c3b..12477a4b77 100644 --- a/phpBB/adm/style/acp_main.html +++ b/phpBB/adm/style/acp_main.html @@ -154,7 +154,7 @@ {L_NUMBER_ORPHAN}{L_COLON} - + {TOTAL_ORPHAN} {TOTAL_ORPHAN}