aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-29 20:14:18 -0800
committerfriendica <info@friendica.com>2014-01-29 20:14:18 -0800
commit9fdee53c9a35d584de8cacd071c6608de88a18b6 (patch)
treec978f5d246c0358fd3a8d978523f22925aeff927 /mod
parent838ebbcb62aaaca8f19e338fe89c484f9d4ececd (diff)
downloadvolse-hubzilla-9fdee53c9a35d584de8cacd071c6608de88a18b6.tar.gz
volse-hubzilla-9fdee53c9a35d584de8cacd071c6608de88a18b6.tar.bz2
volse-hubzilla-9fdee53c9a35d584de8cacd071c6608de88a18b6.zip
start on the ajax bits
Diffstat (limited to 'mod')
-rw-r--r--mod/chat.php5
-rw-r--r--mod/chatsvc.php2
2 files changed, 6 insertions, 1 deletions
diff --git a/mod/chat.php b/mod/chat.php
index 42a7808d9..b8af4c1a6 100644
--- a/mod/chat.php
+++ b/mod/chat.php
@@ -61,7 +61,10 @@ function chat_content(&$a) {
$x = chatroom_enter($observer,$room_id,'online',$_SERVER['REMOTE_ADDR']);
if(! $x)
return;
- $o = replace_macros(get_markup_template('chat.tpl'),array());
+ $o = replace_macros(get_markup_template('chat.tpl'),array(
+ '$room_id' => $room_id,
+ '$submit' => t('Submit')
+ ));
return $o;
}
diff --git a/mod/chatsvc.php b/mod/chatsvc.php
index b8d2a9f69..23b95cd1c 100644
--- a/mod/chatsvc.php
+++ b/mod/chatsvc.php
@@ -4,6 +4,8 @@ require_once('include/security.php');
function chatsvc_init(&$a) {
+//logger('chatsvc');
+
$ret = array('success' => false);
$a->data['chat']['room_id'] = intval($_REQUEST['room_id']);