X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_mods.php;h=cd5e40d9ba62f20fc887cfdbb85ae89f2893a458;hb=6c18a7bf8866b5ebdcb219891efaad99989a2cd5;hp=e352214c2090bb24ec7fc07fbccc72bf851ab6ba;hpb=2379934be6a196a54f4155bb8e24c49b20736969;p=mailer.git diff --git a/inc/modules/admin/what-config_mods.php b/inc/modules/admin/what-config_mods.php index e352214c20..cd5e40d9ba 100644 --- a/inc/modules/admin/what-config_mods.php +++ b/inc/modules/admin/what-config_mods.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -92,7 +92,17 @@ if (isFormSent('edit')) { $id = bigintval($id); // Update module - addSql(SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_mod_reg` SET `title`='%s', `locked`='%s', `hidden`='%s', `admin_only`='%s', `mem_only`='%s' WHERE `id`=%s LIMIT 1", + addSql(SQL_QUERY_ESC("UPDATE + `{?_MYSQL_PREFIX?}_mod_reg` +SET + `title`='%s', + `locked`='%s', + `hidden`='%s', + `admin_only`='%s', + `mem_only`='%s' +WHERE + `id`=%s +LIMIT 1", array( postRequestElement('title', $id), postRequestElement('locked', $id), @@ -107,9 +117,7 @@ if (isFormSent('edit')) { runFilterChain('run_sqls'); // Remove cache file if version matches - if (isExtensionInstalledAndNewer('cache', '0.1.2')) { - if ($GLOBALS['cache_instance']->loadCacheFile('modules')) $GLOBALS['cache_instance']->removeCacheFile(); - } // END - if + rebuildCache('modules', 'modules'); // Entries updated displayMessage('{--ADMIN_MODS_CHANGED--}');