diff options
author | Irina Gómez <irinagomez@us.es> | 2018-10-11 08:29:30 +0000 |
---|---|---|
committer | Irina Gómez <irinagomez@us.es> | 2018-10-11 08:29:30 +0000 |
commit | bb3f68933887950c3e7e51402896625a3455d8a5 (patch) | |
tree | 28057eeccd459054831f21680f69a40d6a2b542e /admin/WebConsole/principal/changelog.php | |
parent | 2a0c332424296d966dfc5431c5e3fd9a0aab1995 (diff) |
#867 Se incluyen pagina para el manual de usuarios y ficheros de idiomas. La versión se toma del fichero VERSION.json
Diffstat (limited to 'admin/WebConsole/principal/changelog.php')
-rw-r--r-- | admin/WebConsole/principal/changelog.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/WebConsole/principal/changelog.php b/admin/WebConsole/principal/changelog.php index 643a063d..c3fd6cff 100644 --- a/admin/WebConsole/principal/changelog.php +++ b/admin/WebConsole/principal/changelog.php @@ -6,8 +6,8 @@ include_once("../includes/ctrlacc.php"); include_once("../idiomas/php/".$idioma."/changelog_".$idioma.".php"); // Añadir versión. -$versionfile="../../doc/VERSION.txt"; -$version=(file_exists ($versionfile)) ? file_get_contents($versionfile, TRUE) : ""; +$data = json_decode(@file_get_contents('../../doc/VERSION.json')); +$version=(empty($data->project)) ? "OpenGnsys" : @$data->project.' '.@$data->version.' '.(isset($data->codename) ? '('.$data->codename.') ' : '').@$data->release;; $changelogfile="../../doc/CHANGELOG.es.txt"; $changelog=(file_exists ($changelogfile)) ? file_get_contents($changelogfile, TRUE) : ""; |