Skip to content
Permalink
Browse files

Sections panel: Define variables for `compact` at 'save' step .

Refs #textpattern-1412.
  • Loading branch information...
rwetzlmayr committed Jul 9, 2019
1 parent 570cd97 commit c10f0fcf9225c98e3bda5799b49de3e1127c9d12
Showing with 3 additions and 1 deletion.
  1. +3 −1 textpattern/include/txp_section.php
@@ -654,6 +654,8 @@ function section_save()
$ok = false;
if ($name == 'default') {
$on_frontpage = $in_rss = $searchable = 0;
$ok = safe_update('txp_section', "skin = '$safe_skin', page = '$safe_section_page', css = '$safe_css', description = '$safe_description'", "name = 'default'");
} elseif ($name) {
extract(array_map('assert_int', psa(array('on_frontpage', 'in_rss', 'searchable'))));
@@ -690,7 +692,7 @@ function section_save()
}
if ($ok) {
update_lastmod('section_saved', compact('name', 'title', 'page', 'css', 'description', 'on_frontpage', 'in_rss', 'searchable'));
update_lastmod('section_saved', compact('name', 'title', 'section_page', 'css', 'description', 'on_frontpage', 'in_rss', 'searchable'));
Txp::get('Textpattern\Skin\Skin')->setEditing($safe_skin);
}

0 comments on commit c10f0fc

Please sign in to comment.
You can’t perform that action at this time.