diff options
Diffstat (limited to 'admin.php')
-rw-r--r-- | admin.php | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -2,7 +2,7 @@ // +-----------------------------------------------------------------------+ // | Piwigo - a PHP based photo gallery | // +-----------------------------------------------------------------------+ -// | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | +// | Copyright(C) 2008-2016 Piwigo Team http://piwigo.org | // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | // +-----------------------------------------------------------------------+ @@ -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 | // +-----------------------------------------------------------------------+ |