| @@ 327-333 (lines=7) @@ | ||
| 324 | * @param string $fileName |
|
| 325 | * @return string |
|
| 326 | */ |
|
| 327 | public function getCachedSCSS(string $appName, string $fileName): string { |
|
| 328 | $tmpfileLoc = explode('/', $fileName); |
|
| 329 | $fileName = array_pop($tmpfileLoc); |
|
| 330 | $fileName = $this->prependVersionPrefix($this->prependBaseurlPrefix(str_replace('.scss', '.css', $fileName)), $appName); |
|
| 331 | ||
| 332 | return substr($this->urlGenerator->linkToRoute('core.Css.getCss', ['fileName' => $fileName, 'appName' => $appName]), strlen(\OC::$WEBROOT) + 1); |
|
| 333 | } |
|
| 334 | ||
| 335 | /** |
|
| 336 | * Prepend hashed base url to the css file |
|
| @@ 219-225 (lines=7) @@ | ||
| 216 | * @param string $fileName |
|
| 217 | * @return string |
|
| 218 | */ |
|
| 219 | public function getCachedJS($appName, $fileName) { |
|
| 220 | $tmpfileLoc = explode('/', $fileName); |
|
| 221 | $fileName = array_pop($tmpfileLoc); |
|
| 222 | $fileName = $this->prependVersionPrefix(str_replace('.json', '.js', $fileName), $appName); |
|
| 223 | ||
| 224 | return substr($this->urlGenerator->linkToRoute('core.Js.getJs', array('fileName' => $fileName, 'appName' => $appName)), strlen(\OC::$WEBROOT) + 1); |
|
| 225 | } |
|
| 226 | ||
| 227 | /** |
|
| 228 | * @param string $root |
|