settings: forgot to commit new args

This commit is contained in:
ruru4143 2024-07-18 17:46:29 +02:00
parent d1088756c8
commit fba9948b9d

View file

@ -108,14 +108,17 @@ class Settings_Page {
$submenu_options[$tab]['active'] = true;
$args = array(
'slug' => settings_slug,
'options' => $submenu_options,
);
switch ( $tab ) {
case 'general':
\load_template( ACTIVITYPUB_EVENT_EXTENSIONS_PLUGIN_DIR . 'templates/settings-general.php' , true, $submenu_options );
\load_template( ACTIVITYPUB_EVENT_EXTENSIONS_PLUGIN_DIR . 'templates/settings-general.php' , true, $args );
break;
default:
\load_template( ACTIVITYPUB_EVENT_EXTENSIONS_PLUGIN_DIR . 'templates/settings-extractor.php', true, $submenu_options );
\load_template( ACTIVITYPUB_EVENT_EXTENSIONS_PLUGIN_DIR . 'templates/settings-extractor.php', true, $args );
break;
}