Fix PHP7 compatibility problems. (#53)

This commit is contained in:
Mario Hommel 2017-03-10 19:01:33 +01:00 committed by onli
parent 6635eeb27a
commit ce1bed563c
6 changed files with 13 additions and 5 deletions

View file

@ -1,3 +1,7 @@
1.47
----
* Fix PHP7 incompatibility
1.46: 1.46:
----- -----
* Updated translation (german), fixed some english descriptions * Updated translation (german), fixed some english descriptions

View file

@ -121,7 +121,7 @@ class mimeDecode
* @param string The input to decode * @param string The input to decode
* @access public * @access public
*/ */
function mimeDecode($input) function __construct($input)
{ {
list($header, $body) = $this->_splitBodyHeader($input); list($header, $body) = $this->_splitBodyHeader($input);

View file

@ -41,7 +41,7 @@ class POP3 {
// This must be set to true // This must be set to true
// manually // manually
function POP3 ( $server = '', $timeout = '' ) { function __construct ( $server = '', $timeout = '' ) {
settype($this->BUFFER,"integer"); settype($this->BUFFER,"integer");
if( !empty($server) ) { if( !empty($server) ) {
// Do not allow programs to alter MAILSERVER // Do not allow programs to alter MAILSERVER

View file

@ -12,7 +12,7 @@ require_once('tmobile.php');
require_once('o2.php'); require_once('o2.php');
// Default values // Default values
define('POPFETCHER_VERSION', '1.46'); // This version of Popfetcher define('POPFETCHER_VERSION', '1.47'); // This version of Popfetcher
define('DEFAULT_ADMINMENU', 'true'); // True if run as sidebar plugin. False if external plugin. define('DEFAULT_ADMINMENU', 'true'); // True if run as sidebar plugin. False if external plugin.
define('DEFAULT_HIDENAME', 'popfetcher'); // User should set this to something unguessable define('DEFAULT_HIDENAME', 'popfetcher'); // User should set this to something unguessable
define('DEFAULT_MAILSERVER', ''); define('DEFAULT_MAILSERVER', '');
@ -1598,4 +1598,4 @@ class serendipity_event_popfetcher extends serendipity_event
} }
} }
?> ?>

View file

@ -9,6 +9,10 @@ TODO:
* Twitter announcements/credentials etc. per author instead of * Twitter announcements/credentials etc. per author instead of
only per central blog only per central blog
1.68:
-----
* Fix PHP7 incompatibility
1.67: 1.67:
----- -----
* Added serendipity_request_url API method * Added serendipity_request_url API method

View file

@ -34,7 +34,7 @@ class Twitter {
* The constructor of this class. * The constructor of this class.
* @param boolean use_identi_ca default=false (use twitter mode) * @param boolean use_identi_ca default=false (use twitter mode)
*/ */
function Twitter($use_identi_ca = false) { function __construct($use_identi_ca = false) {
$this->use_identica = $use_identi_ca; $this->use_identica = $use_identi_ca;
} }