forked from GNUsocial/gnu-social
use keys() instead of keyTypes() so plugin data object work
This commit is contained in:
parent
121c696267
commit
ec380887f7
@ -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()
|
function encache()
|
||||||
{
|
{
|
||||||
$c = $this->memcache();
|
$c = $this->memcache();
|
||||||
@ -157,7 +147,7 @@ class Memcached_DataObject extends DB_DataObject
|
|||||||
} else {
|
} else {
|
||||||
$pkey = array();
|
$pkey = array();
|
||||||
$pval = array();
|
$pval = array();
|
||||||
$types = $this->keyTypes();
|
$types = $this->keys();
|
||||||
ksort($types);
|
ksort($types);
|
||||||
foreach ($types as $key => $type) {
|
foreach ($types as $key => $type) {
|
||||||
if ($type == 'K') {
|
if ($type == 'K') {
|
||||||
@ -182,7 +172,7 @@ class Memcached_DataObject extends DB_DataObject
|
|||||||
} else {
|
} else {
|
||||||
$pkey = array();
|
$pkey = array();
|
||||||
$pval = array();
|
$pval = array();
|
||||||
$types = $this->keyTypes();
|
$types = $this->keys();
|
||||||
ksort($types);
|
ksort($types);
|
||||||
foreach ($types as $key => $type) {
|
foreach ($types as $key => $type) {
|
||||||
if ($type == 'K') {
|
if ($type == 'K') {
|
||||||
|
Loading…
Reference in New Issue
Block a user