Drop \OCP\Util::isIe
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
5063745cac
commit
7f3051e5bf
|
@ -306,7 +306,7 @@ class ViewController extends Controller {
|
||||||
$params['defaultFileSorting'] = $this->config->getUserValue($user, 'files', 'file_sorting', 'name');
|
$params['defaultFileSorting'] = $this->config->getUserValue($user, 'files', 'file_sorting', 'name');
|
||||||
$params['defaultFileSortingDirection'] = $this->config->getUserValue($user, 'files', 'file_sorting_direction', 'asc');
|
$params['defaultFileSortingDirection'] = $this->config->getUserValue($user, 'files', 'file_sorting_direction', 'asc');
|
||||||
$params['showgridview'] = $this->config->getUserValue($user, 'files', 'show_grid', false);
|
$params['showgridview'] = $this->config->getUserValue($user, 'files', 'show_grid', false);
|
||||||
$params['isIE'] = \OCP\Util::isIE();
|
$params['isIE'] = \OC_Util::isIe();
|
||||||
$showHidden = (bool) $this->config->getUserValue($this->userSession->getUser()->getUID(), 'files', 'show_hidden', false);
|
$showHidden = (bool) $this->config->getUserValue($this->userSession->getUser()->getUID(), 'files', 'show_hidden', false);
|
||||||
$params['showHiddenFiles'] = $showHidden ? 1 : 0;
|
$params['showHiddenFiles'] = $showHidden ? 1 : 0;
|
||||||
$cropImagePreviews = (bool) $this->config->getUserValue($this->userSession->getUser()->getUID(), 'files', 'crop_image_previews', true);
|
$cropImagePreviews = (bool) $this->config->getUserValue($this->userSession->getUser()->getUID(), 'files', 'crop_image_previews', true);
|
||||||
|
|
|
@ -28,7 +28,7 @@ $userSession = \OC::$server->getUserSession();
|
||||||
$publicUploadEnabled = $config->getAppValue('core', 'shareapi_allow_public_upload', 'yes');
|
$publicUploadEnabled = $config->getAppValue('core', 'shareapi_allow_public_upload', 'yes');
|
||||||
|
|
||||||
$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false);
|
$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false);
|
||||||
$isIE = \OCP\Util::isIE();
|
$isIE = OC_Util::isIe();
|
||||||
|
|
||||||
// renders the controls and table headers template
|
// renders the controls and table headers template
|
||||||
$tmpl = new OCP\Template('files', 'list', '');
|
$tmpl = new OCP\Template('files', 'list', '');
|
||||||
|
|
|
@ -28,7 +28,7 @@ $config = \OC::$server->getConfig();
|
||||||
$userSession = \OC::$server->getUserSession();
|
$userSession = \OC::$server->getUserSession();
|
||||||
|
|
||||||
$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false);
|
$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false);
|
||||||
$isIE = \OCP\Util::isIE();
|
$isIE = OC_Util::isIe();
|
||||||
|
|
||||||
$tmpl = new OCP\Template('files', 'recentlist', '');
|
$tmpl = new OCP\Template('files', 'recentlist', '');
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ $config = \OC::$server->getConfig();
|
||||||
$userSession = \OC::$server->getUserSession();
|
$userSession = \OC::$server->getUserSession();
|
||||||
|
|
||||||
$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false);
|
$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false);
|
||||||
$isIE = \OCP\Util::isIE();
|
$isIE = OC_Util::isIe();
|
||||||
|
|
||||||
// renders the controls and table headers template
|
// renders the controls and table headers template
|
||||||
$tmpl = new OCP\Template('files', 'simplelist', '');
|
$tmpl = new OCP\Template('files', 'simplelist', '');
|
||||||
|
|
|
@ -28,7 +28,7 @@ $config = \OC::$server->getConfig();
|
||||||
$userSession = \OC::$server->getUserSession();
|
$userSession = \OC::$server->getUserSession();
|
||||||
|
|
||||||
$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', true);
|
$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', true);
|
||||||
$isIE = \OCP\Util::isIE();
|
$isIE = OC_Util::isIe();
|
||||||
|
|
||||||
$tmpl = new OCP\Template('files_external', 'list', '');
|
$tmpl = new OCP\Template('files_external', 'list', '');
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ $legacyEventDispatcher = \OC::$server->getEventDispatcher();
|
||||||
$eventDispatcher = \OC::$server->get(OCP\EventDispatcher\IEventDispatcher::class);
|
$eventDispatcher = \OC::$server->get(OCP\EventDispatcher\IEventDispatcher::class);
|
||||||
|
|
||||||
$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false);
|
$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false);
|
||||||
$isIE = \OCP\Util::isIE();
|
$isIE = OC_Util::isIe();
|
||||||
|
|
||||||
$tmpl = new OCP\Template('files_sharing', 'list', '');
|
$tmpl = new OCP\Template('files_sharing', 'list', '');
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ $config = \OC::$server->getConfig();
|
||||||
$userSession = \OC::$server->getUserSession();
|
$userSession = \OC::$server->getUserSession();
|
||||||
|
|
||||||
$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false);
|
$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false);
|
||||||
$isIE = \OCP\Util::isIE();
|
$isIE = OC_Util::isIe();
|
||||||
|
|
||||||
$tmpl = new OCP\Template('files_trashbin', 'index', '');
|
$tmpl = new OCP\Template('files_trashbin', 'index', '');
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,7 @@ class TemplateLayout extends \OC_Template {
|
||||||
/** @var IInitialStateService */
|
/** @var IInitialStateService */
|
||||||
$this->initialState = \OC::$server->get(IInitialStateService::class);
|
$this->initialState = \OC::$server->get(IInitialStateService::class);
|
||||||
|
|
||||||
if (Util::isIE()) {
|
if (\OC_Util::isIe()) {
|
||||||
Util::addStyle('ie');
|
Util::addStyle('ie');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -521,14 +521,4 @@ class Util {
|
||||||
}
|
}
|
||||||
return self::$needUpgradeCache;
|
return self::$needUpgradeCache;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* is this Internet explorer ?
|
|
||||||
*
|
|
||||||
* @return boolean
|
|
||||||
* @since 14.0.0
|
|
||||||
*/
|
|
||||||
public static function isIe() {
|
|
||||||
return \OC_Util::isIe();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue