Permalink
Browse files

Merge pull request #70 from etienne/fix-compile

Fix Wordless::compile_assets() to actually output compiled assets instead of blank files
  • Loading branch information...
2 parents 3ce35ea + cac25bc commit 9fc84c16982a9a07ac431b74daeacd7233591ae3 @endorama endorama committed Apr 3, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 wordless/wordless.php
View
7 wordless/wordless.php
@@ -120,11 +120,8 @@ public static function compile_assets() {
$compiled_file_path = preg_replace("/\." . $extension . "$/", ".".$preprocessor->to_extension(), $compiled_file_path);
try {
- ob_start();
- $to_process_file_path = preg_replace("/\." . $extension . "$/", "", $file_path);
- $preprocessor->process_file_with_caching($to_process_file_path, Wordless::theme_temp_path());
- $compiled_content = ob_get_contents();
- ob_end_clean();
+ $to_process_file_path = preg_replace("/\." . $extension . "$/", "", $file_path);
+ $compiled_content = $preprocessor->process_file_with_caching($to_process_file_path, Wordless::theme_temp_path());
} catch(WordlessCompileException $e) {
echo "Problems compiling $file_path to $compiled_file_path\n\n";
echo $e;

0 comments on commit 9fc84c1

Please sign in to comment.