Skip to content

Commit

Permalink
Fix 'admin/filters.php settings link leads nowhere' - #13.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Jan 8, 2025
1 parent 6d52b1f commit 2b97bb2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Version Information
===================
Version 39.1.3 - TBR
--------------------------
1. Fix 'admin/filters.php settings link leads nowhere' - #13.

Version 39.1.2 - 08/10/23
--------------------------
Expand Down
28 changes: 13 additions & 15 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@
*/
defined('MOODLE_INTERNAL') || die;

$settings = null;
$ADMIN->add('filtersettings', new admin_category('filter_synhi', get_string('filtername', 'filter_synhi')));

// Information.
$page = new admin_settingpage(
'filter_synhi_information',
get_string('information', 'filter_synhi')
);

if ($ADMIN->fulltree) {
$settings = new theme_boost_admin_settingspage_tabs('filtersettingsynhi', get_string('filtername', 'filter_synhi'));

// Information.
$page = new admin_settingpage(
'filter_synhi_information',
get_string('information', 'filter_synhi')
);
$page->add(new admin_setting_heading(
'filter_synhi_information',
'',
Expand All @@ -54,12 +52,11 @@
'Changes.md',
'filter/synhi'
));
}
$ADMIN->add('filter_synhi', $page);

// Settings.
$page = new admin_settingpage('filter_synhi_settings', get_string('settings', 'filter_synhi'));
if ($ADMIN->fulltree) {
$settings->add($page);

// Settings.
$page = new admin_settingpage('filter_synhi_settings', get_string('settings', 'filter_synhi'));
// Engine.
$name = 'filter_synhi/engine';
$title = get_string('engine', 'filter_synhi');
Expand Down Expand Up @@ -144,5 +141,6 @@
'syntaxhighlighterinformation',
'<p>' . get_string('syntaxhighlighterinformation', 'filter_synhi') . '</p>'
));

$settings->add($page);
}
$ADMIN->add('filter_synhi', $page);

0 comments on commit 2b97bb2

Please sign in to comment.