use the correct variable name

This commit is contained in:
Robin Appelman 2011-04-16 19:46:47 +02:00
parent e71bc75a9d
commit 101877351b
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/$file" )){
return "$WEBROOT/apps/img/$app/$file";
if( file_exists( "$SERVERROOT/apps/img/$app/$image" )){
return "$WEBROOT/apps/img/$app/$image";
}
return "$WEBROOT/$app/img/$image";
}