diff options
-rw-r--r-- | engine/lib/ping.php | 4 | ||||
-rw-r--r-- | mod/diagnostics/start.php | 4 | ||||
-rw-r--r-- | mod/updateclient/start.php | 4 | ||||
-rw-r--r-- | views/default/admin/statistics_opt/basic.php | 5 |
4 files changed, 13 insertions, 4 deletions
diff --git a/engine/lib/ping.php b/engine/lib/ping.php index ed119b50a..24b74a551 100644 --- a/engine/lib/ping.php +++ b/engine/lib/ping.php @@ -26,7 +26,9 @@ { global $NOTIFICATION_SERVER, $CONFIG; - include_once($CONFIG->path . "version.php"); + // Get version information + $version = get_version(); + $release = get_version(true); // Get export $export = export($site->guid); diff --git a/mod/diagnostics/start.php b/mod/diagnostics/start.php index 38cb6b167..e2592e263 100644 --- a/mod/diagnostics/start.php +++ b/mod/diagnostics/start.php @@ -61,7 +61,9 @@ { global $CONFIG; - include_once($CONFIG->path . "version.php"); + // Get version information + $version = get_version(); + $release = get_version(true); $returnvalue .= sprintf(elgg_echo('diagnostics:report:basic'), $release, $version); diff --git a/mod/updateclient/start.php b/mod/updateclient/start.php index a99532303..2cf8026c3 100644 --- a/mod/updateclient/start.php +++ b/mod/updateclient/start.php @@ -95,7 +95,9 @@ { $result = $result->result; - include_once($CONFIG->url . "version.php"); + // Get version information + $version = get_version(); + $release = get_version(true); if ( ($version != $result['version']) || diff --git a/views/default/admin/statistics_opt/basic.php b/views/default/admin/statistics_opt/basic.php index 1ea3578b5..f36bebdd2 100644 --- a/views/default/admin/statistics_opt/basic.php +++ b/views/default/admin/statistics_opt/basic.php @@ -17,7 +17,10 @@ global $CONFIG; - include_once($CONFIG->path . "version.php"); + // Get version information + $version = get_version(); + $release = get_version(true); + ?> <div class="admin_statistics"> <h3><?php echo elgg_echo('admin:statistics:label:basic'); ?></h3> |