diff options
author | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2015-09-30 12:21:36 +0200 |
---|---|---|
committer | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2015-09-30 12:21:36 +0200 |
commit | e07ff7d3fbb9bef720831dc71470b70a882abfdf (patch) | |
tree | 68934f0deb2fb9edef69954d1016734bc8662957 /mod/regdir.php | |
parent | b22fa9f7f4b77569c29b0fc881373393281b7bf4 (diff) | |
parent | e769fbaffb09aa673d7475c598e7df7e7978d210 (diff) | |
download | volse-hubzilla-e07ff7d3fbb9bef720831dc71470b70a882abfdf.tar.gz volse-hubzilla-e07ff7d3fbb9bef720831dc71470b70a882abfdf.tar.bz2 volse-hubzilla-e07ff7d3fbb9bef720831dc71470b70a882abfdf.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'mod/regdir.php')
-rw-r--r-- | mod/regdir.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/regdir.php b/mod/regdir.php index dce50e76a..7168c3373 100644 --- a/mod/regdir.php +++ b/mod/regdir.php @@ -86,8 +86,9 @@ function regdir_init(&$a) { if ($dirmode == DIRECTORY_MODE_STANDALONE) { $r = array(array('site_url' => z_root())); } else { - $r = q("select site_url from site where site_flags in ( 1, 2 ) and site_realm = '%s' $sql_extra ", - dbesc(get_directory_realm()) + $r = q("select site_url from site where site_flags in ( 1, 2 ) and site_realm = '%s' and site_type = %d $sql_extra ", + dbesc(get_directory_realm()), + intval(SITE_TYPE_ZOT) ); } if ($r) { |