mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
Cleanup namepaces, variables uses
This commit is contained in:
@@ -70,12 +70,10 @@ class patch_320aa implements patchInterface
|
||||
define('GV_sphinx_rt_host', '');
|
||||
define('GV_sphinx_rt_port', '');
|
||||
|
||||
$registry = $app['phraseanet.registry'];
|
||||
|
||||
foreach ($GV as $section => $datas_section) {
|
||||
foreach ($datas_section['vars'] as $datas) {
|
||||
|
||||
$registry->un_set($datas['name']);
|
||||
$app['phraseanet.registry']->un_set($datas['name']);
|
||||
eval('$test = defined("' . $datas["name"] . '");');
|
||||
if ( ! $test) {
|
||||
continue;
|
||||
@@ -97,10 +95,10 @@ class patch_320aa implements patchInterface
|
||||
$type = registry::TYPE_STRING;
|
||||
break;
|
||||
}
|
||||
$registry->set($datas['name'], $val, $type);
|
||||
$app['phraseanet.registry']->set($datas['name'], $val, $type);
|
||||
}
|
||||
}
|
||||
$registry->un_set('registry_loaded');
|
||||
$app['phraseanet.registry']->un_set('registry_loaded');
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@@ -9,7 +9,6 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Alchemy\Phrasea\Core\Configuration;
|
||||
use Alchemy\Phrasea\Application;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user