Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions mcp.disqus.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@ public function __construct()
*/
public function index()
{
$this->EE->cp->set_variable('cp_page_title',
lang('disqus_module_name'));
// $this->EE->cp->set_variable was deprecated in 2.6
if (version_compare(APP_VER, '2.6', '>=')) {
$this->EE->view->cp_page_title = lang('disqus_module_name');
} else {
$this->EE->cp->set_variable('cp_page_title', lang('disqus_module_name'));
}

/**
* This is the addons home page, add more code here!
Expand All @@ -72,7 +76,12 @@ public function index()
$this->EE->load->library('javascript');
$this->EE->load->library('table');
$this->EE->load->helper('form');
$this->EE->cp->set_variable('cp_page_title', $this->EE->lang->line('disqus_module_name'));
// $this->EE->cp->set_variable was deprecated in 2.6
if (version_compare(APP_VER, '2.6', '>=')) {
$this->EE->view->cp_page_title = $this->EE->lang->line('disqus_module_name');
} else {
$this->EE->cp->set_variable('cp_page_title', $this->EE->lang->line('disqus_module_name'));
}
$vars['action_url'] = 'C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module=disqus';
$vars['form_hidden'] = NULL;

Expand Down Expand Up @@ -165,4 +174,4 @@ private function save_settings(){

}
/* End of file mcp.disqus.php */
/* Location: /system/expressionengine/third_party/disqus/mcp.disqus.php */
/* Location: /system/expressionengine/third_party/disqus/mcp.disqus.php */