aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-10-19 17:01:59 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-10-19 17:01:59 -0700
commit0f3b7dd6e96eddb650a9fd47fa6d83fee4a419bc (patch)
treecd992d6001ec837707eb70a3adde23ef18d86c1c /include
parentbab73edcefe5ee525a879c6be7e3a2db7c565f3d (diff)
downloadvolse-hubzilla-0f3b7dd6e96eddb650a9fd47fa6d83fee4a419bc.tar.gz
volse-hubzilla-0f3b7dd6e96eddb650a9fd47fa6d83fee4a419bc.tar.bz2
volse-hubzilla-0f3b7dd6e96eddb650a9fd47fa6d83fee4a419bc.zip
update site on initial directory setup
Diffstat (limited to 'include')
-rw-r--r--include/dir_fns.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/dir_fns.php b/include/dir_fns.php
index e466b7404..b9f143b55 100644
--- a/include/dir_fns.php
+++ b/include/dir_fns.php
@@ -177,16 +177,19 @@ function sync_directories($dirmode) {
'site_update' => NULL_DATE,
'site_directory' => DIRECTORY_FALLBACK_MASTER . '/dirsearch',
'site_realm' => DIRECTORY_REALM,
- 'site_valid' => 1
+ 'site_valid' => 1,
+ 'site_project' => PLATFORM_NAME
+
);
- $x = q("insert into site ( site_url, site_flags, site_update, site_directory, site_realm, site_valid )
- values ( '%s', %d', '%s', '%s', '%s' ) ",
+ $x = q("insert into site ( site_url, site_flags, site_update, site_directory, site_realm, site_valid, site_project )
+ values ( '%s', %d, '%s', '%s', '%s', %d, '%s' ) ",
dbesc($r[0]['site_url']),
intval($r[0]['site_flags']),
dbesc($r[0]['site_update']),
dbesc($r[0]['site_directory']),
dbesc($r[0]['site_realm']),
- intval($r[0]['site_valid'])
+ intval($r[0]['site_valid']),
+ dbesc($r[0]['site_project'])
);
$r = q("select * from site where (site_flags & %d) > 0 and site_url != '%s' and site_type = %d ",