mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 21:55:15 +00:00
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:
parent
2b2f1f2746
commit
a3171cd429
2 changed files with 14 additions and 14 deletions
|
@ -148,7 +148,7 @@ EOT;
|
|||
if(! local_channel())
|
||||
$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');
|
||||
|
||||
if(! get_config('system','hide_help')) {
|
||||
|
|
|
@ -44,7 +44,7 @@ class IXR_Value
|
|||
var $data;
|
||||
var $type;
|
||||
|
||||
function IXR_Value($data, $type = false)
|
||||
function __construct($data, $type = false)
|
||||
{
|
||||
$this->data = $data;
|
||||
if (!$type) {
|
||||
|
@ -188,7 +188,7 @@ class IXR_Message
|
|||
// The XML parser
|
||||
var $_parser;
|
||||
|
||||
function IXR_Message($message)
|
||||
function __construct($message)
|
||||
{
|
||||
$this->message =& $message;
|
||||
}
|
||||
|
@ -346,7 +346,7 @@ class IXR_Server
|
|||
var $message;
|
||||
var $capabilities;
|
||||
|
||||
function IXR_Server($callbacks = false, $data = false, $wait = false)
|
||||
function __construct($callbacks = false, $data = false, $wait = false)
|
||||
{
|
||||
$this->setCapabilities();
|
||||
if ($callbacks) {
|
||||
|
@ -549,7 +549,7 @@ class IXR_Request
|
|||
var $args;
|
||||
var $xml;
|
||||
|
||||
function IXR_Request($method, $args)
|
||||
function __construct($method, $args)
|
||||
{
|
||||
$this->method = $method;
|
||||
$this->args = $args;
|
||||
|
@ -595,13 +595,13 @@ class IXR_Client
|
|||
var $useragent;
|
||||
var $response;
|
||||
var $message = false;
|
||||
var $debug = false;
|
||||
var $debug = true;
|
||||
var $timeout;
|
||||
|
||||
// Storage place for an error message
|
||||
var $error = false;
|
||||
|
||||
function IXR_Client($server, $path = false, $port = 80, $timeout = 15)
|
||||
function __construct($server, $path = false, $port = 80, $timeout = 15)
|
||||
{
|
||||
if (!$path) {
|
||||
// Assume we have been given a URL instead
|
||||
|
@ -742,7 +742,7 @@ class IXR_Error
|
|||
var $code;
|
||||
var $message;
|
||||
|
||||
function IXR_Error($code, $message)
|
||||
function __construct($code, $message)
|
||||
{
|
||||
$this->code = $code;
|
||||
$this->message = htmlspecialchars($message);
|
||||
|
@ -788,7 +788,7 @@ class IXR_Date {
|
|||
var $second;
|
||||
var $timezone;
|
||||
|
||||
function IXR_Date($time)
|
||||
function __construct($time)
|
||||
{
|
||||
// $time can be a PHP timestamp or an ISO one
|
||||
if (is_numeric($time)) {
|
||||
|
@ -846,7 +846,7 @@ class IXR_Base64
|
|||
{
|
||||
var $data;
|
||||
|
||||
function IXR_Base64($data)
|
||||
function __construct($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
|
@ -868,7 +868,7 @@ class IXR_IntrospectionServer extends IXR_Server
|
|||
var $signatures;
|
||||
var $help;
|
||||
|
||||
function IXR_IntrospectionServer()
|
||||
function __construct()
|
||||
{
|
||||
$this->setCallbacks();
|
||||
$this->setCapabilities();
|
||||
|
@ -1030,7 +1030,7 @@ class IXR_ClientMulticall extends IXR_Client
|
|||
{
|
||||
var $calls = array();
|
||||
|
||||
function IXR_ClientMulticall($server, $path = false, $port = 80)
|
||||
function __construct($server, $path = false, $port = 80)
|
||||
{
|
||||
parent::IXR_Client($server, $path, $port);
|
||||
$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
|
||||
* @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);
|
||||
$this->useragent = 'The Incutio XML-RPC PHP Library for SSL';
|
||||
|
@ -1291,7 +1291,7 @@ class IXR_ClassServer extends IXR_Server
|
|||
var $_objects;
|
||||
var $_delim;
|
||||
|
||||
function IXR_ClassServer($delim = '.', $wait = false)
|
||||
function __construct($delim = '.', $wait = false)
|
||||
{
|
||||
$this->IXR_Server(array(), false, $wait);
|
||||
$this->_delimiter = $delim;
|
||||
|
|
Loading…
Reference in a new issue