aboutsummaryrefslogtreecommitdiffstats
path: root/admin.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2015-10-09 19:13:30 +0200
committerplegall <plg@piwigo.org>2015-10-09 20:17:27 +0200
commit92224bcbf49d58829988eb0485afc17695f6de0c (patch)
tree1009cfcdb5f1f52f36e56e52a20d970f1ea318f1 /admin.php
parent47ebd6c91f630c7b970d5abb9f1451a637afb517 (diff)
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.
Diffstat (limited to 'admin.php')
-rw-r--r--admin.php13
1 files changed, 13 insertions, 0 deletions
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&amp;filter=prefilter-no_album',
+ )
+ );
+}
+
// +-----------------------------------------------------------------------+
// | Plugin menu |
// +-----------------------------------------------------------------------+