| @@ 172-178 (lines=7) @@ | ||
| 169 | * @param string $fileName |
|
| 170 | * @return string |
|
| 171 | */ |
|
| 172 | public function getCachedJS($appName, $fileName) { |
|
| 173 | $tmpfileLoc = explode('/', $fileName); |
|
| 174 | $fileName = array_pop($tmpfileLoc); |
|
| 175 | $fileName = str_replace('.json', '.js', $fileName); |
|
| 176 | ||
| 177 | return substr($this->urlGenerator->linkToRoute('core.Js.getJs', array('fileName' => $fileName, 'appName' => $appName)), strlen(\OC::$WEBROOT) + 1); |
|
| 178 | } |
|
| 179 | ||
| 180 | /** |
|
| 181 | * @param string $root |
|
| @@ 222-228 (lines=7) @@ | ||
| 219 | * @param string $fileName |
|
| 220 | * @return string |
|
| 221 | */ |
|
| 222 | public function getCachedSCSS($appName, $fileName) { |
|
| 223 | $tmpfileLoc = explode('/', $fileName); |
|
| 224 | $fileName = array_pop($tmpfileLoc); |
|
| 225 | $fileName = str_replace('.scss', '.css', $fileName); |
|
| 226 | ||
| 227 | return substr($this->urlGenerator->linkToRoute('core.Css.getCss', array('fileName' => $fileName, 'appName' => $appName)), strlen(\OC::$WEBROOT) + 1); |
|
| 228 | } |
|
| 229 | } |
|
| 230 | ||