Fixing the image link for apps

This commit is contained in:
Jakob Sack 2011-05-17 17:19:21 +02:00
parent b0ecd70582
commit e314a83a7b
1 changed files with 2 additions and 2 deletions

View File

@ -60,8 +60,8 @@ class OC_HELPER {
global $SERVERROOT;
global $WEBROOT;
// Check if the app is in the app folder
if( file_exists( "$SERVERROOT/apps/img/$app/$image" )){
return "$WEBROOT/apps/img/$app/$image";
if( file_exists( "$SERVERROOT/apps/$app/img/$image" )){
return "$WEBROOT/apps/$app/img/$image";
}
if( !empty( $app )){
return "$WEBROOT/$app/img/$image";