mirror of
https://github.com/hauke68/Magallanes.git
synced 2025-09-13 20:50:18 +02:00
Fixes on Config parser for new Yaml library.
This commit is contained in:
parent
51e7de0676
commit
4863990f68
@ -158,7 +158,11 @@ class Mage_Config
|
|||||||
{
|
{
|
||||||
$options = $this->getEnvironment();
|
$options = $this->getEnvironment();
|
||||||
if (isset($options['deployment'][$option])) {
|
if (isset($options['deployment'][$option])) {
|
||||||
|
if (is_array($default) && ($options['deployment'][$option] == '')) {
|
||||||
|
return $default;
|
||||||
|
} else {
|
||||||
return $options['deployment'][$option];
|
return $options['deployment'][$option];
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return $default;
|
return $default;
|
||||||
}
|
}
|
||||||
@ -168,7 +172,11 @@ class Mage_Config
|
|||||||
{
|
{
|
||||||
$options = $this->getEnvironment();
|
$options = $this->getEnvironment();
|
||||||
if (isset($options['releases'][$option])) {
|
if (isset($options['releases'][$option])) {
|
||||||
|
if (is_array($default) && ($options['releases'][$option] == '')) {
|
||||||
|
return $default;
|
||||||
|
} else {
|
||||||
return $options['releases'][$option];
|
return $options['releases'][$option];
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return $default;
|
return $default;
|
||||||
}
|
}
|
||||||
@ -178,6 +186,11 @@ class Mage_Config
|
|||||||
{
|
{
|
||||||
$options = $this->_scm;
|
$options = $this->_scm;
|
||||||
if (isset($options[$option])) {
|
if (isset($options[$option])) {
|
||||||
|
if (is_array($default) && ($options[$option] == '')) {
|
||||||
|
return $default;
|
||||||
|
} else {
|
||||||
|
return $options[$option];
|
||||||
|
}
|
||||||
return $options[$option];
|
return $options[$option];
|
||||||
} else {
|
} else {
|
||||||
return $default;
|
return $default;
|
||||||
@ -188,7 +201,11 @@ class Mage_Config
|
|||||||
{
|
{
|
||||||
$options = $this->_general;
|
$options = $this->_general;
|
||||||
if (isset($options[$option])) {
|
if (isset($options[$option])) {
|
||||||
|
if (is_array($default) && ($options[$option] == '')) {
|
||||||
|
return $default;
|
||||||
|
} else {
|
||||||
return $options[$option];
|
return $options[$option];
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return $default;
|
return $default;
|
||||||
}
|
}
|
||||||
@ -198,7 +215,11 @@ class Mage_Config
|
|||||||
{
|
{
|
||||||
$options = $this->_general;
|
$options = $this->_general;
|
||||||
if (isset($options['mail'][$option])) {
|
if (isset($options['mail'][$option])) {
|
||||||
|
if (is_array($default) && ($options['mail'][$option] == '')) {
|
||||||
|
return $default;
|
||||||
|
} else {
|
||||||
return $options['mail'][$option];
|
return $options['mail'][$option];
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return $default;
|
return $default;
|
||||||
}
|
}
|
||||||
|
2
bin/mage
2
bin/mage
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#VERSION:0.9.4
|
#VERSION:0.9.5
|
||||||
|
|
||||||
SCRIPT=$(readlink -f $0)
|
SCRIPT=$(readlink -f $0)
|
||||||
DIR=$(dirname $SCRIPT)
|
DIR=$(dirname $SCRIPT)
|
||||||
|
@ -24,7 +24,7 @@ date_default_timezone_set('UTC');
|
|||||||
|
|
||||||
$baseDir = dirname(dirname(__FILE__));
|
$baseDir = dirname(dirname(__FILE__));
|
||||||
|
|
||||||
define('MAGALLANES_VERSION', '0.9.4');
|
define('MAGALLANES_VERSION', '0.9.5');
|
||||||
|
|
||||||
require_once $baseDir . '/Mage/spyc.php';
|
require_once $baseDir . '/Mage/spyc.php';
|
||||||
require_once $baseDir . '/Mage/Autoload.php';
|
require_once $baseDir . '/Mage/Autoload.php';
|
||||||
|
Loading…
Reference in New Issue
Block a user