mirror of
https://github.com/friendica/friendica
synced 2024-11-10 08:22:57 +00:00
dont check but only copy if BasePath is present
This commit is contained in:
parent
bb8216cbc8
commit
16f44a8237
1 changed files with 3 additions and 5 deletions
|
@ -182,13 +182,11 @@ class App
|
|||
*/
|
||||
public function registerStylesheet($path)
|
||||
{
|
||||
if (!empty($this->getBasePath())) {
|
||||
$url = str_replace($this->getBasePath() . DIRECTORY_SEPARATOR, '', $path);
|
||||
} else {
|
||||
$url = $path;
|
||||
if (mb_strpos($path, $this->getBasePath() . DIRECTORY_SEPARATOR) == 0) {
|
||||
$path = mb_substr($path, mb_strlen($this->getBasePath() . DIRECTORY_SEPARATOR));
|
||||
}
|
||||
|
||||
$this->stylesheets[] = trim($url, '/');
|
||||
$this->stylesheets[] = trim($path, '/');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue