mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 19:29:58 +03:00
fixes #1090 move warning about missing checksums from dashboard to sync page
* avoid scaring users for a minor issue * convert the warning message into a simple info * simplify algorithm for detection and only search on relevant pages (batch manager + sync page)
This commit is contained in:
parent
9b695da86b
commit
72094c5f88
4 changed files with 21 additions and 30 deletions
15
admin.php
15
admin.php
|
@ -238,15 +238,14 @@ if ($nb_photos_in_caddie > 0)
|
|||
}
|
||||
|
||||
// any photos with no md5sum ?
|
||||
$nb_no_md5sum = count(get_photos_no_md5sum());
|
||||
if ($nb_no_md5sum > 0)
|
||||
if (in_array($page['page'], array('site_update', 'batch_manager')))
|
||||
{
|
||||
$template->assign(
|
||||
array(
|
||||
'NB_NO_MD5SUM' => $nb_no_md5sum,
|
||||
'U_NO_MD5SUM' => $link_start.'batch_manager&filter=prefilter-no_sync_md5sum',
|
||||
)
|
||||
);
|
||||
$nb_no_md5sum = count(get_photos_no_md5sum());
|
||||
|
||||
if ($nb_no_md5sum > 0)
|
||||
{
|
||||
$page['no_md5sum_number'] = $nb_no_md5sum;
|
||||
}
|
||||
}
|
||||
|
||||
// any orphan photo?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue