diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -662,13 +662,8 @@ function renderPage($conf, $pluginManager, $bookmarkService, $history, $sessionM | |||
662 | if (! $sessionManager->checkToken($_POST['token'])) { | 662 | if (! $sessionManager->checkToken($_POST['token'])) { |
663 | die('Wrong token.'); | 663 | die('Wrong token.'); |
664 | } | 664 | } |
665 | $status = NetscapeBookmarkUtils::import( | 665 | $netscapeBookmarkUtils = new NetscapeBookmarkUtils($bookmarkService, $conf, $history); |
666 | $_POST, | 666 | $status = $netscapeBookmarkUtils->import($_POST, $_FILES); |
667 | $_FILES, | ||
668 | $bookmarkService, | ||
669 | $conf, | ||
670 | $history | ||
671 | ); | ||
672 | echo '<script>alert("'.$status.'");document.location=\'./?do=' | 667 | echo '<script>alert("'.$status.'");document.location=\'./?do=' |
673 | .Router::$PAGE_IMPORT .'\';</script>'; | 668 | .Router::$PAGE_IMPORT .'\';</script>'; |
674 | exit; | 669 | exit; |