Plugin Directory

Changeset 884981


Ignore:
Timestamp:
03/31/2014 09:22:11 AM (12 years ago)
Author:
perfect-web
Message:

Compatibility with PHP 5.2

Location:
pwebonedrive/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pwebonedrive/trunk/liveconnect.php

    r866880 r884981  
    11<?php
    22/**
    3  * @version 1.0.0
     3 * @version 1.0.1
    44 * @package OneDrive
    55 * @copyright © 2014 Perfect Web sp. z o.o., All rights reserved. http://www.perfect-web.co
     
    316316        $this->log(__METHOD__.'. Resource: '.$resource_id);
    317317       
    318         if (!isset(static::$access[$resource_id]))
     318        if (!isset(self::$access[$resource_id]))
    319319        {
    320320            if (!$this->getOption('storetoken')) return null;
    321321           
    322322            $sql = $wpdb->prepare('SELECT `access_id` FROM `'.$wpdb->prefix.'onedrive_storage` WHERE `resource_id` LIKE %s', like_escape($resource_id));
    323             static::$access[$resource_id] = (int)$wpdb->get_var($sql);
    324         }
    325        
    326         return static::$access[$resource_id];
     323            self::$access[$resource_id] = (int)$wpdb->get_var($sql);
     324        }
     325       
     326        return self::$access[$resource_id];
    327327    }
    328328   
     
    352352                unset($value['expires']);
    353353            }
    354             static::$token[$this->access_id] = $value;
     354            self::$token[$this->access_id] = $value;
    355355        }
    356356       
    357357        if ($process)
    358358        {
    359             $token = static::$token[$this->access_id];
     359            $token = self::$token[$this->access_id];
    360360           
    361361            if ($error === false AND is_array($token) AND array_key_exists('refresh_token', $token))
     
    410410        $this->log(__METHOD__);
    411411       
    412         $token = isset(static::$token[$this->access_id]) ?
    413                     static::$token[$this->access_id] :
    414                     (isset(static::$token[0]) ? static::$token[0] : null);
     412        $token = isset(self::$token[$this->access_id]) ?
     413                    self::$token[$this->access_id] :
     414                    (isset(self::$token[0]) ? self::$token[0] : null);
    415415       
    416416        if (!$token AND $this->loadToken())
    417417        {
    418             $token = static::$token[$this->access_id];
     418            $token = self::$token[$this->access_id];
    419419        }
    420420       
  • pwebonedrive/trunk/pwebonedrive.php

    r866880 r884981  
    44 * Plugin URI: http://www.perfect-web.co/wordpress/microsoft-onedrive-gallery-file
    55 * Description: Share easily your photos and files stored on Microsoft OneDrive. You can display a gallery with your photos or a link to a file for download.
    6  * Version: 1.0.0
     6 * Version: 1.0.1
    77 * Author: Piotr Moćko
    88 * Author URI: http://www.perfect-web.co
  • pwebonedrive/trunk/readme.txt

    r866880 r884981  
    55Requires at least: 2.8.0
    66Tested up to: 3.8.1
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    4343
    4444English
     45
     46
     47= Requirements =
     48
     49PHP 5.2+
    4550
    4651
     
    9095* First release
    9196
     97= 1.0.1 =
     98* Backward compatibility with PHP 5.2
     99
    92100== Upgrade Notice ==
    93101
Note: See TracChangeset for help on using the changeset viewer.