Ignore:
Timestamp:
Jan 5, 2013, 11:28:38 AM (8 years ago)
Author:
mistic100
Message:

make sure temp folder is created on the right place

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/pbase2piwigo/include/functions.inc.php

    r17434 r19832  
    346346     
    347347      curl_setopt($ch, CURLOPT_URL, $src);
    348       curl_setopt($ch, CURLOPT_HEADER, 0);
     348      curl_setopt($ch, CURLOPT_HEADER, false);
    349349      curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept-language: en"));
    350350      curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)');
     
    365365      }
    366366     
    367       if (($out = curl_exec($ch)) === false)
     367      $out = curl_exec($ch);
     368      curl_close($ch);
     369     
     370      if ($out === false)
    368371      {
    369372        return 'file_error';
    370373      }
    371      
    372       curl_close($ch);
    373      
    374       if (!$return)
     374      else if (!$return)
    375375      {
    376376        fclose($newf);
Note: See TracChangeset for help on using the changeset viewer.