aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-12-02 17:31:48 -0800
committerFriendika <info@friendika.com>2010-12-02 17:31:48 -0800
commit2ef6ad80a4f7374e0488b8b10b8139e3392f81ff (patch)
treef66c18e83e09044e276bb256e061e361e6c6781f /boot.php
parente818170c9fc4bf5c5cf11c83693e5d9a3f00260d (diff)
downloadvolse-hubzilla-2ef6ad80a4f7374e0488b8b10b8139e3392f81ff.tar.gz
volse-hubzilla-2ef6ad80a4f7374e0488b8b10b8139e3392f81ff.tar.bz2
volse-hubzilla-2ef6ad80a4f7374e0488b8b10b8139e3392f81ff.zip
fix installation into subdir of domain
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index 66236f39d..abc4c04e4 100644
--- a/boot.php
+++ b/boot.php
@@ -169,6 +169,9 @@ class App {
if(x($_GET,'q'))
$this->cmd = trim($_GET['q'],'/');
+ $path = trim(dirname($_SERVER['SCRIPT_NAME']),'/');
+ if(isset($path) && strlen($path) && ($path != $this->path))
+ $this->path = $path;
$this->argv = explode('/',$this->cmd);
$this->argc = count($this->argv);
@@ -231,7 +234,7 @@ class App {
function init_pagehead() {
$tpl = load_view_file("view/head.tpl");
$this->page['htmlhead'] = replace_macros($tpl,array(
- '$baseurl' => $this->get_baseurl()
+ '$baseurl' => $this->get_baseurl() . '/'
));
}