incutio xmlrpc library uses old-style (php4) constructors which have been deprecated for some time. They should still work on 7.0, but it's only a matter of time before they go away.

This commit is contained in:
redmatrix 2016-09-04 16:38:35 -07:00
parent 2b2f1f2746
commit a3171cd429
2 changed files with 14 additions and 14 deletions

View File

@ -148,7 +148,7 @@ EOT;
if(! local_channel()) if(! local_channel())
$nav['home'] = array($homelink, t('Home'), "", t('Home Page'),'home_nav_btn'); $nav['home'] = array($homelink, t('Home'), "", t('Home Page'),'home_nav_btn');
if(((App::$config['system']['register_policy'] == REGISTER_OPEN) || (App::$config['system']['register_policy'] == REGISTER_APPROVE)) && (! $_SESSION['authenticated'])) if(((get_config('system','register_policy') == REGISTER_OPEN) || (get_config('system','register_policy') == REGISTER_APPROVE)) && (! $_SESSION['authenticated']))
$nav['register'] = array('register',t('Register'), "", t('Create an account'),'register_nav_btn'); $nav['register'] = array('register',t('Register'), "", t('Create an account'),'register_nav_btn');
if(! get_config('system','hide_help')) { if(! get_config('system','hide_help')) {

View File

@ -44,7 +44,7 @@ class IXR_Value
var $data; var $data;
var $type; var $type;
function IXR_Value($data, $type = false) function __construct($data, $type = false)
{ {
$this->data = $data; $this->data = $data;
if (!$type) { if (!$type) {
@ -188,7 +188,7 @@ class IXR_Message
// The XML parser // The XML parser
var $_parser; var $_parser;
function IXR_Message($message) function __construct($message)
{ {
$this->message =& $message; $this->message =& $message;
} }
@ -346,7 +346,7 @@ class IXR_Server
var $message; var $message;
var $capabilities; var $capabilities;
function IXR_Server($callbacks = false, $data = false, $wait = false) function __construct($callbacks = false, $data = false, $wait = false)
{ {
$this->setCapabilities(); $this->setCapabilities();
if ($callbacks) { if ($callbacks) {
@ -549,7 +549,7 @@ class IXR_Request
var $args; var $args;
var $xml; var $xml;
function IXR_Request($method, $args) function __construct($method, $args)
{ {
$this->method = $method; $this->method = $method;
$this->args = $args; $this->args = $args;
@ -595,13 +595,13 @@ class IXR_Client
var $useragent; var $useragent;
var $response; var $response;
var $message = false; var $message = false;
var $debug = false; var $debug = true;
var $timeout; var $timeout;
// Storage place for an error message // Storage place for an error message
var $error = false; var $error = false;
function IXR_Client($server, $path = false, $port = 80, $timeout = 15) function __construct($server, $path = false, $port = 80, $timeout = 15)
{ {
if (!$path) { if (!$path) {
// Assume we have been given a URL instead // Assume we have been given a URL instead
@ -742,7 +742,7 @@ class IXR_Error
var $code; var $code;
var $message; var $message;
function IXR_Error($code, $message) function __construct($code, $message)
{ {
$this->code = $code; $this->code = $code;
$this->message = htmlspecialchars($message); $this->message = htmlspecialchars($message);
@ -788,7 +788,7 @@ class IXR_Date {
var $second; var $second;
var $timezone; var $timezone;
function IXR_Date($time) function __construct($time)
{ {
// $time can be a PHP timestamp or an ISO one // $time can be a PHP timestamp or an ISO one
if (is_numeric($time)) { if (is_numeric($time)) {
@ -846,7 +846,7 @@ class IXR_Base64
{ {
var $data; var $data;
function IXR_Base64($data) function __construct($data)
{ {
$this->data = $data; $this->data = $data;
} }
@ -868,7 +868,7 @@ class IXR_IntrospectionServer extends IXR_Server
var $signatures; var $signatures;
var $help; var $help;
function IXR_IntrospectionServer() function __construct()
{ {
$this->setCallbacks(); $this->setCallbacks();
$this->setCapabilities(); $this->setCapabilities();
@ -1030,7 +1030,7 @@ class IXR_ClientMulticall extends IXR_Client
{ {
var $calls = array(); var $calls = array();
function IXR_ClientMulticall($server, $path = false, $port = 80) function __construct($server, $path = false, $port = 80)
{ {
parent::IXR_Client($server, $path, $port); parent::IXR_Client($server, $path, $port);
$this->useragent = 'The Incutio XML-RPC PHP Library (multicall client)'; $this->useragent = 'The Incutio XML-RPC PHP Library (multicall client)';
@ -1101,7 +1101,7 @@ class IXR_ClientSSL extends IXR_Client
* @param string $server URL of the Server to connect to * @param string $server URL of the Server to connect to
* @since 0.1.0 * @since 0.1.0
*/ */
function IXR_ClientSSL($server, $path = false, $port = 443, $timeout = false) function __construct($server, $path = false, $port = 443, $timeout = false)
{ {
parent::IXR_Client($server, $path, $port, $timeout); parent::IXR_Client($server, $path, $port, $timeout);
$this->useragent = 'The Incutio XML-RPC PHP Library for SSL'; $this->useragent = 'The Incutio XML-RPC PHP Library for SSL';
@ -1291,7 +1291,7 @@ class IXR_ClassServer extends IXR_Server
var $_objects; var $_objects;
var $_delim; var $_delim;
function IXR_ClassServer($delim = '.', $wait = false) function __construct($delim = '.', $wait = false)
{ {
$this->IXR_Server(array(), false, $wait); $this->IXR_Server(array(), false, $wait);
$this->_delimiter = $delim; $this->_delimiter = $delim;