From 4a4f72cbc359b9aff80a60c71882f5f78aa996a1 Mon Sep 17 00:00:00 2001 From: rub Date: Thu, 28 Dec 2006 00:06:06 +0000 Subject: 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 --- admin/include/functions.php | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'admin/include/functions.php') diff --git a/admin/include/functions.php b/admin/include/functions.php index 1aec5b1db..9855f8278 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -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(' %s', l10n('note_check_more_info_forum')), + sprintf(' %s', l10n('note_check_more_info_wiki')) + ); + } +} + ?> -- cgit v1.2.3