]> git.mxchange.org Git - friendica-addons.git/blobdiff - webrtc/webrtc.php
wrong function name
[friendica-addons.git] / webrtc / webrtc.php
index ad50a0d53b820e3346fb892889f44e08ec08faf1..bcf278a6c9613c85d2c6507696c330eb3d582f35 100644 (file)
@@ -11,7 +11,7 @@ function webrtc_install() {
         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');
 
 }
@@ -46,7 +46,12 @@ function webrtc_content(&$a) {
         /* 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;
 }