Use the constant ... better

This commit is contained in:
Sébastien Lucas 2014-02-09 15:21:47 +01:00
parent 3c4e809939
commit dc2cfe5160

View file

@ -218,7 +218,7 @@ class JSONRenderer
$out ["containsBook"] = 1;
}
$out["abouturl"] = "index.php" . addURLParameter ("?page=16", DB, $database);
$out["abouturl"] = "index.php" . addURLParameter ("?page=" . Base::PAGE_ABOUT, DB, $database);
if ($page == Base::PAGE_ABOUT) {
$temp = preg_replace ("/\<h1\>About COPS\<\/h1\>/", "<h1>About COPS " . VERSION . "</h1>", file_get_contents('about.html'));