diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2021-12-03 00:29:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-03 00:29:12 +0300 |
commit | e139ccc66c10fba9b39e30d813e14c47b48b0baa (patch) | |
tree | e63ea8bf973636d01bc9ccc3bb023195fa602e8a /apps/files | |
parent | 41b6052cb747a5c6354687d0dcf718582e490d27 (diff) | |
parent | bf7c9aa58cec0f6d67f64394d37f2f71e4c1e44c (diff) |
Merge pull request #30024 from nextcloud/techdebt/noid/list-php-are-only-invokable-via-controllers
list.php files are only invoked via ViewController and APIController
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/list.php | 2 | ||||
-rw-r--r-- | apps/files/recentlist.php | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/apps/files/list.php b/apps/files/list.php index 9d3e1a33b0f..09dc217139c 100644 --- a/apps/files/list.php +++ b/apps/files/list.php @@ -29,7 +29,7 @@ $userSession = \OC::$server->getUserSession(); // TODO: move this to the generated config.js /** @var IManager $shareManager */ $shareManager = \OC::$server->get(IManager::class); -$publicUploadEnabled = $shareManager->shareApiLinkAllowPublicUpload() ? 'yes' : 'no';; +$publicUploadEnabled = $shareManager->shareApiLinkAllowPublicUpload() ? 'yes' : 'no'; $showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false); diff --git a/apps/files/recentlist.php b/apps/files/recentlist.php index 2d250e1fc37..874ecca957c 100644 --- a/apps/files/recentlist.php +++ b/apps/files/recentlist.php @@ -23,8 +23,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ -// Check if we are a user -OC_Util::checkLoggedIn(); + $config = \OC::$server->getConfig(); $userSession = \OC::$server->getUserSession(); |