register_hook('app_menu', 'addon/webrtc/webrtc.php', 'webrtc_app_menu');
}
-function web_uninstall() {
+function webrtc_uninstall() {
unregister_hook('app_menu', 'addon/webrtc/webrtc.php', 'webrtc_app_menu');
}
/* embedd the landing page in an iframe */
$o .= '<h2>'.t('Video Chat').'</h2>';
$o .= '<p>FIXME some short information for the enduser what to do. Best surrounded in a <code>t()</code> call so the text can be translated.</p>';
- $o .= '<iframe src="'.$webrtcurl.'" width="600px" height="600px"></iframe>';
+ if ($webrtcurl == '') {
+ $o .= '<p>'.t('Please contact your friendica admin and send a reminder to configure the WebRTC addon.').'</p>';
+ } else {
+ $o .= '<iframe src="'.$webrtcurl.'" width="600px" height="600px"></iframe>';
+ }
+
return $o;
}