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
(parent:
bb8216c
)
dont check but only copy if BasePath is present
author
Tobias Diekershoff
<tobias.diekershoff@gmx.net>
Sun, 31 Mar 2019 06:53:25 +0000
(08:53 +0200)
committer
Tobias Diekershoff
<tobias.diekershoff@gmx.net>
Sun, 31 Mar 2019 06:53:25 +0000
(08:53 +0200)
src/App.php
patch
|
blob
|
history
diff --git
a/src/App.php
b/src/App.php
index
3408241
..
e55514f
100644
(file)
--- a/
src/App.php
+++ b/
src/App.php
@@
-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
, '/');
}
/**