Skip to content

Commit

Permalink
fixed #1415
Browse files Browse the repository at this point in the history
+removed news from defaultinstall
  • Loading branch information
esclkm committed Nov 9, 2015
1 parent ef6c995 commit 631eb74
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/install/inc/install.install.php
Expand Up @@ -9,7 +9,7 @@

// Modules and plugins checked by default
$default_modules = array('index', 'page', 'users', 'rss');
$default_plugins = array('ckeditor', 'cleaner', 'html', 'htmlpurifier', 'ipsearch', 'mcaptcha', 'news', 'search');
$default_plugins = array('ckeditor', 'cleaner', 'html', 'htmlpurifier', 'ipsearch', 'mcaptcha', 'indexnews', 'search');

$step = empty($_SESSION['cot_inst_lang']) ? 0 : (int) $cfg['new_install'];

Expand Down
11 changes: 10 additions & 1 deletion plugins/news/news.admin.php
Expand Up @@ -39,7 +39,16 @@
$tt->parse('MAIN.ADDITIONAL');
}
}

if($jj == 0)
{
$tt->assign(array(
'ADDNUM' => 1,
'ADDCATEGORY' => '',
'ADDCOUNT' => $cfg['plugin']['news']['maxpages'],
'ADDCUT' => ''
));
$tt->parse('MAIN.ADDITIONAL');
}
$jj++;
$tt->assign(array(
'MAINCATEGORY' => cot_selectbox_structure('page', $index, 'newsmaincat'),
Expand Down

0 comments on commit 631eb74

Please sign in to comment.