// 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);
// Generate data.
$feedGenerator = new FeedBuilder(
$bookmarkService,
- $factory->getFormatter('raw'),
+ $factory->getFormatter(),
$feedType,
$_SERVER,
$_GET,
try {
$factory = new FormatterFactory($conf);
- $formatter = $factory->getFormatter('raw');
+ $formatter = $factory->getFormatter('raw');
$PAGE->assign(
'links',
NetscapeBookmarkUtils::filterAndFormat(
}
} else {
// Filter bookmarks according search parameters.
- $visibility = ! empty($_SESSION['visibility']) ? $_SESSION['visibility'] : '';
+ $visibility = ! empty($_SESSION['visibility']) ? $_SESSION['visibility'] : null;
$request = [
'searchtags' => $searchtags,
'searchterm' => $searchterm,