From c521e3a53422f0ce3281ad653776db821f330257 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Thu, 28 Feb 2008 05:35:45 +0000 Subject: [PATCH] Fix fatal error with empty migrate.php file git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1581 48356398-32a2-884e-a903-53898d9a118a --- plugins/phorum/Changelog | 1 + plugins/phorum/htmlpurifier.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/plugins/phorum/Changelog b/plugins/phorum/Changelog index 9420f6dd..a73eba7b 100644 --- a/plugins/phorum/Changelog +++ b/plugins/phorum/Changelog @@ -11,6 +11,7 @@ Changelog HTMLPurifier : Phorum Mod Version 3.0.0.1 for Phorum 5.2, unknown release date - Fixed double encoded quotes +- Fixed fatal error when migrate.php is blank Version 3.0.0 for Phorum 5.2, released January 12, 2008 # WYSIWYG and suppress_message options are now configurable via web diff --git a/plugins/phorum/htmlpurifier.php b/plugins/phorum/htmlpurifier.php index 26d78a1d..926f0b50 100644 --- a/plugins/phorum/htmlpurifier.php +++ b/plugins/phorum/htmlpurifier.php @@ -221,6 +221,11 @@ function phorum_htmlpurifier_common() { exit; } + if (!function_exists('phorum_htmlpurifier_migrate')) { + // Dummy function + function phorum_htmlpurifier_migrate($data) {return $data;} + } + } /**