Fix PHP7 compatibility problems. (#53)
This commit is contained in:
parent
6635eeb27a
commit
ce1bed563c
|
@ -1,3 +1,7 @@
|
|||
1.47
|
||||
----
|
||||
* Fix PHP7 incompatibility
|
||||
|
||||
1.46:
|
||||
-----
|
||||
* Updated translation (german), fixed some english descriptions
|
||||
|
|
|
@ -121,7 +121,7 @@ class mimeDecode
|
|||
* @param string The input to decode
|
||||
* @access public
|
||||
*/
|
||||
function mimeDecode($input)
|
||||
function __construct($input)
|
||||
{
|
||||
list($header, $body) = $this->_splitBodyHeader($input);
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ class POP3 {
|
|||
// This must be set to true
|
||||
// manually
|
||||
|
||||
function POP3 ( $server = '', $timeout = '' ) {
|
||||
function __construct ( $server = '', $timeout = '' ) {
|
||||
settype($this->BUFFER,"integer");
|
||||
if( !empty($server) ) {
|
||||
// Do not allow programs to alter MAILSERVER
|
||||
|
|
|
@ -12,7 +12,7 @@ require_once('tmobile.php');
|
|||
require_once('o2.php');
|
||||
|
||||
// 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_HIDENAME', 'popfetcher'); // User should set this to something unguessable
|
||||
define('DEFAULT_MAILSERVER', '');
|
||||
|
@ -1598,4 +1598,4 @@ class serendipity_event_popfetcher extends serendipity_event
|
|||
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
|
@ -9,6 +9,10 @@ TODO:
|
|||
* Twitter announcements/credentials etc. per author instead of
|
||||
only per central blog
|
||||
|
||||
1.68:
|
||||
-----
|
||||
* Fix PHP7 incompatibility
|
||||
|
||||
1.67:
|
||||
-----
|
||||
* Added serendipity_request_url API method
|
||||
|
|
|
@ -34,7 +34,7 @@ class Twitter {
|
|||
* The constructor of this class.
|
||||
* @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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue