Skip to content

Commit

Permalink
BUG Fix incorrect include paths in tests and railsyml (#6279)
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Mooyman authored and Sam Minnée committed Nov 3, 2016
1 parent ce10530 commit eefecc2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/View/JSMinifier.php
Expand Up @@ -15,7 +15,7 @@ public function minify($content, $type, $filename) {

// Combine JS
try {
require_once('thirdparty/jsmin/jsmin.php');
require_once('jsmin/jsmin.php');
increase_time_limit_to();
$content = JSMin::minify($content);
} catch(Exception $e) {
Expand Down
2 changes: 1 addition & 1 deletion tests/view/SSViewerTest.php
Expand Up @@ -193,7 +193,7 @@ public function testRequirementsCombine(){

// first make sure that our test js file causes an exception to be thrown
try{
require_once('thirdparty/jsmin/jsmin.php');
require_once('jsmin/jsmin.php');
JSMin::minify($jsFileContents);
$this->fail('JSMin did not throw exception on minify bad file: ');
} catch(Exception $e) {
Expand Down
Expand Up @@ -7,9 +7,15 @@
require_once 'Zend/Translate/Adapter.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';
if(!class_exists('sfYaml')) {
require_once __DIR__ .'/thirdparty/sfYaml/lib/sfYaml.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

class Translate_Adapter_RailsYaml extends Zend_Translate_Adapter {
Expand Down

0 comments on commit eefecc2

Please sign in to comment.