| @@ 178-184 (lines=7) @@ | ||
| 175 | * @param string $fileName |
|
| 176 | * @return string |
|
| 177 | */ |
|
| 178 | public function getCachedJS($appName, $fileName) { |
|
| 179 | $tmpfileLoc = explode('/', $fileName); |
|
| 180 | $fileName = array_pop($tmpfileLoc); |
|
| 181 | $fileName = str_replace('.json', '.js', $fileName); |
|
| 182 | ||
| 183 | return substr($this->urlGenerator->linkToRoute('core.Js.getJs', array('fileName' => $fileName, 'appName' => $appName)), strlen(\OC::$WEBROOT) + 1); |
|
| 184 | } |
|
| 185 | ||
| 186 | /** |
|
| 187 | * @param string $root |
|
| @@ 290-296 (lines=7) @@ | ||
| 287 | * @param string $fileName |
|
| 288 | * @return string |
|
| 289 | */ |
|
| 290 | public function getCachedSCSS($appName, $fileName) { |
|
| 291 | $tmpfileLoc = explode('/', $fileName); |
|
| 292 | $fileName = array_pop($tmpfileLoc); |
|
| 293 | $fileName = str_replace('.scss', '.css', $fileName); |
|
| 294 | ||
| 295 | return substr($this->urlGenerator->linkToRoute('core.Css.getCss', array('fileName' => $fileName, 'appName' => $appName)), strlen(\OC::$WEBROOT) + 1); |
|
| 296 | } |
|
| 297 | } |
|
| 298 | ||