mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
fix installation into subdir of domain
This commit is contained in:
parent
e818170c9f
commit
2ef6ad80a4
4 changed files with 9 additions and 3 deletions
5
boot.php
5
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() . '/'
|
||||
));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue