summaryrefslogtreecommitdiff
path: root/index_edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'index_edit.php')
-rw-r--r--index_edit.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/index_edit.php b/index_edit.php
index 4637d9bff0..8b58cd8d5d 100644
--- a/index_edit.php
+++ b/index_edit.php
@@ -24,6 +24,7 @@ namespace Fisharebest\Webtrees;
global $WT_TREE;
use Fisharebest\Webtrees\Controller\PageController;
+use Fisharebest\Webtrees\Functions\FunctionsDb;
define('WT_SCRIPT_NAME', 'index_edit.php');
require './includes/session.php';
@@ -69,9 +70,9 @@ $action = Filter::get('action');
if ($can_reset && Filter::post('default') === '1') {
if ($user_id) {
- $defaults = get_user_blocks(-1);
+ $defaults = FunctionsDb::getUserBlocks(-1);
} else {
- $defaults = get_gedcom_blocks(-1);
+ $defaults = FunctionsDb::getTreeBlocks(-1);
}
$main = $defaults['main'];
$right = $defaults['side'];
@@ -111,9 +112,9 @@ foreach (Module::getActiveBlocks($WT_TREE) as $name => $block) {
}
if ($user_id) {
- $blocks = get_user_blocks($user_id);
+ $blocks = FunctionsDb::getUserBlocks($user_id);
} else {
- $blocks = get_gedcom_blocks($gedcom_id);
+ $blocks = FunctionsDb::getTreeBlocks($gedcom_id);
}
if ($action === 'update') {