Skip to content

$this->EE->javascript->generate_json() doesn't exist anymore #6

Open
@LouWii

Description

Hi,

I ran into an issue with your module because the $this->EE->javascript->generate_json() function doesn't exist anymore. (mod.cx_disqus.php)

I saw an other module that use this method to determine if you need to use it or not :

private function _get_json($data)
{
    if (version_compare(APP_VER, '2.6', '<') OR !function_exists('json_encode'))
    {
        return $this->EE->javascript->generate_json($data, TRUE);
    }
    else
    {
        return json_encode($data);
    }
}

I can make a pull request if you want ;)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions