in getPhotoUrl() function
if ( $preview ) {/*add this*/if(file_exists($userfilesDir . self::PHOTO_PREVIEW_PREFIX . $id . $hashSlug . '.jpg')) return $storage->getFileUrl($userfilesDir . self::PHOTO_PREVIEW_PREFIX . $id . $hashSlug . '.jpg');else{ return $storage->getFileUrl($userfilesDir . self::PHOTO_PREFIX . $id . $hashSlug . '.jpg');}/*add this end*/ }
else { return $storage->getFileUrl($userfilesDir . self::PHOTO_PREFIX . $id . $hashSlug . '.jpg'); }
This works
Message: Undefined variable: hashSlug File: /www/xxxxxx/ow_plugins/photo/bol/photo_dao.php Line: 114
Message: Undefined variable: hashSlug File: /www/xxxxxx/ow_plugins/photo/bol/photo_dao.php Line: 116