mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 09:52:29 +02:00
@@ -3625,6 +3625,30 @@ SELECT
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// search for duplicate paths
|
||||
$query = '
|
||||
SELECT
|
||||
path
|
||||
FROM '.IMAGES_TABLE.'
|
||||
GROUP BY path
|
||||
HAVING COUNT(*) > 1
|
||||
;';
|
||||
$duplicate_paths = query2array($query);
|
||||
|
||||
if (count($duplicate_paths) > 0)
|
||||
{
|
||||
global $template;
|
||||
|
||||
$template->assign(
|
||||
'header_msgs',
|
||||
array(
|
||||
l10n('We have found %d duplicate paths. Details provided by plugin Check Uploads', count($duplicate_paths)),
|
||||
)
|
||||
);
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user