owncloud/apps — pull request #1856 by butonic (2014-07-17 10:11:27+00:00)
Title: use accessor to get session

see owncloud/core#9681

This can safely be backported to OC7 because the server container already contains a getSession() that in turn returns \OC::$session.

@tomneedham @DeepDiver1975 @karlitschek @craigpg