Skip to content

Commit

Permalink
Remove un-needed language translating
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Friedman <maf675@gmail.com>
  • Loading branch information
iMattPro committed May 14, 2023
1 parent d1f562b commit 399d9d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions controller/mcp_controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,6 @@ public function set_page_url($u_action)
$this->u_action = $u_action;
}

/**
* Get MCP page title for Canned Messages module
*
* @return string Language string for Canned Messages MCP module
*/
public function get_page_title()
{
return $this->language->lang('MCP_CANNEDMESSAGES_TITLE');
}

/**
* Process user request for manage mode
*
Expand Down
2 changes: 1 addition & 1 deletion mcp/main_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function main($id, $mode)
$this->tpl_name = 'mcp_cannedmessages_' . $mode;

// Set the page title for our MCP page
$this->page_title = $mcp_controller->get_page_title();
$this->page_title = 'MCP_CANNEDMESSAGES_TITLE';

$mcp_controller->{'mode_' . $mode}();
}
Expand Down

0 comments on commit 399d9d2

Please sign in to comment.