]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - index.php
Add and update unit test for the new system (Bookmark + Service)
[github/shaarli/Shaarli.git] / index.php
index ae74bc7efe2476745ebb30e7a4254ff86b7968d0..2dd003f0b73d578a315d7c58c41c1438a93bfcef 100644 (file)
--- 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(