]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use keys() instead of keyTypes() so plugin data object work
authorEvan Prodromou <evan@status.net>
Sun, 3 Jan 2010 20:52:24 +0000 (10:52 -1000)
committerEvan Prodromou <evan@status.net>
Sun, 3 Jan 2010 20:52:24 +0000 (10:52 -1000)
classes/Memcached_DataObject.php

index 1608720d14072980187db8ba0cfb682a9d2d0334..b72c3d7b6766aec6997abee8a9110e7c9c9f53af 100644 (file)
@@ -139,16 +139,6 @@ class Memcached_DataObject extends DB_DataObject
         }
     }
 
-    function keyTypes()
-    {
-        global $_DB_DATAOBJECT;
-        if (!isset($_DB_DATAOBJECT['INI'][$this->_database][$this->__table."__keys"])) {
-            $this->databaseStructure();
-
-        }
-        return $_DB_DATAOBJECT['INI'][$this->_database][$this->__table."__keys"];
-    }
-
     function encache()
     {
         $c = $this->memcache();
@@ -157,7 +147,7 @@ class Memcached_DataObject extends DB_DataObject
         } else {
             $pkey = array();
             $pval = array();
-            $types = $this->keyTypes();
+            $types = $this->keys();
             ksort($types);
             foreach ($types as $key => $type) {
                 if ($type == 'K') {
@@ -182,7 +172,7 @@ class Memcached_DataObject extends DB_DataObject
         } else {
             $pkey = array();
             $pval = array();
-            $types = $this->keyTypes();
+            $types = $this->keys();
             ksort($types);
             foreach ($types as $key => $type) {
                 if ($type == 'K') {