Plugin Directory

Changeset 2150668


Ignore:
Timestamp:
09/04/2019 07:57:41 AM (7 years ago)
Author:
paulstuttard
Message:

Fix amazon-link-images bug

Location:
amazon-link/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • amazon-link/trunk/amazon.php

    r2046883 r2150668  
    106106*******************************************************************************************************/
    107107
    108    //include ('include/ip2location.php');
     108//   include ('include/ip2location.php');
    109109include ('include/ip2nation.php');
    110110
  • amazon-link/trunk/extras/amazon-link-images.php

    r2045498 r2150668  
    148148                                       'Description' => __('The URL to the image to show if none is available.', 'amazon-link'),
    149149                                       'Type' => 'text',
    150                                        'Default' => $this->URLRoot. '/'. 'images/no-img-lg-uk.gif',
     150                                       'Default' => 'http://images-eu.amazon.com/images/G/02/misc/no-img-lg-uk.gif',
    151151                                       'Class' => 'al_border');
    152152   $options_list['image_size'] = array ( 'Name' => __('Preferred Image Size Modifier', 'amazon-link'),
  • amazon-link/trunk/include/ip2location.php

    r1024141 r2150668  
    8383          * Use WordPress WP_Filesystem methods to install DB
    8484          */
    85          
     85
    8686         // Check Credentials
    8787         if (false === ($creds = request_filesystem_credentials($url,NULL,false,false,$args))) {
     
    9898         /* Skip the download if it has already been done */
    9999         if ( ! is_readable ( $this->temp_file ) ) {
    100            
     100
    101101            $temp_file = download_url($this->remote_file);
    102102            if (is_wp_error($temp_file))
     
    109109            }
    110110         }
    111          
     111
    112112         // Install the database
    113113         // This can take a while on slow servers, disable aborts until
  • amazon-link/trunk/include/ip2nation.php

    r1785220 r2150668  
    33if (!class_exists('AmazonWishlist_ip2nation')) {
    44   class AmazonWishlist_ip2nation {
    5      
     5
    66/*****************************************************************************************/
    77
     
    99
    1010      function __construct() {
    11          
     11
    1212         $this->db = 'ip2nation';
    1313         $this->remote_file = 'http://www.ip2nation.com/ip2nation.zip';
     
    7272         return array( 'Uninstall' => $uninstall, 'Install' => $install, 'Message' => $message);
    7373      }
    74      
     74
    7575/*****************************************************************************************/
    7676
     
    9595            return array ( 'HideForm' => true);
    9696         }
    97                   
     97         
    9898         /* Skip the download if it has already been done */
    9999         if ( ! is_readable ( $this->temp_file ) ) {
Note: See TracChangeset for help on using the changeset viewer.