mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-25 04:23:38 +01:00
erm, we need to check if the feed module is already there
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9584 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
d843dbd046
commit
8d4ddc3b23
@ -1069,6 +1069,21 @@ function change_database_data(&$no_updates, $version)
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
if ($category_id)
|
||||
{
|
||||
// Check if we actually need to add the feed module or if it is already added. ;)
|
||||
$sql = 'SELECT *
|
||||
FROM ' . MODULES_TABLE . "
|
||||
WHERE module_basename = 'board'
|
||||
AND module_class = 'acp'
|
||||
AND module_langname = 'ACP_FEED_SETTINGS'
|
||||
AND module_mode = 'feed'
|
||||
AND module_auth = 'acl_a_board'
|
||||
AND parent_id = {$category_id}";
|
||||
$result = $db->sql_query($sql);
|
||||
$row = $db->sql_fetchrow($result);
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
if (!$row)
|
||||
{
|
||||
$module_data = array(
|
||||
'module_basename' => 'board',
|
||||
@ -1083,6 +1098,7 @@ function change_database_data(&$no_updates, $version)
|
||||
|
||||
$_module->update_module_data($module_data, true);
|
||||
}
|
||||
}
|
||||
|
||||
$_module->remove_cache_file();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user