Now using IE8 workaround of davclient.js for all IE versions

This commit is contained in:
Vincent Petry 2015-11-19 17:20:06 +01:00 committed by Lukas Reschke
parent fd40b06639
commit a05e40932c
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@
(function(dav) {
/**
* Override davclient.js methods with IE8-compatible logic
* Override davclient.js methods with IE-compatible logic
*/
dav.Client.prototype = _.extend({}, dav.Client.prototype, {

View File

@ -161,9 +161,9 @@ class OC_Template extends \OC\Template\Base {
throw new \Exception('Cannot read core/js/core.json');
}
if (\OC::$server->getRequest()->isUserAgent([\OC\AppFramework\Http\Request::USER_AGENT_IE_8])) {
if (\OC::$server->getRequest()->isUserAgent([\OC\AppFramework\Http\Request::USER_AGENT_IE])) {
// shim for the davclient.js library
\OCP\Util::addScript('files/ie8davclient');
\OCP\Util::addScript('files/iedavclient');
}
self::$initTemplateEngineFirstRun = false;