Links block V1, lang other than english needs update
This commit is contained in:
@@ -822,7 +822,18 @@ if( $user->data['is_registered'] && $auth->acl_get('a_board') )
|
||||
'module_mode' => 'customblock',
|
||||
'module_auth' => ''
|
||||
);
|
||||
$modules->update_module_data($customblock);
|
||||
$modules->update_module_data($customblock);
|
||||
$linkblock = array(
|
||||
'module_basename' => 'portal',
|
||||
'module_enabled' => 1,
|
||||
'module_display' => 1,
|
||||
'parent_id' => $portal['module_id'],
|
||||
'module_class' => 'acp',
|
||||
'module_langname' => 'ACP_PORTAL_LINKS_INFO',
|
||||
'module_mode' => 'links',
|
||||
'module_auth' => ''
|
||||
);
|
||||
$modules->update_module_data($linkblock);
|
||||
|
||||
// clear cache and log what we did
|
||||
$cache->purge();
|
||||
@@ -873,7 +884,18 @@ if( $user->data['is_registered'] && $auth->acl_get('a_board') )
|
||||
'module_mode' => 'customblock',
|
||||
'module_auth' => ''
|
||||
);
|
||||
$modules->update_module_data($customblock);
|
||||
$modules->update_module_data($customblock);
|
||||
$linkblock = array(
|
||||
'module_basename' => 'portal',
|
||||
'module_enabled' => 1,
|
||||
'module_display' => 1,
|
||||
'parent_id' => $portal['module_id'],
|
||||
'module_class' => 'acp',
|
||||
'module_langname' => 'ACP_PORTAL_LINKS_INFO',
|
||||
'module_mode' => 'links',
|
||||
'module_auth' => ''
|
||||
);
|
||||
$modules->update_module_data($linkblock);
|
||||
|
||||
$updated = true;
|
||||
}
|
||||
|
||||
@@ -84,6 +84,7 @@ INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_foru
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_news_show_last', '0');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_news_archive', '1');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_announcements_archive', '1');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_links_array', 'a:2:{i:1;a:2:{s:4:"text";s:9:"Board3.de";s:3:"url";s:21:"http://www.board3.de/";}i:2;a:2:{s:4:"text";s:9:"phpBB.com";s:3:"url";s:21:"http://www.phpbb.com/";}}');
|
||||
|
||||
# POSTGRES COMMIT #
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@ $sql_update['0.2.3'] = array(
|
||||
"INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_news_show_last', '0')",
|
||||
"INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_news_archive', '1')",
|
||||
"INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_announcements_archive', '1')",
|
||||
"INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_links_array', 'a:2:{i:1;a:2:{s:4:\"text\";s:9:\"Board3.de\";s:3:\"url\";s:21:\"http://www.board3.de/\";}i:2;a:2:{s:4:\"text\";s:9:\"phpBB.com\";s:3:\"url\";s:21:\"http://www.phpbb.com/\";}}')",
|
||||
);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user