save thelia version
This commit is contained in:
2
composer.lock
generated
2
composer.lock
generated
@@ -3,7 +3,7 @@
|
|||||||
"This file locks the dependencies of your project to a known state",
|
"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"
|
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
|
||||||
],
|
],
|
||||||
"hash": "4f3fabbb795a71df45ae9f6ccb6df355",
|
"hash": "009aced8b279e1c14558460fff2cc993",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "ensepar/html2pdf",
|
"name": "ensepar/html2pdf",
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
namespace Thelia\Core\Template;
|
namespace Thelia\Core\Template;
|
||||||
|
|
||||||
|
use Thelia\Core\Thelia;
|
||||||
use Thelia\Model\ConfigQuery;
|
use Thelia\Model\ConfigQuery;
|
||||||
use Thelia\Core\HttpFoundation\Request;
|
use Thelia\Core\HttpFoundation\Request;
|
||||||
use Thelia\Form\BaseForm;
|
use Thelia\Form\BaseForm;
|
||||||
@@ -39,7 +40,7 @@ class ParserContext implements \IteratorAggregate
|
|||||||
public function __construct(Request $request)
|
public function __construct(Request $request)
|
||||||
{
|
{
|
||||||
// Setup basic variables
|
// Setup basic variables
|
||||||
$this->set('THELIA_VERSION' , ConfigQuery::read('thelia_version', 'undefined'))
|
$this->set('THELIA_VERSION' , Thelia::THELIA_VERSION)
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -54,9 +54,7 @@ use Propel\Runtime\Connection\ConnectionManagerSingle;
|
|||||||
class Thelia extends Kernel
|
class Thelia extends Kernel
|
||||||
{
|
{
|
||||||
|
|
||||||
const THELIA_VERSION = 0.1;
|
const THELIA_VERSION = '2.0.0-beta1';
|
||||||
|
|
||||||
protected $tpexConfig;
|
|
||||||
|
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -32,6 +32,11 @@ INSERT INTO `config` (`name`, `value`, `secured`, `hidden`, `created_at`, `updat
|
|||||||
('contact_email','', 0, 0, NOW(), NOW()),
|
('contact_email','', 0, 0, NOW(), NOW()),
|
||||||
('url_site','', 0, 0, NOW(), NOW()),
|
('url_site','', 0, 0, NOW(), NOW()),
|
||||||
('one_domain_foreach_lang','0', 1, 1, 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())
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user