aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2015-09-24 12:50:27 +0200
committerzottel <github@zottel.net>2015-09-24 12:50:27 +0200
commit03fb13e7497457d5fe69fc8ed007e5e49a2d6d8a (patch)
tree21382406c34ff3adf8e866fdcf5be39a8f2a72e3
parent0bfdb45b414b477573b6389e7730d8f93f53993e (diff)
parente04f04ef0f79d938576668c57d7240d376155a8a (diff)
downloadvolse-hubzilla-03fb13e7497457d5fe69fc8ed007e5e49a2d6d8a.tar.gz
volse-hubzilla-03fb13e7497457d5fe69fc8ed007e5e49a2d6d8a.tar.bz2
volse-hubzilla-03fb13e7497457d5fe69fc8ed007e5e49a2d6d8a.zip
Merge remote-tracking branch 'upstream/master'
-rwxr-xr-xboot.php2
-rw-r--r--include/event.php16
-rw-r--r--include/identity.php4
-rw-r--r--include/zot.php2
-rw-r--r--install/schema_mysql.sql1
-rw-r--r--install/schema_postgres.sql1
-rw-r--r--install/update.php12
-rw-r--r--mod/import.php2
-rw-r--r--version.inc2
9 files changed, 33 insertions, 9 deletions
diff --git a/boot.php b/boot.php
index 5a564bb9d..8e0e3b004 100755
--- a/boot.php
+++ b/boot.php
@@ -50,7 +50,7 @@ define ( 'PLATFORM_NAME', 'hubzilla' );
define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'H');
define ( 'ZOT_REVISION', 1 );
-define ( 'DB_UPDATE_VERSION', 1154 );
+define ( 'DB_UPDATE_VERSION', 1155 );
/**
* @brief Constant with a HTML line break.
diff --git a/include/event.php b/include/event.php
index 44c172e98..f0a806dfa 100644
--- a/include/event.php
+++ b/include/event.php
@@ -526,13 +526,17 @@ function event_import_ical($ical, $uid) {
// logger('dtstart: ' . var_export($dtstart,true));
- if(($dtstart->timezone_type == 2) || (($dtstart->timezone_type == 3) && ($dtstart->timezone === 'UTC'))) {
- $ev['adjust'] = 1;
- }
- else {
- $ev['adjust'] = 0;
+
+ switch($dtstart->timezone_type) {
+ case VObject\Property\DateTime::UTC :
+ $ev['adjust'] = 0;
+ break;
+ case VObject\Property\DateTime::LOCALTZ :
+ default:
+ $ev['adjust'] = 1;
+ break;
}
-
+
$ev['start'] = datetime_convert((($ev['adjust']) ? 'UTC' : date_default_timezone_get()),'UTC',
$dtstart->format(\DateTime::W3C));
diff --git a/include/identity.php b/include/identity.php
index b5235e7ff..47738a8fa 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -616,6 +616,10 @@ function identity_basic_export($channel_id, $items = false) {
}
}
+ $addon = array('channel_id' => $channel_id,'data' => $ret);
+ call_hooks('identity_basic_export',$addon);
+ $ret = $addon['data'];
+
if(! $items)
return $ret;
diff --git a/include/zot.php b/include/zot.php
index 288493b07..9bddb520d 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -3319,6 +3319,8 @@ function process_channel_sync_delivery($sender, $arr, $deliveries) {
if(array_key_exists('item_id',$arr) && $arr['item_id'])
sync_items($channel,$arr['item_id']);
+ $addon = array('channel' => $channel,'data' => $arr);
+ call_hooks('process_channel_sync_delivery',$addon);
// we should probably do this for all items, but usually we only send one.
diff --git a/install/schema_mysql.sql b/install/schema_mysql.sql
index a21e5f48a..c78259e41 100644
--- a/install/schema_mysql.sql
+++ b/install/schema_mysql.sql
@@ -396,6 +396,7 @@ CREATE TABLE IF NOT EXISTS `event` (
`event_repeat` text NOT NULL,
`event_sequence` smallint(6) NOT NULL DEFAULT '0',
`event_priority` smallint(6) NOT NULL DEFAULT '0',
+ `event_vdata` text NOT NULL,
PRIMARY KEY (`id`),
KEY `uid` (`uid`),
KEY `type` (`type`),
diff --git a/install/schema_postgres.sql b/install/schema_postgres.sql
index 26d7d79a3..6145e9ccb 100644
--- a/install/schema_postgres.sql
+++ b/install/schema_postgres.sql
@@ -392,6 +392,7 @@ CREATE TABLE "event" (
"event_repeat" text NOT NULL,
"event_sequence" smallint NOT NULL DEFAULT '0',
"event_priority" smallint NOT NULL DEFAULT '0',
+ "event_vdata" text NOT NULL,
PRIMARY KEY ("id")
);
create index "event_uid_idx" on event ("uid");
diff --git a/install/update.php b/install/update.php
index bef754570..9f4457600 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1154 );
+define( 'UPDATE_VERSION' , 1155 );
/**
*
@@ -1865,3 +1865,13 @@ function update_r1153() {
}
+
+function update_r1154() {
+
+ $r = q("ALTER TABLE event ADD event_vdata text NOT NULL ");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+
+}
+
diff --git a/mod/import.php b/mod/import.php
index 563967aa2..b6e36d734 100644
--- a/mod/import.php
+++ b/mod/import.php
@@ -450,6 +450,8 @@ function import_post(&$a) {
if(is_array($data['menu']))
import_menus($channel,$data['menu']);
+ $addon = array('channel' => $channel,'data' => $data);
+ call_hooks('import_channel',$addon);
$saved_notification_flags = notifications_off($channel['channel_id']);
diff --git a/version.inc b/version.inc
index 3b70e98ac..e621e16cb 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2015-09-22.1163
+2015-09-23.1164