<?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);
}
}
- function after_action(&$env){
+ function after_action(){
}
}