mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02: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:
@@ -44,28 +44,6 @@ $tabsheet->assign();
|
||||
// | actions |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
//check if images have no md5sum in database
|
||||
$query = '
|
||||
SELECT COUNT(*)
|
||||
FROM '.CATEGORIES_TABLE.'
|
||||
WHERE dir IS NOT NULL
|
||||
;';
|
||||
list($counter) = pwg_db_fetch_row(pwg_query($query));
|
||||
if ($counter > 0)
|
||||
{
|
||||
$query = '
|
||||
SELECT COUNT(*)
|
||||
FROM '.IMAGES_TABLE.'
|
||||
WHERE storage_category_id IS NOT NULL
|
||||
AND md5sum IS NULL
|
||||
;';
|
||||
list($counter) = pwg_db_fetch_row(pwg_query($query));
|
||||
if ($counter > 0)
|
||||
{
|
||||
$page['warnings'][] = '<a href="admin.php?page=batch_manager&filter=prefilter-no_sync_md5sum">'.l10n('Some checksums are missing.').'<i class="icon-right"></i></a>';
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($page['nb_pending_comments']))
|
||||
{
|
||||
$message = l10n('User comments').' <i class="icon-chat"></i> ';
|
||||
|
||||
Reference in New Issue
Block a user