aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/diagnostics/start.php4
-rw-r--r--mod/updateclient/start.php4
2 files changed, 6 insertions, 2 deletions
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']) ||