diff options
author | plegall <plg@piwigo.org> | 2015-12-30 16:21:32 +0100 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2015-12-30 16:21:32 +0100 |
commit | 3ec3cbe6cec5968d29cb11af139123191f4cb4ee (patch) | |
tree | 34aecd51071d63f8df1862a1a11898d8c43fe68a /include/ws_core.inc.php | |
parent | 6ba0148e646b2a193dc4111bb0a443d8c193e646 (diff) | |
parent | 1681b02ee98c2deb740d394280a2a685170bc72e (diff) |
Merge branch 'bug/385-php7'
Diffstat (limited to '')
-rw-r--r-- | include/ws_core.inc.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/ws_core.inc.php b/include/ws_core.inc.php index e46953287..648fb32d3 100644 --- a/include/ws_core.inc.php +++ b/include/ws_core.inc.php @@ -56,7 +56,7 @@ class PwgError private $_code; private $_codeText; - function PwgError($code, $codeText) + function __construct($code, $codeText) { if ($code>=400 and $code<600) { @@ -89,7 +89,7 @@ class PwgNamedArray * @param xmlAttributes array of sub-item attributes that will be encoded as * xml attributes instead of xml child elements */ - function PwgNamedArray($arr, $itemName, $xmlAttributes=array() ) + function __construct($arr, $itemName, $xmlAttributes=array() ) { $this->_content = $arr; $this->_itemName = $itemName; @@ -115,7 +115,7 @@ class PwgNamedStruct * encoded as xml attributes (if null - automatically prefer xml attributes * whenever possible) */ - function PwgNamedStruct($content, $xmlAttributes=null, $xmlElements=null ) + function __construct($content, $xmlAttributes=null, $xmlElements=null ) { $this->_content = $content; if ( isset($xmlAttributes) ) @@ -236,7 +236,7 @@ class PwgServer var $_methods = array(); - function PwgServer() + function __construct() { } @@ -688,4 +688,4 @@ Request format: ".@$this->_requestFormat." Response format: ".@$this->_responseF return $res; } } -?>
\ No newline at end of file +?> |