Merge branch 'patch-20190125a' into 'dev'
Remove extraneous sync logic See merge request hubzilla/core!1490
This commit is contained in:
commit
17d9e30be5
@ -275,23 +275,13 @@ class PConfig {
|
|||||||
dbesc($key)
|
dbesc($key)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Synchronize delete with clones.
|
||||||
|
|
||||||
if ($family != 'hz_delpconfig') {
|
if ($family != 'hz_delpconfig') {
|
||||||
$hash = hash('sha256',$family.':'.$key);
|
$hash = hash('sha256',$family.':'.$key);
|
||||||
set_pconfig($uid,'hz_delpconfig',$hash,$updated);
|
set_pconfig($uid,'hz_delpconfig',$hash,$updated);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Synchronize delete with clones.
|
|
||||||
|
|
||||||
if(! array_key_exists('transient', \App::$config[$uid]))
|
|
||||||
\App::$config[$uid]['transient'] = array();
|
|
||||||
if(! array_key_exists($family, \App::$config[$uid]['transient']))
|
|
||||||
\App::$config[$uid]['transient'][$family] = array();
|
|
||||||
|
|
||||||
/// @FIXME $new is undefined, so dead code
|
|
||||||
if ($new) {
|
|
||||||
\App::$config[$uid]['transient'][$family]['pcfgdel:'.$key] = $updated;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user