Pārlūkot izejas kodu

fix: details in email form routine

master
Dom SP pirms 3 gadiem
vecāks
revīzija
ce3ae41793
2 mainītis faili ar 4 papildinājumiem un 3 dzēšanām
  1. +3
    -2
      app/controller/email.php
  2. +1
    -1
      app/modules/filesinfolders.php

+ 3
- 2
app/controller/email.php Parādīt failu

@@ -61,7 +61,8 @@ class Email {

$c = $this->data['private']['emailconfig'];
$template = substr($this->path . $this->data['private']['template'],10);
$template = substr($this->path,strlen($f3->get('CONTENT_BASE'))+2) . $this->data['private']['template'];
$f3->set('fields', $this->data['fields']);

@@ -95,7 +96,7 @@ class Email {
}

if ($success) {
$f3->reroute("/email/success?email=".urlsafe_b64encode($email));
$f3->reroute("/email/success?email=".urlsafe_b64encode($email)."&lang="$f3->get('LANG'));
} else {
#$f3->reroute("/email/error");
echo \Template::instance()->render($template,'text/html');

+ 1
- 1
app/modules/filesinfolders.php Parādīt failu

@@ -469,7 +469,7 @@ class FilesInFolders {
if ($v['type'] == 'custom') {
$fields[$k]['template'] = sprintf(
"%s%s",
substr($this->folder,strlen($f3->get('CONTENT_BASE'))), //assumens content folder is content
substr($this->folder,strlen($f3->get('CONTENT_BASE'))),
$v['template']
);
}

Notiek ielāde…
Atcelt
Saglabāt