Page 1 of 1

Just a small correction.

Posted: Thu Nov 15, 2012 3:56 pm
by ginnk
I think i found an error, let me expose it: only to say that the example plugin :

class plgContentJoomla extends JPlugin
{
/**
* Example after save content method
* Article is passed by reference, but after the save, so no changes will be saved.
* Method is called right after the content is saved
*
* @param string The context of the content passed to the plugin (added in 1.6)
* @param object A JTableContent object
* @param bool If the content is just about to be created
* @since 1.6
*/
public function onContentAfterSave($context, &$article, $isNew)
{

Has still the &$article parameter by reference. In Joomla 3 its a value parameter i think :)