Skip to content

set_variable depreciated in 2.6.0 causes error in function manage_notifications #5

@Gnative

Description

@Gnative

Fixed by adding ee_version check to construct

    //normal
    if (defined('APP_VER'))
    {
        $this->ee_version = APP_VER;
    }
    //install wizard
    else if (isset(ee()->version))
    {
        $this->ee_version = ee()->version;
    }

And in manage_notifications function

    //set_variable depracated in 2.6.0
    if (version_compare($this->ee_version, '2.6.0', '>='))
    {
        $this->EE->view->cp_page_title = 'Manage Notifications';
    }
    else
    {
        $this->EE->cp->set_variable('cp_page_title', 'Manage Notifications');
    }

Metadata

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