From 1e3f5197d64f6e3e9644fee11c95723964d3b53f Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 25 Mar 2005 22:47:18 +0000 Subject: [PATCH] - new way of managing the application version git-svn-id: http://piwigo.org/svn/trunk@758 68402e56-0260-453c-a942-63ccdbb3a9ee --- doc/ChangeLog | 6 ++++++ include/constants.php | 2 +- tools/create_listing_file.php | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/ChangeLog b/doc/ChangeLog index 3c1258db0..eb5c09a52 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,9 @@ +2005-03-25 Pierrick LE GALL + + * application version is defined at build or release + creation. This way, include/constants.php won't change at each + build. + 2005-03-25 Pierrick LE GALL * typo fixed : wrong block name closed in template diff --git a/include/constants.php b/include/constants.php index c47ecf9a2..75764f1a5 100644 --- a/include/constants.php +++ b/include/constants.php @@ -26,7 +26,7 @@ // +-----------------------------------------------------------------------+ // Default settings -define('PHPWG_VERSION', '1.4.0'); +define('PHPWG_VERSION', '%PWGVERSION%'); define('PHPWG_URL', 'http://www.phpwebgallery.net'); define('PHPWG_FORUM_URL', 'http://forum.phpwebgallery.net'); diff --git a/tools/create_listing_file.php b/tools/create_listing_file.php index 81f55ef29..3111a71c5 100644 --- a/tools/create_listing_file.php +++ b/tools/create_listing_file.php @@ -42,7 +42,7 @@ $conf['picture_ext'] = array('jpg','JPG','png','PNG','gif','GIF'); // $conf['version'] is used to verify the compatibility of the generated // listing.xml file and the PhpWebGallery version you're running -$conf['version'] = '1.4.0RC3'; +$conf['version'] = '%PWGVERSION%'; // $conf['use_exif'] set to true if you want to use Exif Date as "creation // date" for the element, otherwise, set to false