Just a small correction.

Did you find a bug in Joomla! 3.x but aren't sure? This forum is the place to help figure out if the problem is a bug and how to report it. If you are an experienced Joomla! user and are certain that you have found a bug please use the Bug Tracker to submit your issue.
This forum is for discussion about bugs and to get help with reporting them to the Bug Tracker: https://issues.joomla.org

Moderator: ooffick

Forum rules
Please use the official Bug Tracker to report a bug: https://issues.joomla.org
Locked
ginnk
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Wed Oct 07, 2009 4:40 pm
Location: Spain
Contact:

Just a small correction.

Post by ginnk » Thu Nov 15, 2012 3:56 pm

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 :)

Locked

Return to “Joomla! 3.x Bug Reporting”