Skip to content

Commit

Permalink
Merge pull request #23 from iMattPro/updates
Browse files Browse the repository at this point in the history
Just some updates
  • Loading branch information
iMattPro committed May 22, 2023
2 parents b91dd49 + 399d9d2 commit 5d0b3e0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion config/routing.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cannedmessage_selected:
phpbb_cannedmessages_selected:
path: /cannedmessageselected/{data}
defaults: { _controller: phpbb.cannedmessages.selected.controller:handle, mode: retrieve }
requirements:
Expand Down
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 event/main_listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function posting_modify_template_vars()
$this->language->add_lang('posting', 'phpbb/cannedmessages');
$this->template->assign_vars(array(
'S_CANNEDMESSAGES_LIST' => $this->manager->get_messages(),
'U_CANNEDMESSAGE_SELECTED' => $this->controller_helper->route('cannedmessage_selected', array('data' => 0)),
'U_CANNEDMESSAGE_SELECTED' => $this->controller_helper->route('phpbb_cannedmessages_selected', array('data' => 0)),
));
}
}
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 5d0b3e0

Please sign in to comment.