From 6b0caaee816d1928641913b7e4c0e6ae016cd139 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Wed, 29 Aug 2007 15:14:18 +0000 Subject: [PATCH] Now module confguration (records from config) is deleted when a module is deleted. MDL-11056 --- admin/modules.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/admin/modules.php b/admin/modules.php index 08120caf27..7e5e32a35e 100644 --- a/admin/modules.php +++ b/admin/modules.php @@ -108,6 +108,11 @@ notify("Error occurred while deleting the $strmodulename record from modules table"); } + // And the module configuration records + if (!execute_sql("DELETE FROM {$CFG->prefix}config WHERE name LIKE '{$module->name}_%'")) { + notify("Error occurred while deleting the $strmodulename records from the config table"); + } + // Then the tables themselves if ($tables = $db->Metatables()) { -- 2.39.5