mise a jour pour mtweb.0.9.0
[mw_actions_logs] / app / observers / mw_observer_actions_logs.php
index be84c64..2759921 100644 (file)
@@ -1,16 +1,18 @@
 <?php
 
-  class mw_observer_actions_logs{
+  class mw_observer_actions_logs extends mw_observer{
 
     var $config;
 
-    function init_actions_logs(&$env){
+    function init_actions_logs(){
+      $env = $this->env();
       $data = $env->data();
       if(($this->config = $data->get_actions_logs_config()) === false) return false;
       return true;
     }
 
-    function before_action(&$env){
+    function before_action(){
+      $env = $this->env();
       $data = $env->data();
       $user = $env->user();
       if(!isset($this->config)) $this->init_actions_logs($env);
@@ -47,7 +49,7 @@
       }
     }
 
-    function after_action(&$env){
+    function after_action(){
     }
 
   }