aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/nav.php2
-rw-r--r--library/IXR_Library.php26
2 files changed, 14 insertions, 14 deletions
diff --git a/include/nav.php b/include/nav.php
index 9cee8dd7e..c2a058457 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -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')) {
diff --git a/library/IXR_Library.php b/library/IXR_Library.php
index 9e2537701..c249c4845 100644
--- a/library/IXR_Library.php
+++ b/library/IXR_Library.php
@@ -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;