Skip to content

Instantly share code, notes, and snippets.

@mikestecker
Last active August 29, 2015 14:05
Show Gist options
  • Save mikestecker/792bce5f9ec4d925e7dd to your computer and use it in GitHub Desktop.
Save mikestecker/792bce5f9ec4d925e7dd to your computer and use it in GitHub Desktop.
Fix for 'Call to undefined method Cp::set_variable()' in Channel Search
In 'channel_search/mcp.channel_search.php' replace line 102 which is:
$this->EE->cp->set_variable('cp_page_title', lang('channel_search_module_name'));
With this:
if ( version_compare( APP_VER, '2.6.0', '<' ) ) {
ee()->cp->set_variable('cp_page_title', lang('channel_search_module_name'));
} else {
ee()->view->cp_page_title = lang('channel_search_module_name');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment