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['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);
|
||||
|
|
|
@ -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', '');
|
||||
|
|
|
@ -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', '');
|
||||
|
||||
|
|
|
@ -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', '');
|
||||
|
|
|
@ -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', '');
|
||||
|
||||
|
|
|
@ -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', '');
|
||||
|
||||
|
|
|
@ -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', '');
|
||||
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue