diff options
author | friendica <info@friendica.com> | 2014-07-14 01:38:16 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-07-14 01:38:16 -0700 |
commit | 233e4e13636edd857ded7393555feb4bf198eed3 (patch) | |
tree | 27c06018d534ff5e411a8aff4831a513d92801a5 /include/bookmarks.php | |
parent | 17bd39fcd4b28e6475a8a349f136c788202eaff4 (diff) | |
download | volse-hubzilla-233e4e13636edd857ded7393555feb4bf198eed3.tar.gz volse-hubzilla-233e4e13636edd857ded7393555feb4bf198eed3.tar.bz2 volse-hubzilla-233e4e13636edd857ded7393555feb4bf198eed3.zip |
remove some code duplication
Diffstat (limited to 'include/bookmarks.php')
-rw-r--r-- | include/bookmarks.php | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/include/bookmarks.php b/include/bookmarks.php index 21a775f9a..e70158476 100644 --- a/include/bookmarks.php +++ b/include/bookmarks.php @@ -23,15 +23,8 @@ function bookmark_add($channel,$sender,$taxonomy,$private,$opts = null) { $iarr['mitem_desc'] = $taxonomy['term']; $iarr['mitem_flags'] = (($ischat) ? MENU_ITEM_CHATROOM : 0); - $m = @parse_url($taxonomy['url']); - $zrl = false; - if($m['host']) { - $r = q("select hubloc_url from hubloc where hubloc_host = '%s' limit 1", - dbesc($m['host']) - ); - if($r) - $zrl = true; - } + require_once('include/hubloc.php'); + $zrl = is_matrix_url($taxonomy['url']); if($zrl) $iarr['mitem_flags'] |= MENU_ITEM_ZID; |