From bb85e139f110d2d65a54f8aefbd3777a99d053e2 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Wed, 21 Dec 2016 15:03:33 -0800 Subject: [PATCH] more vcard work --- Zotlabs/Module/Connedit.php | 1 + Zotlabs/Module/Profiles.php | 2 +- boot.php | 2 +- install/schema_mysql.sql | 1 + install/schema_postgres.sql | 1 + install/update.php | 13 ++++++++++++- view/css/mod_connedit.css | 1 - view/tpl/abook_edit.tpl | 2 +- 8 files changed, 18 insertions(+), 5 deletions(-) diff --git a/Zotlabs/Module/Connedit.php b/Zotlabs/Module/Connedit.php index 29471ed99..d60ffcd56 100644 --- a/Zotlabs/Module/Connedit.php +++ b/Zotlabs/Module/Connedit.php @@ -832,6 +832,7 @@ class Connedit extends \Zotlabs\Web\Controller { '$permnote_self' => t('Some permissions may be inherited from your channel\'s privacy settings, which have higher priority than individual settings. You can change those settings here but they wont have any impact unless the inherited setting changes.'), '$lastupdtext' => t('Last update:'), '$last_update' => relative_date($contact['abook_connected']), + '$is_mobile' => ((\App::$is_mobile || \App::$is_tablet) ? true : false), '$profile_select' => contact_profile_assign($contact['abook_profile']), '$multiprofs' => $multiprofs, '$contact_id' => $contact['abook_id'], diff --git a/Zotlabs/Module/Profiles.php b/Zotlabs/Module/Profiles.php index 19a642a83..a1689e6ed 100644 --- a/Zotlabs/Module/Profiles.php +++ b/Zotlabs/Module/Profiles.php @@ -191,7 +191,7 @@ class Profiles extends \Zotlabs\Web\Controller { } } - function post() { + function post() { if(! local_channel()) { notice( t('Permission denied.') . EOL); diff --git a/boot.php b/boot.php index 7531a45b2..7c8f54859 100755 --- a/boot.php +++ b/boot.php @@ -51,7 +51,7 @@ define ( 'PLATFORM_NAME', 'hubzilla' ); define ( 'STD_VERSION', '2.1' ); define ( 'ZOT_REVISION', '1.2' ); -define ( 'DB_UPDATE_VERSION', 1186 ); +define ( 'DB_UPDATE_VERSION', 1187 ); /** diff --git a/install/schema_mysql.sql b/install/schema_mysql.sql index 3f53ea907..bd7d9d79c 100644 --- a/install/schema_mysql.sql +++ b/install/schema_mysql.sql @@ -1059,6 +1059,7 @@ CREATE TABLE IF NOT EXISTS `profile` ( `photo` char(255) NOT NULL DEFAULT '', `thumb` char(255) NOT NULL DEFAULT '', `publish` tinyint(1) NOT NULL DEFAULT '0', + `profile_vcard` text NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `guid` (`profile_guid`,`uid`), KEY `uid` (`uid`), diff --git a/install/schema_postgres.sql b/install/schema_postgres.sql index 1a51ff718..f8e4ecf5f 100644 --- a/install/schema_postgres.sql +++ b/install/schema_postgres.sql @@ -1043,6 +1043,7 @@ CREATE TABLE "profile" ( "photo" text NOT NULL, "thumb" text NOT NULL, "publish" numeric(1) NOT NULL DEFAULT '0', + "profile_vcard" text NOT NULL DEFAULT '', PRIMARY KEY ("id"), UNIQUE ("profile_guid","uid") diff --git a/install/update.php b/install/update.php index eca7011a8..34f23b049 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ {{if $vcard.fn}}{{$vcard.fn}}{{/if}} {{if $vcard.emails.0.address}}{{/if}} - {{if $vcard.tels.0}}{{/if}} + {{if $vcard.tels.0}}{{/if}}