mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 09:03:38 +02:00
Fix Feature Issue ID 0000585.
Convergence of exif configuration between local site and remote site. Notes added on administration page where configuration is not OK. git-svn-id: http://piwigo.org/svn/trunk@1682 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -1888,4 +1888,40 @@ SELECT image_id
|
||||
|
||||
associate_images_to_categories($images, $destinations);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check configuration and add notes on problem
|
||||
*
|
||||
* @param void
|
||||
* @return void
|
||||
*/
|
||||
function check_conf()
|
||||
{
|
||||
global $conf, $header_notes;
|
||||
$count = 0;
|
||||
|
||||
if (($conf['show_exif']) and (!function_exists('read_exif_data')))
|
||||
{
|
||||
$header_notes[] = sprintf(l10n('note_check_exif'), '$conf[\'show_exif\']');
|
||||
$count++;
|
||||
}
|
||||
|
||||
if (($conf['use_exif']) and (!function_exists('read_exif_data')))
|
||||
{
|
||||
$header_notes[] = sprintf(l10n('note_check_exif'), '$conf[\'use_exif\']');
|
||||
$count++;
|
||||
}
|
||||
|
||||
if ($count != 0)
|
||||
{
|
||||
$header_notes[] =
|
||||
sprintf
|
||||
(
|
||||
l10n('note_check_more_info'),
|
||||
sprintf('<a href="http://forum.phpwebgallery.net/" target="_blank"> %s</a>', l10n('note_check_more_info_forum')),
|
||||
sprintf('<a href="http://phpwebgallery.net/doc/" target="_blank"> %s</a>', l10n('note_check_more_info_wiki'))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user