mirror of
https://github.com/owncloud/bookmarks.git
synced 2024-11-29 04:24:11 +01:00
Fixed PHP fatal error: Controller could not resolve namespace of Helper class.
This commit is contained in:
parent
0ab13254f3
commit
a63955e677
@ -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 .= '<DT><A HREF="' . \OC_Util::sanitizeHTML($bm['url']) . '" TAGS="' . implode(',', \OC_Util::sanitizeHTML($bm['tags'])) . '">';
|
||||
$file .= htmlspecialchars($title, ENT_QUOTES, 'UTF-8') . '</A>';
|
||||
|
Loading…
Reference in New Issue
Block a user