mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Fix incorrect include paths in tests and railsyml (#6279)
This commit is contained in:
parent
ce10530f53
commit
eefecc21fc
@ -15,7 +15,7 @@ class JSMinifier implements Requirements_Minifier {
|
|||||||
|
|
||||||
// Combine JS
|
// Combine JS
|
||||||
try {
|
try {
|
||||||
require_once('thirdparty/jsmin/jsmin.php');
|
require_once('jsmin/jsmin.php');
|
||||||
increase_time_limit_to();
|
increase_time_limit_to();
|
||||||
$content = JSMin::minify($content);
|
$content = JSMin::minify($content);
|
||||||
} catch(Exception $e) {
|
} catch(Exception $e) {
|
||||||
|
@ -193,7 +193,7 @@ class SSViewerTest extends SapphireTest {
|
|||||||
|
|
||||||
// first make sure that our test js file causes an exception to be thrown
|
// first make sure that our test js file causes an exception to be thrown
|
||||||
try{
|
try{
|
||||||
require_once('thirdparty/jsmin/jsmin.php');
|
require_once('jsmin/jsmin.php');
|
||||||
JSMin::minify($jsFileContents);
|
JSMin::minify($jsFileContents);
|
||||||
$this->fail('JSMin did not throw exception on minify bad file: ');
|
$this->fail('JSMin did not throw exception on minify bad file: ');
|
||||||
} catch(Exception $e) {
|
} catch(Exception $e) {
|
||||||
|
@ -7,9 +7,15 @@ require_once 'Zend/Locale.php';
|
|||||||
require_once 'Zend/Translate/Adapter.php';
|
require_once 'Zend/Translate/Adapter.php';
|
||||||
|
|
||||||
// ischommer CUSTOM Check required because SS core also includes the lib, from a different location
|
// 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('sfYaml')) {
|
||||||
if(!class_exists('sfYamlParser')) require_once 'thirdparty/sfYaml/lib/sfYamlParser.php';
|
require_once __DIR__ .'/thirdparty/sfYaml/lib/sfYaml.php';
|
||||||
if(!class_exists('sfYamlDumper')) require_once 'thirdparty/sfYaml/lib/sfYamlDumper.php';
|
}
|
||||||
|
if(!class_exists('sfYamlParser')) {
|
||||||
|
require_once __DIR__ . '/thirdparty/sfYaml/lib/sfYamlParser.php';
|
||||||
|
}
|
||||||
|
if(!class_exists('sfYamlDumper')) {
|
||||||
|
require_once __DIR__ . '/thirdparty/sfYaml/lib/sfYamlDumper.php';
|
||||||
|
}
|
||||||
// ischommer END_CUSTOM
|
// ischommer END_CUSTOM
|
||||||
|
|
||||||
class Translate_Adapter_RailsYaml extends Zend_Translate_Adapter {
|
class Translate_Adapter_RailsYaml extends Zend_Translate_Adapter {
|
||||||
|
Loading…
Reference in New Issue
Block a user