From cac25bc44770da7006cd7b2781c21f8ceb58a9cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81tienne=20Despre=CC=81s?= Date: Sun, 1 Apr 2012 20:47:12 -0400 Subject: [PATCH] Fix Wordless::compile_assets() to actually output compiled assets instead of blank files. --- wordless/wordless.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/wordless/wordless.php b/wordless/wordless.php index c4dd4ee2..f0f404c1 100644 --- a/wordless/wordless.php +++ b/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;