https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1c2a77c
)
check if BasePath is empty to prevent mangeled up CSS path
author
Tobias Diekershoff
<tobias.diekershoff@gmx.net>
Sat, 30 Mar 2019 10:13:27 +0000
(11:13 +0100)
committer
Tobias Diekershoff
<tobias.diekershoff@gmx.net>
Sat, 30 Mar 2019 10:13:27 +0000
(11:13 +0100)
src/App.php
patch
|
blob
|
history
diff --git
a/src/App.php
b/src/App.php
index
c0afd51
..
3408241
100644
(file)
--- a/
src/App.php
+++ b/
src/App.php
@@
-182,7
+182,11
@@
class App
*/
public function registerStylesheet($path)
{
- $url = str_replace($this->getBasePath() . DIRECTORY_SEPARATOR, '', $path);
+ if (!empty($this->getBasePath())) {
+ $url = str_replace($this->getBasePath() . DIRECTORY_SEPARATOR, '', $path);
+ } else {
+ $url = $path;
+ }
$this->stylesheets[] = trim($url, '/');
}