Skip to content

Commit

Permalink
v1.3.1 - bugfix webhook with pages prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
david-novafacile committed Jan 12, 2021
1 parent ffdfd42 commit 573162b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions contact3/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package Bludit
* @subpackage Plugins
* @author novafacile OÜ
* @version 1.0.1
* @version 1.3.2
* @release 2018-11-25
* @info plugin based on contact plugin by Frédéric K (http://flatboard.free.fr)
*
Expand Down Expand Up @@ -205,7 +205,10 @@ public function form() {

// Load CSS for contact form
public function siteHead() {
$webhook = $this->getValue('page');
global $site;
$pagePrefix = $site->getField('uriPage');
$pagePrefix = ltrim($pagePrefix, '/');
$webhook = $pagePrefix.$this->getValue('page');
if($this->webhook($webhook)) {
$html = '';
$css = THEME_DIR_CSS . 'contact3.css';
Expand All @@ -226,7 +229,10 @@ public function siteHead() {

// Load contact form and send email
public function pageEnd(){
$webhook = $this->getValue('page');
global $site;
$pagePrefix = $site->getField('uriPage');
$pagePrefix = ltrim($pagePrefix, '/');
$webhook = $pagePrefix.$this->getValue('page');
if($this->webhook($webhook)) {

// send email if submit
Expand Down
Binary file modified releases/contact3.zip
Binary file not shown.

0 comments on commit 573162b

Please sign in to comment.