assign( 'ec_dup_link_conf', sprintf( l10n('Register replacement'), '  
', // nicer line feed $lang['Register'], $lang['Duplicate'] ) ); $template->assign( 'ec_display_connect_conf', sprintf( l10n('Display connection'), '  
', // nicer line feed (version_compare(PHPWG_VERSION, '2.1.0', '<')) ? $lang['Connection'] : $lang['Login'] ) ); // In case some $lang have the same index, overwrites them to have the ones // needed here load_language('plugin.lang', EVNTCATS_PATH); $template->assign('ec_ap_ok', defined('ADD_PAGES_TABLE')); $template->assign('add_pages', $ec_lists['add_pages']); // Sends configuration values to the template, described per key $ec_conf2 = array(); $i = 0; foreach ($ec_conf_default as $k => $v) { $ec_conf2[$k] = $ec_conf[$i]; $i++; } $template->assign('ec_conf', $ec_conf2); $template->assign('ec_help_banner1', l10n('ec_help_banner1_config')); ?>