0 && $matches[1] <= 8){ $isIE8 = true; } // if IE8 and "?dir=path" was specified, reformat the URL to use a hash like "#?dir=path" if ($isIE8 && isset($_GET['dir'])){ if ($dir === ''){ $dir = '/'; } header('Location: ' . OCP\Util::linkTo('files_trashbin', 'index.php') . '#?dir=' . \OCP\Util::encodePath($dir)); exit(); } $tmpl->assign('dir', $dir); $tmpl->assign('disableSharing', true); $tmpl->printPage();