public attr / function, constructeurs __construct
[mtweb] / mw / app / controllers / forms / contact.php
index 2b234cb..ddac68d 100644 (file)
@@ -2,7 +2,7 @@
 
   class mw_forms_contact extends mw_controller{
 
-    function index(){
+    public function index(){
       $env = $this->env();
       if($env->config("contact_form") && $env->config("email")){
         if($env->config("captcha")){
@@ -42,7 +42,7 @@
       else $env->run("index");
     }
 
-    function __send_form($from, $titre, $message, $dest, $captcha){
+    public function __send_form($from, $titre, $message, $dest, $captcha){
       $env = $this->env();
       $env->set_out("ENVOYE", false);
       if(!$captcha || PtitCaptchaHelper::checkCaptcha()){
@@ -74,5 +74,3 @@
     }
 
   }
-
-?>
\ No newline at end of file