From cd48877060156acbacb3080b84504dc9f2294f6b Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Tue, 25 May 2010 13:57:57 -0400 Subject: [PATCH] Beatnik: use Registry to get app instance --- beatnik/lib/Beatnik.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beatnik/lib/Beatnik.php b/beatnik/lib/Beatnik.php index 2fca727bf..f81d55936 100644 --- a/beatnik/lib/Beatnik.php +++ b/beatnik/lib/Beatnik.php @@ -55,7 +55,7 @@ class Beatnik { */ function getRecTypes() { - global $beatnik; + $beatnik = $GLOBALS['registry']->getApiInstance('beatnik', 'application'); $records = array( 'soa' => _("SOA (Start of Authority)"), @@ -91,7 +91,7 @@ class Beatnik { // '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(); @@ -510,7 +510,7 @@ class Beatnik { */ function autogenerate(&$vars) { - global $beatnik; + $beatnik = $GLOBALS['registry']->getApiInstance('beatnik', 'application'); require BEATNIK_BASE . '/config/autogenerate.php'; $template = $templates[$vars->get('template')]; -- 2.11.0