Add 'view_profile' and 'search' actions in logger.
[platal.git] / modules / profile.php
index fc6bd7d..d8780f2 100644 (file)
@@ -208,6 +208,9 @@ class ProfileModule extends PLModule
             }
             return PL_NOT_FOUND;
         }
+        if (S::logged()) {
+            $_SESSION['log']->log('view_profile', $login);
+        }
 
         $new   = Env::v('modif') == 'new';
         $user  = get_user_details($login, S::v('uid'), $view);