Drop \OCP\Util::isIe

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2021-02-16 11:36:29 +01:00 committed by Roeland Jago Douma
parent 5063745cac
commit 7f3051e5bf
9 changed files with 8 additions and 18 deletions

View File

@ -306,7 +306,7 @@ class ViewController extends Controller {
$params['defaultFileSorting'] = $this->config->getUserValue($user, 'files', 'file_sorting', 'name');
$params['defaultFileSortingDirection'] = $this->config->getUserValue($user, 'files', 'file_sorting_direction', 'asc');
$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);
$params['showHiddenFiles'] = $showHidden ? 1 : 0;
$cropImagePreviews = (bool) $this->config->getUserValue($this->userSession->getUser()->getUID(), 'files', 'crop_image_previews', true);

View File

@ -28,7 +28,7 @@ $userSession = \OC::$server->getUserSession();
$publicUploadEnabled = $config->getAppValue('core', 'shareapi_allow_public_upload', 'yes');
$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
$tmpl = new OCP\Template('files', 'list', '');

View File

@ -28,7 +28,7 @@ $config = \OC::$server->getConfig();
$userSession = \OC::$server->getUserSession();
$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false);
$isIE = \OCP\Util::isIE();
$isIE = OC_Util::isIe();
$tmpl = new OCP\Template('files', 'recentlist', '');

View File

@ -27,7 +27,7 @@ $config = \OC::$server->getConfig();
$userSession = \OC::$server->getUserSession();
$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
$tmpl = new OCP\Template('files', 'simplelist', '');

View File

@ -28,7 +28,7 @@ $config = \OC::$server->getConfig();
$userSession = \OC::$server->getUserSession();
$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', '');

View File

@ -36,7 +36,7 @@ $legacyEventDispatcher = \OC::$server->getEventDispatcher();
$eventDispatcher = \OC::$server->get(OCP\EventDispatcher\IEventDispatcher::class);
$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', '');

View File

@ -30,7 +30,7 @@ $config = \OC::$server->getConfig();
$userSession = \OC::$server->getUserSession();
$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', '');

View File

@ -80,7 +80,7 @@ class TemplateLayout extends \OC_Template {
/** @var IInitialStateService */
$this->initialState = \OC::$server->get(IInitialStateService::class);
if (Util::isIE()) {
if (\OC_Util::isIe()) {
Util::addStyle('ie');
}

View File

@ -521,14 +521,4 @@ class Util {
}
return self::$needUpgradeCache;
}
/**
* is this Internet explorer ?
*
* @return boolean
* @since 14.0.0
*/
public static function isIe() {
return \OC_Util::isIe();
}
}