owncloud/core — pull request #8444 by LukasReschke (2014-05-04 13:53:48+00:00)
Title: Cleanup code of files_sharing/ajax/ a little bit

- Use OCP\Response constants instead of the HTTP error code
- Use checkAppEnabled() instead of OC_App::isEnabled with an if statement
- Remove uneeded variable $baseURL
- Rename $isvalid to $isValid

@PVince81 @georgehrke