]> git.mxchange.org Git - friendica-addons.git/commitdiff
add reminder if configuration was not done by the admin
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 12 May 2013 18:19:23 +0000 (20:19 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Sun, 12 May 2013 18:19:23 +0000 (20:19 +0200)
webrtc/webrtc.php

index ad50a0d53b820e3346fb892889f44e08ec08faf1..ce2a1ad9bad8e3b1a1f1a9cc74c59d8db522c9fc 100644 (file)
@@ -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;
 }