Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pb in view.html.php (suggestion of a correction) #11

Closed
ghazal opened this issue Sep 8, 2011 · 1 comment
Closed

Pb in view.html.php (suggestion of a correction) #11

ghazal opened this issue Sep 8, 2011 · 1 comment

Comments

@ghazal
Copy link

ghazal commented Sep 8, 2011

Hi,
In my generated comp, on +-line 46 in :
components/com_mycomps/views/mycomp/view.html.php

I got these lines inverted :

    // Process content plugins
    JPluginHelper::importPlugin('content');
    $results = $dispatcher->trigger('onContentPrepare', array ('com_trucs.truc', &$item, &$item->parameters, 0));

    $item->event = new stdClass();
    $dispatcher = JDispatcher::getInstance();

Correction :
$item->event = new stdClass();
$dispatcher = JDispatcher::getInstance();

    // Process content plugins
    JPluginHelper::importPlugin('content');
    $results = $dispatcher->trigger('onContentPrepare', array ('com_trucs.truc', &$item, &$item->parameters, 0));

Seems to work.

@mbabker mbabker closed this as completed in 99e56a7 Sep 8, 2011
@mbabker
Copy link
Contributor

mbabker commented Sep 8, 2011

Good catch, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants