Skip to content

Commit

Permalink
fix config panel stripped away in Pico when an update message is shown,
Browse files Browse the repository at this point in the history
  • Loading branch information
nliautaud committed Nov 14, 2017
1 parent 1c1cc52 commit a20042d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p01-contact/PicoContact.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function onContentPrepared(&$content)
{
// replace config panel (% contact_admin_config %)
$content = preg_replace_callback('`\(%\s*contact_admin_config\s*%\)`', function () {
return $this->P01contact->panel();
return '<div>' . $this->P01contact->panel(). '</div>';
}, $content, 1);

// replace debug report (% contact_admin_debug %)
Expand Down

0 comments on commit a20042d

Please sign in to comment.