aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2014-03-07 21:31:19 +0000
committerThomas Willingham <founder@kakste.com>2014-03-07 21:31:19 +0000
commit70ff71c03b2e9663b4b6e3a536cd726749039a08 (patch)
tree09f655c2896a90057e25343012b447f5cf3f7fbb
parent9f111324616269f61560cf8097737ebd408eea94 (diff)
downloadvolse-hubzilla-70ff71c03b2e9663b4b6e3a536cd726749039a08.tar.gz
volse-hubzilla-70ff71c03b2e9663b4b6e3a536cd726749039a08.tar.bz2
volse-hubzilla-70ff71c03b2e9663b4b6e3a536cd726749039a08.zip
Create a sys chan for hubs that already exist too.
-rwxr-xr-xboot.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index f4774c4ba..e368896ca 100755
--- a/boot.php
+++ b/boot.php
@@ -1179,6 +1179,13 @@ function check_config(&$a) {
$a->set_baseurl($a->get_baseurl());
+ // Make sure each site has a system channel. This is now created on install
+ // so we just need to keep this around a couple of weeks until the hubs that
+ // already exist have one
+ $syschan_exists = get_sys_channel();
+ if (! $syschan_exists)
+ create_sys_channel();
+
if($build != DB_UPDATE_VERSION) {
$stored = intval($build);
if(! $stored) {