*/
function getRecTypes()
{
- global $beatnik;
+ $beatnik = $GLOBALS['registry']->getApiInstance('beatnik', 'application');
$records = array(
'soa' => _("SOA (Start of Authority)"),
// 'default': the default value of the field.
// 'index': Crude sort ordering. Lower means show higher in the group
- global $beatnik;
+ $beatnik = $GLOBALS['registry']->getApiInstance('beatnik', 'application');
// Attempt to return cached results.
static $recset = array();
*/
function autogenerate(&$vars)
{
- global $beatnik;
+ $beatnik = $GLOBALS['registry']->getApiInstance('beatnik', 'application');
require BEATNIK_BASE . '/config/autogenerate.php';
$template = $templates[$vars->get('template')];