mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 14:03:27 +00:00
Remove get_registry method
This commit is contained in:
@@ -56,8 +56,8 @@ class patch_303 implements patchInterface
|
||||
|
||||
public function apply(base $appbox, Application $app)
|
||||
{
|
||||
$this->update_users_log_datas($appbox);
|
||||
$this->update_users_search_datas($appbox);
|
||||
$this->update_users_log_datas($appbox, $app);
|
||||
$this->update_users_search_datas($appbox, $app);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -66,7 +66,7 @@ class patch_303 implements patchInterface
|
||||
*
|
||||
* @return patch_303
|
||||
*/
|
||||
public function update_users_log_datas(appbox $appbox)
|
||||
public function update_users_log_datas(appbox $appbox, Application $app)
|
||||
{
|
||||
$col = array('fonction', 'societe', 'activite', 'pays');
|
||||
|
||||
@@ -90,7 +90,7 @@ class patch_303 implements patchInterface
|
||||
foreach ($appbox->get_databoxes() as $databox) {
|
||||
foreach ($tab_usr as $id => $columns) {
|
||||
$f_req = array();
|
||||
$params = array(':usr_id' => $id, ':site' => $appbox->get_registry()->get('GV_sit'));
|
||||
$params = array(':usr_id' => $id, ':site' => $app['phraseanet.registry']->get('GV_sit'));
|
||||
foreach ($columns as $column => $value) {
|
||||
$column = trim($column);
|
||||
$f_req[] = $column . " = :" . $column;
|
||||
@@ -112,7 +112,7 @@ class patch_303 implements patchInterface
|
||||
*
|
||||
* @return patch_303
|
||||
*/
|
||||
public function update_users_search_datas(appbox $appbox)
|
||||
public function update_users_search_datas(appbox $appbox, Application $app)
|
||||
{
|
||||
foreach ($appbox->get_databoxes() as $databox) {
|
||||
$date_debut = '0000-00-00 00:00:00';
|
||||
|
@@ -60,7 +60,7 @@ class patch_320aa implements patchInterface
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
require __DIR__ . '/../../../lib/conf.d/_GV_template.inc';
|
||||
|
||||
define('GV_STATIC_URL', '');
|
||||
@@ -70,7 +70,7 @@ class patch_320aa implements patchInterface
|
||||
define('GV_sphinx_rt_host', '');
|
||||
define('GV_sphinx_rt_port', '');
|
||||
|
||||
$registry = $appbox->get_registry();
|
||||
$registry = $app['phraseanet.registry'];
|
||||
|
||||
foreach ($GV as $section => $datas_section) {
|
||||
foreach ($datas_section['vars'] as $datas) {
|
||||
|
Reference in New Issue
Block a user