From ab950a19094d46577d57d7ae5fc4c1b321843b5d Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Tue, 31 Jul 2007 02:39:49 +0000 Subject: [PATCH] [2.1.0] Fix fairly major bug introduced when logic was reorganized. git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1324 48356398-32a2-884e-a903-53898d9a118a --- maintenance/merge-library.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/maintenance/merge-library.php b/maintenance/merge-library.php index d1ba92bd..8996d2b5 100644 --- a/maintenance/merge-library.php +++ b/maintenance/merge-library.php @@ -175,16 +175,15 @@ create_blank('HTMLPurifier.php'); echo 'Creating full file...'; $contents = replace_includes(file_get_contents('HTMLPurifier.php')); -file_put_contents('HTMLPurifier.standalone.php', $contents); -echo ' done!' . PHP_EOL; - -echo 'Creating standalone directory...'; -// rearrange things that can't be put in our standalone file $contents = str_replace( "define('HTMLPURIFIER_PREFIX', dirname(__FILE__));", "define('HTMLPURIFIER_PREFIX', dirname(__FILE__) . '/standalone');", $contents ); +file_put_contents('HTMLPurifier.standalone.php', $contents); +echo ' done!' . PHP_EOL; + +echo 'Creating standalone directory...'; rmdirr('standalone'); // ensure a clean copy mkdir_deep('standalone/HTMLPurifier/DefinitionCache/Serializer'); make_dir_standalone('HTMLPurifier/EntityLookup');