diff --git a/lib/Alchemy/Phrasea/Core/Version.php b/lib/Alchemy/Phrasea/Core/Version.php index 4256eaa90c..a2ea29e75c 100644 --- a/lib/Alchemy/Phrasea/Core/Version.php +++ b/lib/Alchemy/Phrasea/Core/Version.php @@ -18,7 +18,7 @@ namespace Alchemy\Phrasea\Core; */ class Version { - protected static $number = '3.8.4-alpha.2'; + protected static $number = '3.8.4-alpha.3'; protected static $name = 'Diplodocus'; public static function getNumber() diff --git a/lib/classes/patch/384alpha3a.php b/lib/classes/patch/384alpha3a.php new file mode 100644 index 0000000000..847edc30a9 --- /dev/null +++ b/lib/classes/patch/384alpha3a.php @@ -0,0 +1,70 @@ +release; + } + + /** + * {@inheritdoc} + */ + public function require_all_upgrades() + { + return false; + } + + /** + * {@inheritdoc} + */ + public function concern() + { + return $this->concern; + } + + /** + * {@inheritdoc} + */ + public function apply(base $appbox, Application $app) + { + $config = $app['phraseanet.configuration']->getConfig(); + + $config['api_cors'] = array( + 'enabled' => false, + 'allow_credentials' => false, + 'allow_origin' => array(), + 'allow_headers' => array(), + 'allow_methods' => array(), + 'expose_headers' => array(), + 'max_age' => 0, + 'hosts' => array(), + ); + + $app['phraseanet.configuration']->setConfig($config); + + return true; + } +}