Skip to content

Commit

Permalink
Make sure the acp and mcp info files for the modules exist if needing…
Browse files Browse the repository at this point in the history
… to install or update, as they are needed to prevent issues.
  • Loading branch information
Nathan committed Jun 1, 2012
1 parent b9d84c8 commit 118ef0c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions root/antispam/asacp.php
Expand Up @@ -19,6 +19,12 @@

if (!isset($config['asacp_version']) || version_compare(ASACP_VERSION, $config['asacp_version'], '>'))
{
if (!file_exists($phpbb_root_path . 'includes/acp/info/acp_asacp.' . $phpEx) || !file_exists($phpbb_root_path . 'includes/mcp/info/mcp_asacp.' . $phpEx))
{
// The module info files do not exist, they should for proper installing/updating
trigger_error('includes/acp/info/acp_asacp.php or includes/mcp/info/mcp_asacp.php is missing');
}

include($phpbb_root_path . 'antispam/update_asacp.' . $phpEx);
}

Expand Down

0 comments on commit 118ef0c

Please sign in to comment.