Ignore:
Timestamp:
Jun 27, 2012, 11:03:10 AM (12 years ago)
Author:
mistic100
Message:

add curl download, and display error if no download method (curl or allow_url_fopen) available

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/flickr2piwigo/admin/import.php

    r16071 r16085  
    66{
    77  array_push($page['warnings'], l10n('Please fill your API keys on the configuration tab'));
     8  $_GET['action'] = 'error';
     9}
     10else if ( !function_exists('curl_init') and !ini_get('allow_url_fopen') )
     11{
     12  array_push($page['errors'], l10n('No download method available'));
    813  $_GET['action'] = 'error';
    914}
     
    2934  }
    3035}
     36
    3137
    3238if (!isset($_GET['action'])) $_GET['action'] = 'main';
Note: See TracChangeset for help on using the changeset viewer.