diff --git a/plugins/phorum/init-config.php b/plugins/phorum/init-config.php
index 25aaa764..aa7b1559 100644
--- a/plugins/phorum/init-config.php
+++ b/plugins/phorum/init-config.php
@@ -5,10 +5,10 @@
* or a module configuration value
* @return Instance of HTMLPurifier_Config
*/
-function phorum_htmlpurifier_get_config() {
+function phorum_htmlpurifier_get_config($default = false) {
global $PHORUM;
$config_exists = phorum_htmlpurifier_config_file_exists();
- if ($config_exists || !isset($PHORUM['mod_htmlpurifier']['config'])) {
+ if ($default || $config_exists || !isset($PHORUM['mod_htmlpurifier']['config'])) {
$config = HTMLPurifier_Config::createDefault();
include(dirname(__FILE__) . '/config.default.php');
if ($config_exists) {
diff --git a/plugins/phorum/settings/save.php b/plugins/phorum/settings/save.php
index 740096a7..7dbb767d 100644
--- a/plugins/phorum/settings/save.php
+++ b/plugins/phorum/settings/save.php
@@ -6,7 +6,7 @@ function phorum_htmlpurifier_save_settings() {
echo "Cannot update settings, mods/htmlpurifier/config.php
already exists. To change
settings, edit that file. To use the web form, delete that file.
";
} else {
- $config = phorum_htmlpurifier_get_config();
+ $config = phorum_htmlpurifier_get_config(true);
if (!isset($_POST['reset'])) $config->mergeArrayFromForm($_POST, 'config', $PHORUM['mod_htmlpurifier']['directives']);
$PHORUM['mod_htmlpurifier']['config'] = $config->getAll();
}