Merge
This commit is contained in:
commit
951ab7efd4
@ -35,11 +35,10 @@ class ComptageController extends Zend_Controller_Action
|
||||
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$user = $auth->getIdentity();
|
||||
Zend_Registry::get('firebug')->info($user);
|
||||
if ($user->preferences['interface']['insee']==1) {
|
||||
$insee = null;
|
||||
} else {
|
||||
$insee = $ciblage->calculRedevanceInsee();
|
||||
if ($user->preferences['interface']['insee']==1) {
|
||||
$insee = $ciblage->calculRedevanceInsee();
|
||||
} else {
|
||||
$insee = null;
|
||||
}
|
||||
$fields->setNb('insee', $insee);
|
||||
|
||||
|
@ -105,12 +105,11 @@ class IndexController extends Zend_Controller_Action
|
||||
$fields->setNb('total', $total);
|
||||
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$user = $auth->getIdentity();
|
||||
Zend_Registry::get('firebug')->info($user);
|
||||
$user = $auth->getIdentity();
|
||||
if ($user->preferences['interface']['insee']==1) {
|
||||
$insee = null;
|
||||
} else {
|
||||
$insee = $ciblage->calculRedevanceInsee();
|
||||
} else {
|
||||
$insee = null;
|
||||
}
|
||||
$fields->setNb('insee', $insee);
|
||||
|
||||
|
@ -48,9 +48,9 @@ class Application_Controller_Plugin_Comptage extends Zend_Controller_Plugin_Abst
|
||||
$total = $ciblage->execute();
|
||||
$session->setNb('total', $total);
|
||||
if ($user->preferences['interface']['insee']==1) {
|
||||
$insee = null;
|
||||
} else {
|
||||
$insee = $ciblage->calculRedevanceInsee();
|
||||
} else {
|
||||
$insee = null;
|
||||
}
|
||||
$session->setNb('insee', $insee);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user