]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - index.php
Ulauncher Extension (#1400)
[github/shaarli/Shaarli.git] / index.php
index ae74bc7efe2476745ebb30e7a4254ff86b7968d0..013b01af6c7f274fb1149ae3e8eb6b4d48da0cb0 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(
@@ -1681,7 +1681,7 @@ function buildLinkList($PAGE, $linkDb, $conf, $pluginManager, $loginManager)
         }
     } else {
         // Filter bookmarks according search parameters.
-        $visibility = ! empty($_SESSION['visibility']) ? $_SESSION['visibility'] : '';
+        $visibility = ! empty($_SESSION['visibility']) ? $_SESSION['visibility'] : null;
         $request = [
             'searchtags' => $searchtags,
             'searchterm' => $searchterm,