Skip to content

Commit

Permalink
Updates xmlrpc support for php v7; also updates the offline blog edit…
Browse files Browse the repository at this point in the history
…ing 'view comments' link to manage comments for that blog instead of all comments on the site.
  • Loading branch information
dleffler committed Dec 15, 2015
1 parent aa89588 commit c3730a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions external/xmlrpc/xmlrpc.php
Expand Up @@ -872,7 +872,7 @@ class xmlrpc_client
* @param integer $port the port the server is listening on, defaults to 80 or 443 depending on protocol used
* @param string $method the http protocol variant: defaults to 'http', 'https' and 'http11' can be used if CURL is installed
*/
function xmlrpc_client($path, $server='', $port='', $method='')
function __construct($path, $server='', $port='', $method='')
{
// allow user to specify all params in $path
if($server == '' and $port == '' and $method == '')
Expand Down Expand Up @@ -1968,7 +1968,7 @@ class xmlrpcresp
* NB: as of now we do not do it, since it might be either an xmlrpcval or a plain
* php val, or a complete xml chunk, depending on usage of xmlrpc_client::send() inside which creator is called...
*/
function xmlrpcresp($val, $fcode = 0, $fstr = '', $valtyp='')
function __construct($val, $fcode = 0, $fstr = '', $valtyp='')
{
if($fcode != 0)
{
Expand Down Expand Up @@ -2123,7 +2123,7 @@ class xmlrpcmsg
* @param string $meth the name of the method to invoke
* @param array $pars array of parameters to be passed to the method (xmlrpcval objects)
*/
function xmlrpcmsg($meth, $pars=0)
function __construct($meth, $pars=0)
{
$this->methodname=$meth;
if(is_array($pars) && count($pars)>0)
Expand Down Expand Up @@ -2755,7 +2755,7 @@ class xmlrpcval
* @param mixed $val
* @param string $type any valid xmlrpc type name (lowercase). If null, 'string' is assumed
*/
function xmlrpcval($val=-1, $type='')
function __construct($val=-1, $type='')
{
/// @todo: optimization creep - do not call addXX, do it all inline.
/// downside: booleans will not be coerced anymore
Expand Down
2 changes: 1 addition & 1 deletion external/xmlrpc/xmlrpcs.php
Expand Up @@ -497,7 +497,7 @@ class xmlrpc_server
* @param array $dispmap the dispatch map with definition of exposed services
* @param boolean $servicenow set to false to prevent the server from running upon construction
*/
function xmlrpc_server($dispMap=null, $serviceNow=true)
function __construct($dispMap=null, $serviceNow=true)
{
// if ZLIB is enabled, let the server by default accept compressed requests,
// and compress responses sent to clients that support them
Expand Down
2 changes: 1 addition & 1 deletion wlwmanifest.xml
Expand Up @@ -61,7 +61,7 @@
<imageUrl>{blog-postapi-url}/../framework/core/assets/images/comments.png</imageUrl>
<clickUrl>
<![CDATA[
{blog-postapi-url}/../index.php?controller=expComment&action=manage
{blog-postapi-url}/../index.php?controller=expComment&action=manage&content_type=blog&content_id={blog-id}
]]>
</clickUrl>
</button>
Expand Down

0 comments on commit c3730a6

Please sign in to comment.