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

Doesn't work onContentPrepare in case of separately use of introtext and fulltext #1

Open
migusbox opened this issue Dec 19, 2012 · 0 comments

Comments

@migusbox
Copy link

In case you want to use separately introtext and fulltext of article - change onContentPrepare function in rustypo.php to this:

    public function onContentPrepare( $context, &$article, &$params, $page = 0 )
    {
        if( isset($article->text) )
            $article->text = $this->proof( $article->text, $this->params );
        if( isset($article->introtext) )
            $article->introtext = $this->proof( $article->introtext, $this->params );
        if( isset($article->fulltext) )
            $article->fulltext = $this->proof( $article->fulltext, $this->params );
    }

Tested with standart content items under Joomla!® v.2.5.8 and rustypo v.1.6

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

1 participant