I'm having a little trouble updating a new client's pre-existing website from EE2.6 to 2.11.6. A now defunct add-on needs a few updates to work correctly with post 2.6 code formatting.
After some Googling I have replaced lines such as this one...
with a 2.11.6 compatible equivalent, i.e.
$this->EE->view->cp_page_title = lang('rsvp_email_attendees');
However, as a non add-on developer this particular part of the code has thrown me. Can you provide a suggestion as how I should format the following lines please.
$this->EE->cp->set_variable('cp_page_title', $data['event']['title']); return $this->EE->load->view('event_details', $data, TRUE);
The "$data" part in the first line has thrown me, so I don't know how to format this correctly, and presumably it's being called in the second line.
Help greatly appreciated!