|
@@ 193-196 (lines=4) @@
|
| 190 |
|
$path = \OC::$WEBROOT . "/themes/$theme/$app/img/$basename.png"; |
| 191 |
|
} elseif (file_exists(\OC::$SERVERROOT . "/themes/$theme/core/img/$image")) { |
| 192 |
|
$path = \OC::$WEBROOT . "/themes/$theme/core/img/$image"; |
| 193 |
|
} elseif (!file_exists(\OC::$SERVERROOT . "/themes/$theme/core/img/$basename.svg") |
| 194 |
|
&& file_exists(\OC::$SERVERROOT . "/themes/$theme/core/img/$basename.png")) { |
| 195 |
|
$path = \OC::$WEBROOT . "/themes/$theme/core/img/$basename.png"; |
| 196 |
|
} elseif ($appPath && file_exists($appPath . "/img/$image")) { |
| 197 |
|
$path = \OC_App::getAppWebPath($app) . "/img/$image"; |
| 198 |
|
} elseif ($appPath && !file_exists($appPath . "/img/$basename.svg") |
| 199 |
|
&& file_exists($appPath . "/img/$basename.png")) { |
|
@@ 208-211 (lines=4) @@
|
| 205 |
|
$path = \OC::$WEBROOT . "/$app/img/$basename.png"; |
| 206 |
|
} elseif (file_exists(\OC::$SERVERROOT . "/core/img/$image")) { |
| 207 |
|
$path = \OC::$WEBROOT . "/core/img/$image"; |
| 208 |
|
} elseif (!file_exists(\OC::$SERVERROOT . "/core/img/$basename.svg") |
| 209 |
|
&& file_exists(\OC::$SERVERROOT . "/core/img/$basename.png")) { |
| 210 |
|
$path = \OC::$WEBROOT . "/themes/$theme/core/img/$basename.png"; |
| 211 |
|
} |
| 212 |
|
|
| 213 |
|
if($path !== '') { |
| 214 |
|
$cache->set($cacheKey, $path); |