aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-02 17:33:55 -0800
committerfriendica <info@friendica.com>2015-02-02 17:33:55 -0800
commit03bb236651fa77c5e73bd04bcf918091d26557b3 (patch)
treefbe6ac5b14cb6b7001caff86aefeb03e9658d3fe /mod
parent09c146f3118019935805158364c4bc303a7481a3 (diff)
parentfb6deb113b718e18bf1e5031ec868b53acf93c1e (diff)
downloadvolse-hubzilla-03bb236651fa77c5e73bd04bcf918091d26557b3.tar.gz
volse-hubzilla-03bb236651fa77c5e73bd04bcf918091d26557b3.tar.bz2
volse-hubzilla-03bb236651fa77c5e73bd04bcf918091d26557b3.zip
Merge branch 'master' into pocorate
Diffstat (limited to 'mod')
-rw-r--r--mod/regdir.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/mod/regdir.php b/mod/regdir.php
index c00187978..eecc99ca5 100644
--- a/mod/regdir.php
+++ b/mod/regdir.php
@@ -47,9 +47,14 @@ function regdir_init(&$a) {
json_return_and_die($result);
}
else {
- $r = q("select site_url from site where site_flags in ( 1, 2 ) and site_realm = '%s'",
- dbesc(get_directory_realm())
- );
+ 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'",
+ dbesc(get_directory_realm())
+ );
+ }
if($r) {
$result['success'] = true;
$result['directories'] = array();