From a63955e67700a38f8d042b6277112294aac73e62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kwa=C5=9Bnicki?= Date: Thu, 30 Apr 2015 18:58:47 +0200 Subject: [PATCH] Fixed PHP fatal error: Controller could not resolve namespace of Helper class. --- controller/rest/bookmarkcontroller.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 .= '
'; $file .= htmlspecialchars($title, ENT_QUOTES, 'UTF-8') . '';