Make compatible with ownCloud 7