X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=webrtc%2Fwebrtc.php;h=a71bac2afba551ca2b5c6de525f5831eec93c100;hb=96c41e56233765571870b56081efc366655bead4;hp=fe12248e33d2ac7595121301bf97a332c8f713cd;hpb=0afd633346b517894ff8e92c705bd5d052dd06a2;p=friendica-addons.git diff --git a/webrtc/webrtc.php b/webrtc/webrtc.php index fe12248e..a71bac2a 100644 --- a/webrtc/webrtc.php +++ b/webrtc/webrtc.php @@ -22,14 +22,14 @@ function webrtc_app_menu($a,&$b) { $b['app_menu'][] = '
' . t('WebRTC Videochat') . '
'; } -function webrtc_plugin_admin (&$a, &$o) { +function webrtc_addon_admin (&$a, &$o) { $t = get_markup_template( "admin.tpl", "addon/webrtc/" ); $o = replace_macros( $t, [ '$submit' => t('Save Settings'), '$webrtcurl' => ['webrtcurl', t('WebRTC Base URL'), Config::get('webrtc','webrtcurl' ), t('Page your users will create a WebRTC chat room on. For example you could use https://live.mayfirst.org .')], ]); } -function webrtc_plugin_admin_post (&$a) { +function webrtc_addon_admin_post (&$a) { $url = ((x($_POST, 'webrtcurl')) ? notags(trim($_POST['webrtcurl'])) : ''); Config::set('webrtc', 'webrtcurl', $url); info( t('Settings updated.'). EOL);