mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Workaround for duplicate require_once calls of same class in two locations (SS core and Zend_Translate_RailsYAML)
This commit is contained in:
parent
d3b63dae0c
commit
c649fa3acf
@ -481,6 +481,7 @@ class i18nTextCollector_Writer_RailsYaml implements i18nTextCollector_Writer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getYaml($entities, $locale) {
|
public function getYaml($entities, $locale) {
|
||||||
|
// Check required because Zend_Translate_RailsYAML also includes the lib, from a different location
|
||||||
if(!class_exists('sfYamlDumper', false)) require_once 'thirdparty/symfony-yaml/lib/sfYamlDumper.php';
|
if(!class_exists('sfYamlDumper', false)) require_once 'thirdparty/symfony-yaml/lib/sfYamlDumper.php';
|
||||||
|
|
||||||
// Unflatten array
|
// Unflatten array
|
||||||
|
@ -6,7 +6,11 @@ require_once 'Zend/Locale.php';
|
|||||||
/** Zend_Translate_Adapter */
|
/** Zend_Translate_Adapter */
|
||||||
require_once 'Zend/Translate/Adapter.php';
|
require_once 'Zend/Translate/Adapter.php';
|
||||||
|
|
||||||
// require_once 'thirdparty/sfYaml/lib/sfYaml.php';
|
// ischommer CUSTOM Check required because SS core also includes the lib, from a different location
|
||||||
|
if(!class_exists('sfYaml')) require_once 'thirdparty/sfYaml/lib/sfYaml.php';
|
||||||
|
if(!class_exists('sfYamlParser')) require_once 'thirdparty/sfYaml/lib/sfYamlParser.php';
|
||||||
|
if(!class_exists('sfYamlDumper')) require_once 'thirdparty/sfYaml/lib/sfYamlDumper.php';
|
||||||
|
// ischommer END_CUSTOM
|
||||||
|
|
||||||
class Translate_Adapter_RailsYaml extends Zend_Translate_Adapter {
|
class Translate_Adapter_RailsYaml extends Zend_Translate_Adapter {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user