change order of issubdirectory() calls to avoid error messages for non-apps
Merge pull request #6997 from owncloud/fix_l10n_warnings

change order of issubdirectory() calls to avoid error messages for non-apps