let the array contain the db adapter also
authorChuck Hagenbuch <chuck@horde.org>
Sat, 27 Dec 2008 03:59:48 +0000 (22:59 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Sat, 27 Dec 2008 03:59:48 +0000 (22:59 -0500)
content/lib/Tagger.php

index c472c31..d697667 100644 (file)
@@ -79,6 +79,10 @@ class Content_Tagger
      */
     public function __construct($context = array())
     {
+        if (!empty($context['dbAdapter'])) {
+            $this->_db = $context['dbAdapter'];
+        }
+
         if (!empty($context['userManager'])) {
             $this->_userManager = $context['userManager'];
         }