-function webrtc_plugin_admin (&$a, &$o) {
- $t = get_markup_template( "admin.tpl", "addon/webrtc/" );
- $o = replace_macros( $t, array(
- '$submit' => t('Save Settings'),
- '$webrtcurl' => array('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_addon_admin (&$a, &$o) {
+ $t = Renderer::getMarkupTemplate( "admin.tpl", "addon/webrtc/" );
+ $o = Renderer::replaceMacros( $t, [
+ '$submit' => L10n::t('Save Settings'),
+ '$webrtcurl' => ['webrtcurl', L10n::t('WebRTC Base URL'), Config::get('webrtc','webrtcurl' ), L10n::t('Page your users will create a WebRTC chat room on. For example you could use https://live.mayfirst.org .')],
+ ]);