diff options
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -25,6 +25,8 @@ global $WT_TREE; use Fisharebest\Webtrees\Controller\AjaxController; use Fisharebest\Webtrees\Controller\PageController; +use Fisharebest\Webtrees\Functions\Functions; +use Fisharebest\Webtrees\Functions\FunctionsDb; define('WT_SCRIPT_NAME', 'index.php'); require './includes/session.php'; @@ -41,15 +43,15 @@ if (Auth::check()) { // Get the blocks list if ($ctype === 'user') { - $blocks = get_user_blocks(Auth::id()); + $blocks = FunctionsDb::getUserBlocks(Auth::id()); } else { - $blocks = get_gedcom_blocks($WT_TREE->getTreeId()); + $blocks = FunctionsDb::getTreeBlocks($WT_TREE->getTreeId()); } $active_blocks = Module::getActiveBlocks($WT_TREE); // The latest version is shown on the administration page. This updates it every day. -fetch_latest_version(); +Functions::fetchLatestVersion(); // We generate individual blocks using AJAX if ($action === 'ajax') { |
