Long ago I wrote a plugin that used the following interface for the onBeforeUserUpdate trigger:
Code:
function beforeUserUpdate(&$user, &$cbUser)
Based on my decade-old code, I handled these two inputs as
user being what was already stored in the database and
cbUser being what was about to be stored. Debugging that plugin now, it appears these two objects may be identical when a profile change is impending. At least the fields my plugin is checking are identical. So I looked at the current (might be dated by now) trigger interface for this event on your "Using CB Triggers" page and now it looks like this:
Code:
$_PLUGINS->trigger( 'onBeforeUserUpdate', array( &$this, &$this, &$oldUserComplete, &$oldUserComplete ) );
Those last two arguments have the exact same name. Could someone please set straight what is going on here?
I am using CB 2.7.4+build.2022.10.21.15.41.28.56bdcdeab on Joomla 4.2.4.
Thanks in advance,
Bruce