Skip to content
Browse files

use const instead of define() for version number of Transvision, just…

… to make it stand out in the code
  • Loading branch information...
1 parent b2889cb commit 6ad737acf6fb2d1a5886cd067cc66778f054ae38 @pascalchevrel pascalchevrel committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 web/inc/init.php
View
4 web/inc/init.php
@@ -12,7 +12,9 @@
define('WEBROOT', INSTALLROOT . 'web/');
define('INC', INSTALLROOT . 'web/inc/');
define('VIEWS', INSTALLROOT . 'web/views/');
-define('VERSION', '1.8dev');
+
+// Bump this constant with each new release
+const VERSION = '1.8dev';
// Global Variables used on the site
$debug = (strstr(VERSION, 'dev') || isset($_GET['debug'])) ? true : false;

0 comments on commit 6ad737a

Please sign in to comment.
Something went wrong with that request. Please try again.