aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-06-17 15:55:31 +0200
committerArthurHoaro <arthur@hoa.ro>2020-07-23 21:19:21 +0200
commite8a10f312a5c44314292402bb44e6ee2e71f3d5d (patch)
tree3f0c0bf3bc299eae3b379431d4a521f6904d5ee4 /index.php
parent3447d888d7881eed437117a6de2450abb96f6a76 (diff)
downloadShaarli-e8a10f312a5c44314292402bb44e6ee2e71f3d5d.tar.gz
Shaarli-e8a10f312a5c44314292402bb44e6ee2e71f3d5d.tar.zst
Shaarli-e8a10f312a5c44314292402bb44e6ee2e71f3d5d.zip
Use NetscapeBookmarkUtils object instance instead of static calls
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 2 insertions, 7 deletions
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
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;