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