Browse files

Merge branch 'w47_MDL-36743_m24_blognotice' of git://github.com/skoda…

…k/moodle
  • Loading branch information...
2 parents 2048b8e + ab996af commit a9962a85331e26725a68c1c6b56d875f4b976a5e @danpoltawski danpoltawski committed Nov 21, 2012
Showing with 15 additions and 17 deletions.
  1. +15 −17 admin/settings/appearance.php
View
32 admin/settings/appearance.php
@@ -71,23 +71,21 @@
$ADMIN->add('appearance', $temp);
// blog
- if (!empty($CFG->enableblogs)) {
- $temp = new admin_settingpage('blog', new lang_string('blog','blog'));
- $temp->add(new admin_setting_configcheckbox('useblogassociations', new lang_string('useblogassociations', 'blog'), new lang_string('configuseblogassociations','blog'), 1));
- $temp->add(new admin_setting_bloglevel('bloglevel', new lang_string('bloglevel', 'admin'), new lang_string('configbloglevel', 'admin'), 4, array(BLOG_GLOBAL_LEVEL => new lang_string('worldblogs','blog'),
- BLOG_SITE_LEVEL => new lang_string('siteblogs','blog'),
- BLOG_USER_LEVEL => new lang_string('personalblogs','blog'))));
- $temp->add(new admin_setting_configcheckbox('useexternalblogs', new lang_string('useexternalblogs', 'blog'), new lang_string('configuseexternalblogs','blog'), 1));
- $temp->add(new admin_setting_configselect('externalblogcrontime', new lang_string('externalblogcrontime', 'blog'), new lang_string('configexternalblogcrontime', 'blog'), 86400,
- array(43200 => new lang_string('numhours', '', 12),
- 86400 => new lang_string('numhours', '', 24),
- 172800 => new lang_string('numdays', '', 2),
- 604800 => new lang_string('numdays', '', 7))));
- $temp->add(new admin_setting_configtext('maxexternalblogsperuser', new lang_string('maxexternalblogsperuser','blog'), new lang_string('configmaxexternalblogsperuser', 'blog'), 1));
- $temp->add(new admin_setting_configcheckbox('blogusecomments', new lang_string('enablecomments', 'admin'), new lang_string('configenablecomments', 'admin'), 1));
- $temp->add(new admin_setting_configcheckbox('blogshowcommentscount', new lang_string('showcommentscount', 'admin'), new lang_string('configshowcommentscount', 'admin'), 1));
- $ADMIN->add('appearance', $temp);
- }
+ $temp = new admin_settingpage('blog', new lang_string('blog','blog'), 'moodle/site:config', empty($CFG->enableblogs));
+ $temp->add(new admin_setting_configcheckbox('useblogassociations', new lang_string('useblogassociations', 'blog'), new lang_string('configuseblogassociations','blog'), 1));
+ $temp->add(new admin_setting_bloglevel('bloglevel', new lang_string('bloglevel', 'admin'), new lang_string('configbloglevel', 'admin'), 4, array(BLOG_GLOBAL_LEVEL => new lang_string('worldblogs','blog'),
+ BLOG_SITE_LEVEL => new lang_string('siteblogs','blog'),
+ BLOG_USER_LEVEL => new lang_string('personalblogs','blog'))));
+ $temp->add(new admin_setting_configcheckbox('useexternalblogs', new lang_string('useexternalblogs', 'blog'), new lang_string('configuseexternalblogs','blog'), 1));
+ $temp->add(new admin_setting_configselect('externalblogcrontime', new lang_string('externalblogcrontime', 'blog'), new lang_string('configexternalblogcrontime', 'blog'), 86400,
+ array(43200 => new lang_string('numhours', '', 12),
+ 86400 => new lang_string('numhours', '', 24),
+ 172800 => new lang_string('numdays', '', 2),
+ 604800 => new lang_string('numdays', '', 7))));
+ $temp->add(new admin_setting_configtext('maxexternalblogsperuser', new lang_string('maxexternalblogsperuser','blog'), new lang_string('configmaxexternalblogsperuser', 'blog'), 1));
+ $temp->add(new admin_setting_configcheckbox('blogusecomments', new lang_string('enablecomments', 'admin'), new lang_string('configenablecomments', 'admin'), 1));
+ $temp->add(new admin_setting_configcheckbox('blogshowcommentscount', new lang_string('showcommentscount', 'admin'), new lang_string('configshowcommentscount', 'admin'), 1));
+ $ADMIN->add('appearance', $temp);
// Navigation settings
$temp = new admin_settingpage('navigation', new lang_string('navigation'));

0 comments on commit a9962a8

Please sign in to comment.