From e26e2060f5470ce8bf4c5973284bae07b8af170a Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 17 Jan 2020 21:34:12 +0100 Subject: Add and update unit test for the new system (Bookmark + Service) See #1307 --- index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index ae74bc7e..2dd003f0 100644 --- a/index.php +++ b/index.php @@ -631,7 +631,7 @@ function renderPage($conf, $pluginManager, $bookmarkService, $history, $sessionM // Get only bookmarks which have a thumbnail. // Note: we do not retrieve thumbnails here, the request is too heavy. $factory = new FormatterFactory($conf); - $formatter = $factory->getFormatter(); + $formatter = $factory->getFormatter(); foreach ($links as $key => $link) { if ($link->getThumbnail() !== false) { $linksToDisplay[] = $formatter->format($link); @@ -757,7 +757,7 @@ function renderPage($conf, $pluginManager, $bookmarkService, $history, $sessionM // Generate data. $feedGenerator = new FeedBuilder( $bookmarkService, - $factory->getFormatter('raw'), + $factory->getFormatter(), $feedType, $_SERVER, $_GET, @@ -1452,7 +1452,7 @@ function renderPage($conf, $pluginManager, $bookmarkService, $history, $sessionM try { $factory = new FormatterFactory($conf); - $formatter = $factory->getFormatter('raw'); + $formatter = $factory->getFormatter('raw'); $PAGE->assign( 'links', NetscapeBookmarkUtils::filterAndFormat( -- cgit v1.2.3