Discovered another older style of accessing the registry
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 19 Aug 2007 17:41:51 +0000 (17:41 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 19 Aug 2007 17:41:51 +0000 (17:41 +0000)
* Template.php:
(BSTemplate::cache): Use the new BSApp::Registry() system

Template.php

index b0ebfdfea1297f1f2e35a25a1feaa55e873d4fc8..15d028c141077fd34695b8fcfd64a5e50f8ae7a4 100644 (file)
@@ -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))
                                {