Merge pull request #5577 from owncloud/fix_urlgenerator_imagepath
use SERVERROOT instead of WEBROOT in all file_exists checks, whitespace
This commit is contained in:
commit
e0bc89c87f
1 changed files with 5 additions and 5 deletions
|
@ -98,12 +98,12 @@ class URLGenerator implements IURLGenerator {
|
|||
} elseif (!empty($app) and file_exists(\OC::$SERVERROOT . "/themes/$theme/$app/img/$image")) {
|
||||
return \OC::$WEBROOT . "/themes/$theme/$app/img/$image";
|
||||
} elseif (!empty($app) and (!file_exists(\OC::$SERVERROOT . "/themes/$theme/$app/img/$basename.svg")
|
||||
&& file_exists(\OC::$WEBROOT . "/themes/$theme/$app/img/$basename.png"))) {
|
||||
&& file_exists(\OC::$SERVERROOT . "/themes/$theme/$app/img/$basename.png"))) {
|
||||
return \OC::$WEBROOT . "/themes/$theme/$app/img/$basename.png";
|
||||
} elseif (!empty($app) and file_exists(\OC::$SERVERROOT . "/$app/img/$image")) {
|
||||
return \OC::$WEBROOT . "/$app/img/$image";
|
||||
} elseif (!empty($app) and (!file_exists(\OC::$SERVERROOT . "/$app/img/$basename.svg")
|
||||
&& file_exists(\OC::$WEBROOT . "/$app/img/$basename.png"))) {
|
||||
&& file_exists(\OC::$SERVERROOT . "/$app/img/$basename.png"))) {
|
||||
return \OC::$WEBROOT . "/$app/img/$basename.png";
|
||||
} elseif (file_exists(\OC::$SERVERROOT . "/themes/$theme/core/img/$image")) {
|
||||
return \OC::$WEBROOT . "/themes/$theme/core/img/$image";
|
||||
|
|
Loading…
Reference in a new issue