|
@@ 198-201 (lines=4) @@
|
| 195 |
|
$path = \OC::$WEBROOT . "/themes/$theme/apps/$app/img/$basename.png"; |
| 196 |
|
} elseif (!empty($app) and file_exists(\OC::$SERVERROOT . "/themes/$theme/$app/img/$image")) { |
| 197 |
|
$path = \OC::$WEBROOT . "/themes/$theme/$app/img/$image"; |
| 198 |
|
} elseif (!empty($app) and (!file_exists(\OC::$SERVERROOT . "/themes/$theme/$app/img/$basename.svg") |
| 199 |
|
&& file_exists(\OC::$SERVERROOT . "/themes/$theme/$app/img/$basename.png"))) { |
| 200 |
|
$path = \OC::$WEBROOT . "/themes/$theme/$app/img/$basename.png"; |
| 201 |
|
} elseif (file_exists(\OC::$SERVERROOT . "/themes/$theme/core/img/$image")) { |
| 202 |
|
$path = \OC::$WEBROOT . "/themes/$theme/core/img/$image"; |
| 203 |
|
} elseif (!file_exists(\OC::$SERVERROOT . "/themes/$theme/core/img/$basename.svg") |
| 204 |
|
&& file_exists(\OC::$SERVERROOT . "/themes/$theme/core/img/$basename.png")) { |
|
@@ 215-218 (lines=4) @@
|
| 212 |
|
$path = \OC_App::getAppWebPath($app) . "/img/$basename.png"; |
| 213 |
|
} elseif (!empty($app) and file_exists(\OC::$SERVERROOT . "/$app/img/$image")) { |
| 214 |
|
$path = \OC::$WEBROOT . "/$app/img/$image"; |
| 215 |
|
} elseif (!empty($app) and (!file_exists(\OC::$SERVERROOT . "/$app/img/$basename.svg") |
| 216 |
|
&& file_exists(\OC::$SERVERROOT . "/$app/img/$basename.png"))) { |
| 217 |
|
$path = \OC::$WEBROOT . "/$app/img/$basename.png"; |
| 218 |
|
} elseif (file_exists(\OC::$SERVERROOT . "/core/img/$image")) { |
| 219 |
|
$path = \OC::$WEBROOT . "/core/img/$image"; |
| 220 |
|
} elseif (!file_exists(\OC::$SERVERROOT . "/core/img/$basename.svg") |
| 221 |
|
&& file_exists(\OC::$SERVERROOT . "/core/img/$basename.png")) { |