mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 03:39:57 +03:00
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.
This commit is contained in:
parent
47ebd6c91f
commit
92224bcbf4
19 changed files with 262 additions and 150 deletions
13
admin.php
13
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 |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue