From 92224bcbf49d58829988eb0485afc17695f6de0c Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 9 Oct 2015 19:13:30 +0200 Subject: fix #357 make orphans photos more obvious ... and easy to delete them all in one click. The orpans, if any, is shown as an entry in the "Photos" menu (link on Batch Manager). In the Batch Manager, new action "delete_orphans" next to prefilter. --- admin.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'admin.php') diff --git a/admin.php b/admin.php index 213f33b75..4ccadccb5 100644 --- a/admin.php +++ b/admin.php @@ -240,6 +240,19 @@ if ($nb_photos_in_caddie > 0) ); } +// any orphan photo? +$nb_orphans = count(get_orphans()); + +if ($nb_orphans > 0) +{ + $template->assign( + array( + 'NB_ORPHANS' => $nb_orphans, + 'U_ORPHANS' => $link_start.'batch_manager&filter=prefilter-no_album', + ) + ); +} + // +-----------------------------------------------------------------------+ // | Plugin menu | // +-----------------------------------------------------------------------+ -- cgit v1.2.3