Plugin Directory

Changeset 1232661


Ignore:
Timestamp:
08/27/2015 09:47:25 PM (11 years ago)
Author:
mindshare
Message:

3.1.6 update

Location:
php-browser-detection/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • php-browser-detection/trunk/php-browser-detection.php

    r1232639 r1232661  
    44Plugin URI: http://wordpress.org/extend/plugins/php-browser-detection/
    55Description: Use PHP to detect browsers for conditional CSS or to detect mobile phones.
    6 Version: 3.1.5
     6Version: 3.1.6
    77Author: Mindshare Studios, Inc.
    88Author URI: https://mind.sh/are
     
    4141require_once('lib/Browscap.php');
    4242
    43 $browscap = new \phpbrowscap\Browscap(apply_filters('php_browser_detection_cache_dir', PBD_DIR_PATH . 'cache'));
    44 $browscap->doAutoUpdate = apply_filters('php_browser_detection_autoupdate', TRUE);
    45 $browscap->updateInterval = apply_filters('php_browser_detection_cache_time', 2592000);  // 30 days, default is 5
    46 $browscap->remoteIniUrl = apply_filters('php_browser_detection_version', "http://browscap.org/stream?q=Lite_PHP_BrowsCapINI");
    47 
    4843$browser_info = php_browser_info();
    4944
     
    5853 */
    5954function php_browser_info() {
    60     global $browscap;
     55
     56    $browscap = new \phpbrowscap\Browscap(apply_filters('php_browser_detection_cache_dir', PBD_DIR_PATH . 'cache'));
     57    $browscap->doAutoUpdate = apply_filters('php_browser_detection_autoupdate', TRUE);
     58    $browscap->updateInterval = apply_filters('php_browser_detection_cache_time', 2592000);  // 30 days, default is 5
     59    $browscap->remoteIniUrl = apply_filters('php_browser_detection_version', "http://browscap.org/stream?q=Lite_PHP_BrowsCapINI");
    6160
    6261    return $browscap->getBrowser(NULL, TRUE);
  • php-browser-detection/trunk/readme.txt

    r1232639 r1232661  
    33Donate link: http://mind.sh/are/donate/
    44Tags: php, browser detection, browser, internet explorer, iphone, mobile, browscap, detection
    5 Version: 3.1.5
     5Version: 3.1.6
    66Tested up to: 4.3
    7 Stable tag: 3.1.5
     7Stable tag: 3.1.6
    88
    99PHP Browser Detection is a WordPress plugin used to detect a user's browser. Please report any bugs on the support forums.
     
    9999
    100100== Changelog ==
     101
     102= 3.1.6 =
     103* Bugfix for 3.1.5
    101104
    102105= 3.1.5 =
Note: See TracChangeset for help on using the changeset viewer.