aboutsummaryrefslogtreecommitdiffstats
path: root/mod/rbmark.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-25 17:55:30 -0800
committerfriendica <info@friendica.com>2014-02-25 17:55:30 -0800
commit2c72e49d1f63404b464f284d86ce2dce7f2eb493 (patch)
treef4635c09daa817c9b9cd0d69ffa7ae91ef11f7a8 /mod/rbmark.php
parent9a2e73ae1522c7e69d7d6e0ca6c1089189c6e697 (diff)
downloadvolse-hubzilla-2c72e49d1f63404b464f284d86ce2dce7f2eb493.tar.gz
volse-hubzilla-2c72e49d1f63404b464f284d86ce2dce7f2eb493.tar.bz2
volse-hubzilla-2c72e49d1f63404b464f284d86ce2dce7f2eb493.zip
more chatroom discovery
Diffstat (limited to 'mod/rbmark.php')
-rw-r--r--mod/rbmark.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/rbmark.php b/mod/rbmark.php
index 1c962152c..e35c2494a 100644
--- a/mod/rbmark.php
+++ b/mod/rbmark.php
@@ -35,7 +35,8 @@ function rbmark_post(&$a) {
$t = array('url' => escape_tags($_REQUEST['url']),'term' => escape_tags($_REQUEST['title']));
bookmark_add($channel,$channel,$t,((x($_REQUEST,'private')) ? intval($_REQUEST['private']) : 0),
array('menu_id' => ((x($_REQUEST,'menu_id')) ? intval($_REQUEST['menu_id']) : 0),
- 'menu_name' => ((x($_REQUEST,'menu_name')) ? escape_tags($_REQUEST['menu_name']) : '')
+ 'menu_name' => ((x($_REQUEST,'menu_name')) ? escape_tags($_REQUEST['menu_name']) : ''),
+ 'ischat' => ((x($_REQUEST['ischat'])) ? intval($_REQUEST['ischat']) : 0)
));
goaway(z_root() . '/bookmarks');
@@ -92,8 +93,8 @@ function rbmark_content(&$a) {
'$header' => t('Save Bookmark'),
'$url' => array('url',t('URL of bookmark'),escape_tags($_REQUEST['url'])),
'$title' => array('title',t('Description'),escape_tags($_REQUEST['title'])),
- '$ischat' => (($ischat) ? 1 : 0),
- '$private' => (($private) ? 1 : 0),
+ '$ischat' => ((x($_REQUEST,'ischat')) ? intval($_REQUEST['ischat']) : 0),
+ '$private' => ((x($_REQUEST,'private')) ? intval($_REQUEST['private']) : 0),
'$submit' => t('Save'),
'$menu_name' => array('menu_name',t('Or enter new bookmark folder name'),'',''),
'$menus' => $menu_select