Change gallery to use the OCP functions instead of the core ones
Merge pull request #1240 from owncloud/update_to_public_api_gallery

Change gallery to use the OCP functions instead of the core ones