Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Changes in PHP code don't take effect

Changes in PHP code don't take effect 6 Monate 2 Wochen her #111657

  • aesteban
  • aestebans Avatar
  • OFFLINE
  • Senior Lime
  • Beiträge: 40
  • Dank erhalten: 9
  • Karma: 1
Hi,

I'm trying to develop new functionality for Audit plugin. I create a new subscription and function. However, nothing happens when I modify code (even if I restart server or clean ./tmp/runtime/cache). Other minor modifications take effects, for example string changes in existing subscriptions. I can't see errors in Apache log.

This is the code:

> diff -u AuditLog.php.orig AuditLog.php
--- AuditLog.php.orig 2014-08-12 12:03:24.511645932 +0200
+++ AuditLog.php 2014-08-13 17:16:39.411078340 +0200
@@ -17,6 +17,17 @@
$this->subscribe('beforePermissionSetSave');
$this->subscribe('beforeParticipantSave');
$this->subscribe('beforeParticipantDelete');
+ $this->subscribe('beforeLogout');
+ }
+
+ public function beforeLogout()
+ {
+ $event = $this->getEvent();
+ $oCurrentUser=$this->api->getCurrentUser();
+ $oAutoLog = $this->api->newModel($this, 'log');
+ $oAutoLog->uid=$oCurrentUser->uid;
+ $oAutoLog->action='logout';
+ $oAutoLog->save();
}

/**

Any help is welcome.

Thanks in advance,

Alfredo
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.120 Sekunden
Donation Image