Skip to content
Permalink
Browse files

form debug

  • Loading branch information...
gresakg committed May 15, 2014
1 parent ed466f2 commit 014230d8a56c287ceb4649b77833ae4c07c7f1c1
Showing with 5 additions and 5 deletions.
  1. +1 −1 PHaiku/Haiku.php
  2. +1 −1 PHaiku/PHaiku.php
  3. +2 −2 config-sample/config.php
  4. +1 −1 templates/skela/contactok.php
@@ -173,7 +173,7 @@ protected function processForm() {
fwrite($h,$line);
fclose($h);
mail($to,$subject,wordwrap($message, 70, "\r\n"),$headers);
$this->app->redirect($this->setUrl("contact", array("token"=>"ok")));
$this->app->redirect($this->setUrl("contactok"));
}
}
@@ -197,7 +197,7 @@ public function textWidget($name) {
* @param array $args arguments to be passed to the route, language excluded
* @return string href link
*/
public function setUrl($routename, array $args) {
public function setUrl($routename, array $args=array()) {
if($this->app->config("multilingual")) {
$args = array_merge(["lang"=>$this->lang],$args);
}
@@ -76,13 +76,13 @@
],
[
"name" => "contact",
"route" => "/contact",
"route" => "/contact/",
"method" => "get",
"handler" => "contactForm",
],
[
"name" => "contactok",
"route" => "/contact/ok",
"route" => "/contact/ok/",
"method" => "get",
"handler" => "contactOk",
],
@@ -1,6 +1,6 @@
<div>
<h2><?php echo $form->ok_title; ?></h2>
<p><?php echo $form->ok_body; ?></p>
<p><a href="/<?php echo $site->language?>"><?php echo $form->ok_continue; ?></a></p>
<p><a href="<?php echo $site->baseurl."/".$site->language?>"><?php echo $form->ok_continue; ?></a></p>
</div>

0 comments on commit 014230d

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