summaryrefslogtreecommitdiff
path: root/plugins/Realtime/RealtimePlugin.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-09-23 21:58:35 +0000
committerSarven Capadisli <csarven@status.net>2009-09-23 21:58:35 +0000
commit4d4bb089a5e3addfd4be2f82e5e4e257070f4058 (patch)
tree21702f2ee34843a1b537f1ba9e64c19e2ece4e7f /plugins/Realtime/RealtimePlugin.php
parentbdbc2cb8de370eef6d5d06412746f52797ea0458 (diff)
Created addPop() for Realtime plugin and added param to include iconurl
Diffstat (limited to 'plugins/Realtime/RealtimePlugin.php')
-rw-r--r--plugins/Realtime/RealtimePlugin.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Realtime/RealtimePlugin.php b/plugins/Realtime/RealtimePlugin.php
index fde306021..157c800d9 100644
--- a/plugins/Realtime/RealtimePlugin.php
+++ b/plugins/Realtime/RealtimePlugin.php
@@ -99,11 +99,13 @@ class RealtimePlugin extends Plugin
$user_id = 0;
}
+ $iconurl = $base.'plugins/Realtime/icon_external.gif';
+
$action->elementStart('script', array('type' => 'text/javascript'));
$script = ' $(document).ready(function() { '.
$this->_updateInitialize($timeline, $user_id).
- ' RealtimeUpdate.addPopup("'.$url.'", "'.$title.'"); '.
+ ' RealtimeUpdate.addPopup("'.$url.'", "'.$title.'", "'. $iconurl .'");'
'}); ';
$action->raw($script);