| @@ 66-72 (lines=7) @@ | ||
| 63 | $app_path = \OC_App::getAppPath($app); |
|
| 64 | $app_url = \OC_App::getAppWebPath($app); |
|
| 65 | ||
| 66 | if ($app_path === false && $app_url === false) { |
|
| 67 | $this->logger->error('Could not find resource {resource} to load', [ |
|
| 68 | 'resource' => $app . '/' . $style . '.css', |
|
| 69 | 'app' => 'cssresourceloader', |
|
| 70 | ]); |
|
| 71 | return; |
|
| 72 | } |
|
| 73 | ||
| 74 | if(!$this->cacheAndAppendScssIfExist($app_path, $style.'.scss', $app)) { |
|
| 75 | $this->append($app_path, $style.'.css', $app_url); |
|
| @@ 84-90 (lines=7) @@ | ||
| 81 | return; |
|
| 82 | } |
|
| 83 | ||
| 84 | if ($app_path === false && $app_url === false) { |
|
| 85 | $this->logger->error('Could not find resource {resource} to load', [ |
|
| 86 | 'resource' => $app . '/' . $script . '.js', |
|
| 87 | 'app' => 'jsresourceloader', |
|
| 88 | ]); |
|
| 89 | return; |
|
| 90 | } |
|
| 91 | ||
| 92 | if (!$this->cacheAndAppendCombineJsonIfExist($app_path, $script.'.json', $app)) { |
|
| 93 | $this->append($app_path, $script . '.js', $app_url); |
|