From 7b8099d66213514dbfbe0033be21c2be50c7a961 Mon Sep 17 00:00:00 2001
From: Robert Sesek <rsesek@bluestatic.org>
Date: Sun, 19 Aug 2007 17:41:51 +0000
Subject: [PATCH] Discovered another older style of accessing the registry

* Template.php:
(BSTemplate::cache): Use the new BSApp::Registry() system
---
 Template.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Template.php b/Template.php
index b0ebfdf..15d028c 100644
--- a/Template.php
+++ b/Template.php
@@ -163,7 +163,7 @@ class BSTemplate
 			$dbCache = array();
 			if ($this->dbCacheTable)
 			{
-				$db =& BSApp::GetType('Db');
+				$db =& BSApp::Registry()->getType('Db');
 				$cache = $db->query("SELECT * FROM {$this->dbCacheTable} WHERE filename IN ('" . implode("', '", $namearray) . "')");
 				while ($tpl = $db->fetchArray($cache))
 				{
-- 
2.43.5