Ignore:
Timestamp:
Jun 29, 2010, 2:18:40 AM (14 years ago)
Author:
plg
Message:

bug 1742 fixed: if the EXIF functions are not available:

1) display a warning (but not an error)
2) avoid to try to read EXIF data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/admin/photos_add_direct.php

    r6618 r6621  
    444444
    445445$setup_errors = array();
     446$setup_warnings = array();
    446447
    447448$error_message = ready_for_upload_message();
     
    454455{
    455456  array_push($setup_errors, l10n('GD library is missing'));
     457}
     458
     459if ($conf['use_exif'] and !function_exists('read_exif_data'))
     460{
     461  array_push(
     462    $setup_warnings,
     463    l10n('Exif extension not available, admin should disable exif use')
     464    );
    456465}
    457466
     
    459468    array(
    460469      'setup_errors'=> $setup_errors,
     470      'setup_warnings' => $setup_warnings,
    461471    )
    462472  );
Note: See TracChangeset for help on using the changeset viewer.