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:
rub
2006-12-28 00:06:06 +00:00
parent cc96fca4c5
commit 4a4f72cbc3
7 changed files with 53 additions and 8 deletions
+36
View File
@@ -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'))
);
}
}
?>