aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers/BaseController.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-07-30 07:10:20 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-07-30 07:10:20 +0000
commit15b8f0b3a4a573af35ddbd478cbd7d4f1f8cea4c (patch)
tree79d6b076cdc01494b35ee3084a83729c82ab05e6 /h-source/Application/Controllers/BaseController.php
parent0c83490f6220ec2fbf770ce6f840325f6df53b10 (diff)
fixed little error: no submission is possible when updating the website - corrected also for anonymous users
Diffstat (limited to 'h-source/Application/Controllers/BaseController.php')
-rw-r--r--h-source/Application/Controllers/BaseController.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/h-source/Application/Controllers/BaseController.php b/h-source/Application/Controllers/BaseController.php
index eb8042d..0954d2f 100644
--- a/h-source/Application/Controllers/BaseController.php
+++ b/h-source/Application/Controllers/BaseController.php
@@ -29,6 +29,7 @@ class BaseController extends Controller
protected $isadmin = false;
protected $querySanitized = true;
protected $token = 'token';
+ protected $_updating;
protected $_topMenuClasses = array(
"home" => null,
@@ -50,6 +51,7 @@ class BaseController extends Controller
$this->model('BoxesModel');
$this->model('HistoryModel');
+ $this->model('ParamsModel');
$this->load('header');
$this->load('footer','last');
@@ -102,6 +104,11 @@ class BaseController extends Controller
$data['querySanitized'] = $this->querySanitized;
$data['queryString'] = Url::createUrl($this->_queryString);
+ //check it they are updating the website
+ $updating = $this->m['ParamsModel']->select('updating')->where(array('id_par'=>1))->toList('updating')->send();
+ $data['updating_flag'] = $updating[0];
+ $this->_updating = $data['updating_flag'];
+
$this->append($data);
}