aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-10-06 12:48:12 +0000
committerMario <mario@mariovavti.com>2018-10-06 15:01:45 +0200
commit0558a25141ab5cbd8a7a60cf63c7b3d79f63b6d1 (patch)
tree3b12251d4e9c4970965bdd51789a72fde709eead /Zotlabs/Module
parent05ae18d74e236081f3437c10f7bade504d376047 (diff)
downloadvolse-hubzilla-0558a25141ab5cbd8a7a60cf63c7b3d79f63b6d1.tar.gz
volse-hubzilla-0558a25141ab5cbd8a7a60cf63c7b3d79f63b6d1.tar.bz2
volse-hubzilla-0558a25141ab5cbd8a7a60cf63c7b3d79f63b6d1.zip
bookmark app
(cherry picked from commit c2c891723fc0e56f0c373ca1043cdb548f2ed8ab)
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Bookmarks.php18
1 files changed, 16 insertions, 2 deletions
diff --git a/Zotlabs/Module/Bookmarks.php b/Zotlabs/Module/Bookmarks.php
index cee86a47d..1c4c6a513 100644
--- a/Zotlabs/Module/Bookmarks.php
+++ b/Zotlabs/Module/Bookmarks.php
@@ -1,6 +1,9 @@
<?php
namespace Zotlabs\Module;
+use App;
+use Zotlabs\Lib\Apps;
+
class Bookmarks extends \Zotlabs\Web\Controller {
@@ -8,7 +11,10 @@ class Bookmarks extends \Zotlabs\Web\Controller {
if(! local_channel())
return;
- nav_set_selected('View Bookmarks');
+ if(! Apps::system_app_installed(local_channel(), 'Bookmarks'))
+ return;
+
+ nav_set_selected('Bookmarks');
$item_id = intval($_REQUEST['item']);
$burl = trim($_REQUEST['burl']);
@@ -64,7 +70,15 @@ class Bookmarks extends \Zotlabs\Web\Controller {
notice( t('Permission denied.') . EOL);
return;
}
-
+
+ if(! Apps::system_app_installed(local_channel(), 'Bookmarks')) {
+ //Do not display any associated widgets at this point
+ App::$pdl = '';
+
+ $o = '<b>' . t('Bookmarks App') . ' (' . t('Not Installed') . '):</b><br>';
+ $o .= t('Bookmark links from the item dropdown and manage them');
+ return $o;
+ }
require_once('include/menu.php');
require_once('include/conversation.php');