Plugin Directory

Changeset 1712687


Ignore:
Timestamp:
08/12/2017 11:28:47 PM (9 years ago)
Author:
paulq
Message:

custom agent support

Location:
chatwee/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chatwee/trunk/chatwee.php

    r1712683 r1712687  
    55    Plugin URI: https://chatwee.com/
    66    Description: WordPress Chat by Chatwee is fully customizable social chat & comment platform for websites and blogs. With Chatwee you can engage your online community and provide real-time communication.
    7     Version: 2.0.3
     7    Version: 2.0.4
    88    Author: Chatwee Ltd
    99    Author URI: https://chatwee.com/
     
    150150        ChatweeV2_Configuration::setChatId($chatwee_settings["chat_id"]);
    151151        ChatweeV2_Configuration::setClientKey($chatwee_settings["client_key"]);
    152         ChatweeV2_Configuration::setCustomUserAgent("Chatwee Wordpress Plugin 2.0.3");
     152        ChatweeV2_Configuration::setCustomUserAgent("Chatwee Wordpress Plugin 2.0.4");
    153153
    154154        if($chatwee_settings["disable_offline_users"] === true && $chatwee_settings["enable_sso"] === true && is_user_logged_in() === false && ChatweeV2_Session::isSessionSet() === true) {
  • chatwee/trunk/lib/ChatweeV2_SDK/Chatwee/Configuration.php

    r1564521 r1712687  
    77    private static $_clientKey = null;
    88
     9    private static $_customUserAgent = null;
     10
    911    public static function setChatId($chatId) {
    1012        self::$_chatId = $chatId;
     
    1315    public static function setClientKey($clientKey) {
    1416        self::$_clientKey = $clientKey;
     17    }
     18
     19    public static function setCustomUserAgent($customUserAgent) {
     20        self::$_customUserAgent = $customUserAgent;
    1521    }
    1622
     
    2329    }
    2430
     31    public static function getCustomUserAgent() {
     32        return self::$_customUserAgent;
     33    }
     34
    2535    public static function isConfigurationSet() {
    2636        return self::$_chatId !== null && self::$_clientKey !== null;
Note: See TracChangeset for help on using the changeset viewer.