diff --git a/tests/Alchemy/Phrasea/Application/SetupTest.php b/tests/Alchemy/Phrasea/Application/SetupTest.php
index f62acd1948..ab3b14ed28 100644
--- a/tests/Alchemy/Phrasea/Application/SetupTest.php
+++ b/tests/Alchemy/Phrasea/Application/SetupTest.php
@@ -47,16 +47,16 @@ class ApplicationSetupTest extends PhraseanetWebTestCaseAbstract
$params = array(
'GV_base_datapath_noweb',
'GV_ServerName',
- 'GV_cli',
- 'GV_imagick',
- 'GV_pathcomposite',
- 'GV_swf_extract',
- 'GV_pdf2swf',
- 'GV_swf_render',
- 'GV_unoconv',
- 'GV_ffmpeg',
- 'GV_mp4box',
- 'GV_pdftotext',
+ 'php_binary',
+ 'convert_binary',
+ 'composite_binary',
+ 'swf_extract_binary',
+ 'pdf2swf_binary',
+ 'swf_render_binary',
+ 'unoconv_binary',
+ 'ffmpeg_binary',
+ 'mp4box_binary',
+ 'pdftotext_binary',
);
$registry = $this->appbox->get_registry();
diff --git a/tests/registryTest.php b/tests/registryTest.php
index 342e38100b..e8b2c66fea 100644
--- a/tests/registryTest.php
+++ b/tests/registryTest.php
@@ -88,33 +88,6 @@ class registryTest extends PhraseanetPHPUnitAbstract
$this->object->set('key_test', true, registry::TYPE_BOOLEAN);
$this->assertTrue($this->object->get('key_test') === true);
- /**
- * Set value with type array
- */
- $this->object->set('key_test', 'value1', registry::TYPE_ARRAY);
- $this->assertTrue($this->object->get('key_test') === array('value1'));
-
- $this->object->set('key_test', 1, registry::TYPE_ARRAY);
- $this->assertTrue($this->object->get('key_test') === array(1));
-
- $this->object->set('key_test', '1', registry::TYPE_ARRAY);
- $this->assertTrue($this->object->get('key_test') === array('1'));
-
- $this->object->set('key_test', array('caca'), registry::TYPE_ARRAY);
- $this->assertTrue($this->object->get('key_test') === array('caca'));
-
- $this->object->set('key_test', '0', registry::TYPE_ARRAY);
- $this->assertTrue($this->object->get('key_test') === array('0'));
-
- $this->object->set('key_test', 0, registry::TYPE_ARRAY);
- $this->assertTrue($this->object->get('key_test') === array(0));
-
- $this->object->set('key_test', false, registry::TYPE_ARRAY);
- $this->assertTrue($this->object->get('key_test') === array(false));
-
- $this->object->set('key_test', true, registry::TYPE_ARRAY);
- $this->assertTrue($this->object->get('key_test') === array(true));
-
/**
* Set value with type enum_multi
*/
@@ -184,4 +157,14 @@ class registryTest extends PhraseanetPHPUnitAbstract
$this->object->un_set('key_test');
$this->assertFalse($this->object->is_set('key_test'));
}
+
+ public function testGVSit()
+ {
+ $this->assertNotNull($this->object->get('GV_sit'));
+ }
+ public function testGVSitNotModifiable()
+ {
+ $gv_sit = $this->object->get('GV_sit');
+ $this->assertEquals($gv_sit, $this->object->get('GV_sit'));
+ }
}
diff --git a/www/admin/global_values.php b/www/admin/global_values.php
index 06362a9f5b..a39491363d 100644
--- a/www/admin/global_values.php
+++ b/www/admin/global_values.php
@@ -164,19 +164,20 @@ foreach ($GV as $section) {
switch ($value['type']) {
- case 'boolean':
+ case \registry::TYPE_BOOLEAN:
$input = '
';
break;
- case 'string':
+ case \registry::TYPE_BINARY:
+ case \registry::TYPE_STRING:
$input = '';
break;
- case 'text':
+ case \registry::TYPE_TEXT:
$input = '';
break;
- case 'enum':
+ case \registry::TYPE_ENUM:
$input = '';
break;
- case 'enum_multi':
+ case \registry::TYPE_ENUM_MULTI:
if (isset($value['available']) && is_array($value['available'])) {
foreach ($value['available'] as $k => $v)
$input .= '
';
@@ -194,16 +195,11 @@ foreach ($GV as $section) {
echo '
erreur avec la valeur ' . $value['name'] . '
'; } break; - case 'list': - - break; - case 'integer': + case \registry::TYPE_INTEGER: $input .= ''; break; - case 'password': - $input .= ''; break; - case 'timezone': + case \registry::TYPE_TIMEZONE: if (trim($currentValue) === '') { $datetime = new DateTime(); $currentValue = $datetime->getTimezone()->getName(); diff --git a/www/admin/runscheduler.php b/www/admin/runscheduler.php index be82f880a3..15b3dc253a 100644 --- a/www/admin/runscheduler.php +++ b/www/admin/runscheduler.php @@ -45,9 +45,9 @@ if (defined('PHP_WINDOWS_VERSION_BUILD')) { $nullfile = 'NUL'; } -$phpcli = $registry->get('GV_cli'); +$phpcli = $registry->get('php_binary'); -$cmd = $phpcli . ' -f ' . $registry->get('GV_RootPath') . "bin/console scheduler:start"; +$cmd = escapeshellarg($phpcli) . ' -f ' . __DIR__ . "/../../bin/console scheduler:start"; $descriptors[1] = array("file", $nullfile, "a+"); diff --git a/www/skins/icons/html5-logo.jpeg b/www/skins/icons/html5-logo.jpeg deleted file mode 100644 index deb6868477..0000000000 Binary files a/www/skins/icons/html5-logo.jpeg and /dev/null differ diff --git a/www/skins/icons/html5-logo.png b/www/skins/icons/html5-logo.png new file mode 100644 index 0000000000..675b68f8bd Binary files /dev/null and b/www/skins/icons/html5-logo.png differ