| @@ 317-323 (lines=7) @@ | ||
| 314 | * @param string $fileName |
|
| 315 | * @return string |
|
| 316 | */ |
|
| 317 | public function getCachedSCSS(string $appName, string $fileName): string { |
|
| 318 | $tmpfileLoc = explode('/', $fileName); |
|
| 319 | $fileName = array_pop($tmpfileLoc); |
|
| 320 | $fileName = $this->prependBaseurlPrefix(str_replace('.scss', '.css', $fileName)); |
|
| 321 | ||
| 322 | return substr($this->urlGenerator->linkToRoute('core.Css.getCss', ['fileName' => $fileName, 'appName' => $appName]), strlen(\OC::$WEBROOT) + 1); |
|
| 323 | } |
|
| 324 | ||
| 325 | /** |
|
| 326 | * Prepend hashed base url to the css file |
|
| @@ 207-213 (lines=7) @@ | ||
| 204 | * @param string $fileName |
|
| 205 | * @return string |
|
| 206 | */ |
|
| 207 | public function getCachedJS($appName, $fileName) { |
|
| 208 | $tmpfileLoc = explode('/', $fileName); |
|
| 209 | $fileName = array_pop($tmpfileLoc); |
|
| 210 | $fileName = str_replace('.json', '.js', $fileName); |
|
| 211 | ||
| 212 | return substr($this->urlGenerator->linkToRoute('core.Js.getJs', array('fileName' => $fileName, 'appName' => $appName)), strlen(\OC::$WEBROOT) + 1); |
|
| 213 | } |
|
| 214 | ||
| 215 | /** |
|
| 216 | * @param string $root |
|