From b8029c04f32e02df7d924f86f1802bccd95443bc Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Tue, 17 Sep 2013 09:55:41 +0200 Subject: [PATCH] use wrapper to fetch last network block --- public/include/pages/statistics.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/include/pages/statistics.inc.php b/public/include/pages/statistics.inc.php index be328545..3f63e870 100644 --- a/public/include/pages/statistics.inc.php +++ b/public/include/pages/statistics.inc.php @@ -8,7 +8,7 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) { $debug->append('No cached version available, fetching from backend', 3); if ($bitcoin->can_connect() === true){ $dDifficulty = $bitcoin->getdifficulty(); - $iBlock = $bitcoin->query('getblockcount'); + $iBlock = $bitcoin->getblockcount(); } else { $dDifficulty = 1; $iBlock = 0;