php7 compat
This commit is contained in:
parent
e415bd3fca
commit
d043852785
3 changed files with 4 additions and 5 deletions
|
@ -124,7 +124,7 @@ class AkismetHttpClient extends AkismetObject {
|
|||
|
||||
|
||||
// Constructor
|
||||
function AkismetHttpClient($host, $blogUrl, $apiKey, $port = 80) {
|
||||
function __construct($host, $blogUrl, $apiKey, $port = 80) {
|
||||
$this->host = $host;
|
||||
$this->port = $port;
|
||||
$this->blogUrl = $blogUrl;
|
||||
|
@ -221,7 +221,7 @@ class Akismet extends AkismetObject {
|
|||
* @param String $apiKey Your wordpress API key
|
||||
* @param String[] $comment A formatted comment array to be examined by the Akismet service
|
||||
*/
|
||||
function Akismet($blogUrl, $apiKey, $comment) {
|
||||
function __construct($blogUrl, $apiKey, $comment) {
|
||||
$this->blogUrl = $blogUrl;
|
||||
$this->apiKey = $apiKey;
|
||||
|
||||
|
|
|
@ -282,7 +282,6 @@ class getid3_lib
|
|||
}
|
||||
} else {
|
||||
throw new Exception('ERROR: Cannot have signed integers larger than '.(8 * PHP_INT_SIZE).'-bits ('.strlen($byteword).') in getid3_lib::BigEndian2Int()');
|
||||
break;
|
||||
}
|
||||
}
|
||||
return getid3_lib::CastAsInt($intvalue);
|
||||
|
@ -1314,4 +1313,4 @@ class getid3_lib
|
|||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
@ -416,7 +416,7 @@ class Securimage {
|
|||
* </code>
|
||||
*
|
||||
*/
|
||||
function Securimage()
|
||||
function __construct()
|
||||
{
|
||||
if ( session_id() == '' ) { // no session has been started yet, which is needed for validation
|
||||
session_start();
|
||||
|
|
Reference in a new issue