Changeset 884981
- Timestamp:
- 03/31/2014 09:22:11 AM (12 years ago)
- Location:
- pwebonedrive/trunk
- Files:
-
- 3 edited
-
liveconnect.php (modified) (4 diffs)
-
pwebonedrive.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pwebonedrive/trunk/liveconnect.php
r866880 r884981 1 1 <?php 2 2 /** 3 * @version 1.0. 03 * @version 1.0.1 4 4 * @package OneDrive 5 5 * @copyright © 2014 Perfect Web sp. z o.o., All rights reserved. http://www.perfect-web.co … … 316 316 $this->log(__METHOD__.'. Resource: '.$resource_id); 317 317 318 if (!isset(s tatic::$access[$resource_id]))318 if (!isset(self::$access[$resource_id])) 319 319 { 320 320 if (!$this->getOption('storetoken')) return null; 321 321 322 322 $sql = $wpdb->prepare('SELECT `access_id` FROM `'.$wpdb->prefix.'onedrive_storage` WHERE `resource_id` LIKE %s', like_escape($resource_id)); 323 s tatic::$access[$resource_id] = (int)$wpdb->get_var($sql);324 } 325 326 return s tatic::$access[$resource_id];323 self::$access[$resource_id] = (int)$wpdb->get_var($sql); 324 } 325 326 return self::$access[$resource_id]; 327 327 } 328 328 … … 352 352 unset($value['expires']); 353 353 } 354 s tatic::$token[$this->access_id] = $value;354 self::$token[$this->access_id] = $value; 355 355 } 356 356 357 357 if ($process) 358 358 { 359 $token = s tatic::$token[$this->access_id];359 $token = self::$token[$this->access_id]; 360 360 361 361 if ($error === false AND is_array($token) AND array_key_exists('refresh_token', $token)) … … 410 410 $this->log(__METHOD__); 411 411 412 $token = isset(s tatic::$token[$this->access_id]) ?413 s tatic::$token[$this->access_id] :414 (isset(s tatic::$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); 415 415 416 416 if (!$token AND $this->loadToken()) 417 417 { 418 $token = s tatic::$token[$this->access_id];418 $token = self::$token[$this->access_id]; 419 419 } 420 420 -
pwebonedrive/trunk/pwebonedrive.php
r866880 r884981 4 4 * Plugin URI: http://www.perfect-web.co/wordpress/microsoft-onedrive-gallery-file 5 5 * 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. 06 * Version: 1.0.1 7 7 * Author: Piotr Moćko 8 8 * Author URI: http://www.perfect-web.co -
pwebonedrive/trunk/readme.txt
r866880 r884981 5 5 Requires at least: 2.8.0 6 6 Tested up to: 3.8.1 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 43 43 44 44 English 45 46 47 = Requirements = 48 49 PHP 5.2+ 45 50 46 51 … … 90 95 * First release 91 96 97 = 1.0.1 = 98 * Backward compatibility with PHP 5.2 99 92 100 == Upgrade Notice == 93 101
Note: See TracChangeset
for help on using the changeset viewer.