Bug fix, when parent is edited the childs disappear
This commit is contained in:
parent
d1598c0f3f
commit
7a7687b69d
|
@ -257,6 +257,9 @@ class dbPages extends dbJSON
|
|||
// This function reindex the orphan children with the new parent key
|
||||
// If a page has subpages and the page change his key is necesarry check the children key
|
||||
public function reindexChildren($oldParentKey, $newParentKey) {
|
||||
if ($oldParentKey==$newParentKey){
|
||||
return false;
|
||||
}
|
||||
$tmp = $this->db;
|
||||
foreach ($tmp as $key=>$fields) {
|
||||
if (Text::startsWith($key, $oldParentKey.'/')) {
|
||||
|
|
|
@ -297,11 +297,6 @@ function activatePlugin($pluginClassName) {
|
|||
// Check if the plugin exists
|
||||
if (isset($plugins['all'][$pluginClassName])) {
|
||||
$plugin = $plugins['all'][$pluginClassName];
|
||||
$blackList = array('pluginTimeMachine', 'pluginRemoteContent');
|
||||
if (in_array($pluginClassName, $blackList) && !defined('BLUDIT_PRO')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($plugin->install()) {
|
||||
// Add to syslog
|
||||
$Syslog->add(array(
|
||||
|
|
Loading…
Reference in New Issue