diff --git a/lib/helper.php b/lib/helper.php index 4fff7c28fead34d4ce3be064bf2c0ebabdb8c0cd..7c7fe2757e7d94355fc420c5c8a1c7618d6d5f87 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -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"; }