Add the version in the about box. fix #86

This commit is contained in:
Sébastien Lucas 2013-08-27 10:02:56 +02:00
parent 7c9134bd5d
commit c96a0bfbcf

View file

@ -647,7 +647,8 @@ function getJson ($complete = false) {
$out["abouturl"] = "index.php" . addURLParameter ("?page=16", DB, $database);
if ($page == Base::PAGE_ABOUT) {
$out ["fullhtml"] = file_get_contents('about.html');
$temp = preg_replace ("/\<h1\>About COPS\<\/h1\>/", "<h1>About COPS " . VERSION . "</h1>", file_get_contents('about.html'));
$out ["fullhtml"] = $temp;
}
$out ["homeurl"] = "index.php";