Browse Source

Drop \OCP\Util::isIe

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
tags/v22.0.0beta1
Christoph Wurst 3 years ago
parent
commit
7f3051e5bf

+ 1
- 1
apps/files/lib/Controller/ViewController.php 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);

+ 1
- 1
apps/files/list.php 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', '');

+ 1
- 1
apps/files/recentlist.php 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', '');


+ 1
- 1
apps/files/simplelist.php 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', '');

+ 1
- 1
apps/files_external/list.php 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', '');


+ 1
- 1
apps/files_sharing/list.php 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', '');


+ 1
- 1
apps/files_trashbin/list.php 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', '');


+ 1
- 1
lib/private/TemplateLayout.php 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');
}


+ 0
- 10
lib/public/Util.php 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();
}
}

Loading…
Cancel
Save