Don't use Horde_Db static methods
authorChuck Hagenbuch <chuck@horde.org>
Mon, 21 Sep 2009 17:38:48 +0000 (13:38 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Mon, 21 Sep 2009 17:39:10 +0000 (13:39 -0400)
framework/Rdo/lib/Horde/Rdo/Mapper.php

index a27c87b..f95b993 100644 (file)
@@ -178,11 +178,7 @@ abstract class Horde_Rdo_Mapper implements Countable
      */
     public function getAdapter()
     {
-        $adapter = Horde_Db::getAdapter();
-        if ($adapter) {
-            return $adapter;
-        }
-        throw new Horde_Rdo_Exception('You must override getAdapter(), assign a Horde_Db_Adapter by calling setAdapter(), or set a global adapter by calling Horde_Db::setAdapter().');
+        throw new Horde_Rdo_Exception('You must override getAdapter() or assign a Horde_Db_Adapter by calling setAdapter().');
     }
 
     /**