mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 08:58:49 +00:00
Update function names
update function names and hook calls
This commit is contained in:
parent
0afd633346
commit
c71f7b0e1a
50 changed files with 356 additions and 348 deletions
|
@ -22,14 +22,14 @@ function webrtc_app_menu($a,&$b) {
|
|||
$b['app_menu'][] = '<div class="app-title"><a href="webrtc">' . t('WebRTC Videochat') . '</a></div>';
|
||||
}
|
||||
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue