aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-11-18 23:51:00 +0100
committerMario Vavti <mario@mariovavti.com>2015-11-18 23:51:00 +0100
commit0c163c4d038a4c26335af1bde366d8ef9e53c464 (patch)
tree942f1217e80087737172c2d0b40d7cf2711a4532 /include
parente4145deeb7a72ac321113fde672e1b499ecb0d2d (diff)
parent179730e4851bfb26151502d4473231df86b9c8df (diff)
downloadvolse-hubzilla-0c163c4d038a4c26335af1bde366d8ef9e53c464.tar.gz
volse-hubzilla-0c163c4d038a4c26335af1bde366d8ef9e53c464.tar.bz2
volse-hubzilla-0c163c4d038a4c26335af1bde366d8ef9e53c464.zip
Merge branch 'master' of https://github.com/redmatrix/hubzilla
Diffstat (limited to 'include')
-rw-r--r--include/import.php8
-rw-r--r--include/widgets.php1
2 files changed, 5 insertions, 4 deletions
diff --git a/include/import.php b/include/import.php
index 0fd1ab2a5..ffaea6c1a 100644
--- a/include/import.php
+++ b/include/import.php
@@ -2,7 +2,7 @@
require_once('include/menu.php');
-function import_channel($channel) {
+function import_channel($channel, $account_id) {
if(! array_key_exists('channel_system',$channel)) {
$channel['channel_system'] = (($channel['channel_pageflags'] & 0x1000) ? 1 : 0);
@@ -48,7 +48,7 @@ function import_channel($channel) {
}
unset($channel['channel_id']);
- $channel['channel_account_id'] = get_account_id();
+ $channel['channel_account_id'] = $account_id;
$channel['channel_primary'] = (($seize) ? 1 : 0);
if($channel['channel_pageflags'] & PAGE_ALLOWCODE) {
@@ -72,7 +72,7 @@ function import_channel($channel) {
}
$r = q("select * from channel where channel_account_id = %d and channel_guid = '%s' limit 1",
- intval(get_account_id()),
+ intval($account_id),
$channel['channel_guid'] // Already dbesc'd
);
if(! $r) {
@@ -83,7 +83,7 @@ function import_channel($channel) {
// reset
$channel = $r[0];
- set_default_login_identity(get_account_id(),$channel['channel_id'],false);
+ set_default_login_identity($account_id,$channel['channel_id'],false);
logger('import step 1');
$_SESSION['import_step'] = 1;
ref_session_write(session_id(), serialize($_SESSION));
diff --git a/include/widgets.php b/include/widgets.php
index 5358fcbb9..2724b42aa 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -7,6 +7,7 @@
require_once('include/dir_fns.php');
require_once('include/contact_widgets.php');
+require_once('include/attach.php');
function widget_profile($args) {