Fix case-sensitivity
Don't disclose relative directory path for single shared files of user

The "dir" key is used within the public sharing template to indicate in which directory the user currently is when sharing a directory with subdirectories. This is needed by the JS scripts.

However, when not accessing a directory then "dir" was set to the relative path of the file (from the user's home directory), meaning that for every public shared file the sharee can see the path.
(For example if you share the file "foo.txt" from "finances/topsecret/" the sharee would still see the path "finances/topsecret/" from the shared HTML template)

This is not the excpected behaviour and can be considered a privacy problem, this patch addresses this by setting "dir" to an empty key.
Remove unused variable and make Scrutinizer happy.
fix calculation of expiration date if there is a default expiration date set (but not forced) and the user does not want the link to expire.
Consolidate if statement, and update unit test
Close session only if encryption app is not enabled

Fixes https://github.com/owncloud/core/issues/12389
Fix PHPDoc and deprecated code

Some PHPDocs were incorrect, also used this opportunity to replace some deprecated functions.
Merge pull request #12402 from owncloud/fix-phpdoc

Fix PHPDoc and deprecated code
Merge pull request #12390 from owncloud/use-session-in-case

Close session only if encryption app is not enabled
Merge pull request #12262 from owncloud/removeAbsoluteDirectoryPathFromTemplate

Don't disclose relative directory path for single shared files of user
remove unused variable
autoconfig.php only to be deleted on successful installation
The class name is Movie NOT Movies
Introduce app info xml parser including basic unit test - necessary for #10777
simplify xml parser code
handle invalid xml file
don't store private public-share-key in session
Merge pull request #12313 from oparoz/patch-2

The class name is Movie NOT Movies
we no longer need to keep the session open for encryption
Merge pull request #12416 from owncloud/app-info-xml-parser-2

App info xml parser 2