Fixed import on Kopano Webapp 3.1.1

This commit is contained in:
2016-10-31 23:01:52 +01:00
parent cfe069dbd0
commit 7746bdd562
8 changed files with 446 additions and 18 deletions

View File

@@ -43,7 +43,7 @@ class CalendarModule extends Module
*/
public function __construct($id, $data)
{
parent::Module($id, $data);
parent::__construct($id, $data);
// init default timezone
date_default_timezone_set(PLUGIN_CALENDARIMPORTER_DEFAULT_TIMEZONE);
@@ -619,7 +619,7 @@ class CalendarModule extends Module
$parser = VObject\Reader::read(
fopen($actionData["ics_filepath"],'r')
);
error_log(print_r($parser->VTIMEZONE, true));
//error_log(print_r($parser->VTIMEZONE, true));
} catch (Exception $e) {
$error = true;
$error_msg = $e->getMessage();

View File

@@ -33,9 +33,7 @@ class Plugincalendarimporter extends Plugin
/**
* Constructor
*/
function Plugincalendarimporter()
{
}
function __construct() {}
/**
* Function initializes the Plugin and registers all hooks