mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-12 11:43:01 +02:00
A couple of minor PHP 8 fixes that can be applied now
This commit is contained in:
@@ -66,7 +66,7 @@ class c13y_internal
|
||||
|
||||
foreach (array('show_exif', 'use_exif') as $value)
|
||||
{
|
||||
if (($conf[$value]) and (!function_exists('read_exif_data')))
|
||||
if (($conf[$value]) and (!function_exists('exif_read_data')))
|
||||
{
|
||||
$c13y->add_anomaly(
|
||||
sprintf(l10n('%s value is not correct file because exif are not supported'), '$conf[\''.$value.'\']'),
|
||||
|
||||
@@ -390,7 +390,7 @@ SELECT
|
||||
}
|
||||
|
||||
// update metadata from the uploaded file (exif/iptc)
|
||||
if ($conf['use_exif'] and !function_exists('read_exif_data'))
|
||||
if ($conf['use_exif'] and !function_exists('exif_read_data'))
|
||||
{
|
||||
$conf['use_exif'] = false;
|
||||
}
|
||||
|
||||
@@ -191,7 +191,7 @@ if (!isset($_SESSION['upload_hide_warnings']))
|
||||
{
|
||||
$setup_warnings = array();
|
||||
|
||||
if ($conf['use_exif'] and !function_exists('read_exif_data'))
|
||||
if ($conf['use_exif'] and !function_exists('exif_read_data'))
|
||||
{
|
||||
$setup_warnings[] = l10n('Exif extension not available, admin should disable exif use');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user