Remplace $this par $config
This commit is contained in:
parent
c803660586
commit
97950e3b43
@ -6,39 +6,39 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
$config = new Zend_Config($this->getOptions());
|
||||
Zend_Registry::set('config', $config);
|
||||
|
||||
define('MYSQL_HOST', $this->profil->db->metier->params->host);
|
||||
define('MYSQL_USER', $this->profil->db->metier->params->username);
|
||||
define('MYSQL_PASS', $this->profil->db->metier->params->password);
|
||||
define('MYSQL_HOST', $config->profil->db->metier->params->host);
|
||||
define('MYSQL_USER', $config->profil->db->metier->params->username);
|
||||
define('MYSQL_PASS', $config->profil->db->metier->params->password);
|
||||
define('MYSQL_DEFAULT_DB', 'jo');
|
||||
define('MYSQL_SQL_LOG', 'NONE');
|
||||
|
||||
define('DOC_WEB_LOCAL' , $this->profil->path->files.'/');
|
||||
define('DOC_WEB_LOCAL' , $config->profil->path->files.'/');
|
||||
define('DOC_WEB_URL' , '/fichier/');
|
||||
define('LOG_PATH' , $this->profil->path->data.'/log');
|
||||
define('LOG_PATH' , $config->profil->path->data.'/log');
|
||||
|
||||
// Entreprise
|
||||
define('SPHINX_ENT_HOST', $this->profil->sphinx->ent->host);
|
||||
define('SPHINX_ENT_PORT', intval($this->profil->sphinx->ent->port));
|
||||
define('SPHINX_ENT_VERSION', $this->profil->sphinx->ent->version);
|
||||
define('SPHINX_ENT_HOST', $config->profil->sphinx->ent->host);
|
||||
define('SPHINX_ENT_PORT', intval($config->profil->sphinx->ent->port));
|
||||
define('SPHINX_ENT_VERSION', $config->profil->sphinx->ent->version);
|
||||
|
||||
// Dirigeants
|
||||
define('SPHINX_DIR_HOST', $this->profil->sphinx->dir->host);
|
||||
define('SPHINX_DIR_PORT', intval($this->profil->sphinx->dir->port));
|
||||
define('SPHINX_DIR_VERSION', $this->profil->sphinx->dir->version);
|
||||
define('SPHINX_DIR_HOST', $config->profil->sphinx->dir->host);
|
||||
define('SPHINX_DIR_PORT', intval($config->profil->sphinx->dir->port));
|
||||
define('SPHINX_DIR_VERSION', $config->profil->sphinx->dir->version);
|
||||
|
||||
// Historique
|
||||
define('SPHINX_HISTO_HOST', $this->profil->sphinx->histo->host);
|
||||
define('SPHINX_HISTO_PORT', intval($this->profil->sphinx->histo->port));
|
||||
define('SPHINX_HISTO_VERSION', $this->profil->sphinx->histo->version);
|
||||
define('SPHINX_HISTO_HOST', $config->profil->sphinx->histo->host);
|
||||
define('SPHINX_HISTO_PORT', intval($config->profil->sphinx->histo->port));
|
||||
define('SPHINX_HISTO_VERSION', $config->profil->sphinx->histo->version);
|
||||
|
||||
// Actionnaire
|
||||
define('SPHINX_ACT_HOST', $this->profil->sphinx->act->host);
|
||||
define('SPHINX_ACT_HOST', $config->profil->sphinx->act->host);
|
||||
define('SPHINX_ACT_PORT', intval($this->profil->sphinx->act->port));
|
||||
define('SPHINX_ACT_VERSION', $this->profil->sphinx->act->version);
|
||||
define('SPHINX_ACT_VERSION', $config->profil->sphinx->act->version);
|
||||
|
||||
//Old
|
||||
define('SPHINX_HOST', $this->profil->sphinx->ent->host);
|
||||
define('SPHINX_PORT', intval($this->profil->sphinx->ent->port));
|
||||
define('SPHINX_HOST', $config->profil->sphinx->ent->host);
|
||||
define('SPHINX_PORT', intval($config->profil->sphinx->ent->port));
|
||||
|
||||
define('INFOGREFFE_DISPO_WEB', false);
|
||||
define('INFOGREFFE_DISPO_WS', false);
|
||||
|
Loading…
Reference in New Issue
Block a user