save thelia version

This commit is contained in:
Manuel Raynaud
2013-10-25 09:10:27 +02:00
parent ee1ba49aa8
commit 373fe13287
4 changed files with 9 additions and 5 deletions

2
composer.lock generated
View File

@@ -3,7 +3,7 @@
"This file locks the dependencies of your project to a known state",
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
],
"hash": "4f3fabbb795a71df45ae9f6ccb6df355",
"hash": "009aced8b279e1c14558460fff2cc993",
"packages": [
{
"name": "ensepar/html2pdf",

View File

@@ -23,6 +23,7 @@
namespace Thelia\Core\Template;
use Thelia\Core\Thelia;
use Thelia\Model\ConfigQuery;
use Thelia\Core\HttpFoundation\Request;
use Thelia\Form\BaseForm;
@@ -39,7 +40,7 @@ class ParserContext implements \IteratorAggregate
public function __construct(Request $request)
{
// Setup basic variables
$this->set('THELIA_VERSION' , ConfigQuery::read('thelia_version', 'undefined'))
$this->set('THELIA_VERSION' , Thelia::THELIA_VERSION)
;
}

View File

@@ -54,9 +54,7 @@ use Propel\Runtime\Connection\ConnectionManagerSingle;
class Thelia extends Kernel
{
const THELIA_VERSION = 0.1;
protected $tpexConfig;
const THELIA_VERSION = '2.0.0-beta1';
public function init()
{

View File

@@ -32,6 +32,11 @@ INSERT INTO `config` (`name`, `value`, `secured`, `hidden`, `created_at`, `updat
('contact_email','', 0, 0, NOW(), NOW()),
('url_site','', 0, 0, NOW(), NOW()),
('one_domain_foreach_lang','0', 1, 1, NOW(), NOW())
('thelia_version','2.0.0-beta1', 1, 1, NOW(), NOW())
('thelia_major_version','2', 1, 1, NOW(), NOW())
('thelia_minus_version','0', 1, 1, NOW(), NOW())
('thelia_release_version','0', 1, 1, NOW(), NOW())
('thelia_extra_version','beta1', 1, 1, NOW(), NOW())
;