|
@@ -104,7 +104,7 @@ discard block |
|
|
block discarded – undo |
|
104
|
104
|
protected function renderScript($appName, $scriptName) { |
|
105
|
105
|
$content = ''; |
|
106
|
106
|
$appPath = \OC_App::getAppPath($appName); |
|
107
|
|
- $scriptPath = $appPath . '/' . $scriptName; |
|
|
107
|
+ $scriptPath = $appPath.'/'.$scriptName; |
|
108
|
108
|
if (file_exists($scriptPath)) { |
|
109
|
109
|
// TODO: sanitize path / script name ? |
|
110
|
110
|
ob_start(); |
|
@@ -257,8 +257,8 @@ discard block |
|
|
block discarded – undo |
|
257
|
257
|
$params['allowShareWithLink'] = $this->config->getAppValue('core', 'shareapi_allow_links', 'yes'); |
|
258
|
258
|
$params['defaultFileSorting'] = $this->config->getUserValue($user, 'files', 'file_sorting', 'name'); |
|
259
|
259
|
$params['defaultFileSortingDirection'] = $this->config->getUserValue($user, 'files', 'file_sorting_direction', 'asc'); |
|
260
|
|
- $params['showgridview'] = $this->config->getUserValue($user, 'files', 'show_grid', false); |
|
261
|
|
- $params['isIE'] = \OCP\Util::isIE(); |
|
|
260
|
+ $params['showgridview'] = $this->config->getUserValue($user, 'files', 'show_grid', false); |
|
|
261
|
+ $params['isIE'] = \OCP\Util::isIE(); |
|
262
|
262
|
$showHidden = (bool) $this->config->getUserValue($this->userSession->getUser()->getUID(), 'files', 'show_hidden', false); |
|
263
|
263
|
$params['showHiddenFiles'] = $showHidden ? 1 : 0; |
|
264
|
264
|
$params['fileNotFound'] = $fileNotFound ? 1 : 0; |
|
@@ -292,7 +292,7 @@ discard block |
|
|
block discarded – undo |
|
292
|
292
|
$params = []; |
|
293
|
293
|
|
|
294
|
294
|
if (empty($files) && $this->appManager->isEnabledForUser('files_trashbin')) { |
|
295
|
|
- $baseFolder = $this->rootFolder->get($uid . '/files_trashbin/files/'); |
|
|
295
|
+ $baseFolder = $this->rootFolder->get($uid.'/files_trashbin/files/'); |
|
296
|
296
|
$files = $baseFolder->getById($fileId); |
|
297
|
297
|
$params['view'] = 'trashbin'; |
|
298
|
298
|
} |