diff --git a/controller/rest/bookmarkcontroller.php b/controller/rest/bookmarkcontroller.php index 2506e5a6..af08907b 100644 --- a/controller/rest/bookmarkcontroller.php +++ b/controller/rest/bookmarkcontroller.php @@ -19,6 +19,7 @@ use \OCP\AppFramework\Http; use \OCP\IDb; use \OCA\Bookmarks\Controller\Lib\Bookmarks; use \OCA\Bookmarks\Controller\Lib\ExportResponse; +use \OCA\Bookmarks\Controller\Lib\Helper; class BookmarkController extends ApiController { @@ -263,7 +264,7 @@ EOT; $title = $bm['title']; if (trim($title) === '') { $url_parts = parse_url($bm['url']); - $title = isset($url_parts['host']) ? OCA\Bookmarks\Controller\Lib\Helper::getDomainWithoutExt($url_parts['host']) : $bm['url']; + $title = isset($url_parts['host']) ? Helper::getDomainWithoutExt($url_parts['host']) : $bm['url']; } $file .= '