From e8a10f312a5c44314292402bb44e6ee2e71f3d5d Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 17 Jun 2020 15:55:31 +0200 Subject: Use NetscapeBookmarkUtils object instance instead of static calls --- index.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index c8660658..7c49bc8d 100644 --- a/index.php +++ b/index.php @@ -662,13 +662,8 @@ function renderPage($conf, $pluginManager, $bookmarkService, $history, $sessionM if (! $sessionManager->checkToken($_POST['token'])) { die('Wrong token.'); } - $status = NetscapeBookmarkUtils::import( - $_POST, - $_FILES, - $bookmarkService, - $conf, - $history - ); + $netscapeBookmarkUtils = new NetscapeBookmarkUtils($bookmarkService, $conf, $history); + $status = $netscapeBookmarkUtils->import($_POST, $_FILES); echo ''; exit; -- cgit v1.2.3