Commit 7640dd64 authored by Chris Graham's avatar Chris Graham

Fixed MANTIS-4178 (Some Commandr documentation incorrectly defined)

parent 94d6e531
......@@ -241,3 +241,6 @@ CONFIG_OPTION_chat_max_messages_to_show=The number of back-logged chat messages
ENTER_ALLOW=Enter the allow list
ENTER_CHATROOM=Enter the chatroom name
ENTER_RECIPIENT=Enter the recipient
CMD_SEND_CHATMESSAGE_HELP=Send a message to a chatroom
CMD_SEND_CHATMESSAGE_HELP_PARAM_0=Chatroom ID
CMD_SEND_CHATMESSAGE_HELP_PARAM_1=Messages to send
......@@ -208,3 +208,9 @@ CMD_SQL_DUMP_HELP_PARAM_2=Database table to export. Includes as many tables in a
SQL_DUMP_SAVED_TO=The SQL dump has been saved to <kbd>{1}</kbd>. Download it then delete the file when you're done.
LISTING_FILES=Files
LISTING_DIRECTORIES=Directories
CMD_FIND_COMMANDR_FS_FILENAME_VIA_ID_HELP=Find the Commandr-FS filename from an ID
CMD_FIND_COMMANDR_FS_FILENAME_VIA_ID_HELP_PARAM_0=Commandr-FS hook name
CMD_FIND_COMMANDR_FS_FILENAME_VIA_ID_HELP_PARAM_1=ID
CMD_FIND_ID_VIA_COMMANDR_FS_FILENAME_HELP=Find the Commandr-FS ID from a filename
CMD_FIND_ID_VIA_COMMANDR_FS_FILENAME_HELP_PARAM_0=Commandr-FS hook name
CMD_FIND_ID_VIA_COMMANDR_FS_FILENAME_HELP_PARAM_1=Filename
......@@ -34,7 +34,7 @@ class Hook_commandr_command_antispam_check
public function run($options, $parameters, &$commandr_fs)
{
if ((array_key_exists('h', $options)) || (array_key_exists('help', $options))) {
return array('', do_command_help('antispam_check', array('h'), array(true, true)), '', '');
return array('', do_command_help('antispam_check', array('h'), array(true)), '', '');
} else {
if (!array_key_exists(0, $parameters)) {
return array('', '', '', do_lang('MISSING_PARAM', '1', 'antispam_check'));
......
......@@ -34,7 +34,7 @@ class Hook_commandr_command_ban_member
public function run($options, $parameters, &$commandr_fs)
{
if ((array_key_exists('h', $options)) || (array_key_exists('help', $options))) {
return array('', do_command_help('ban_member', array('h', 'u'), array(true, true)), '', '');
return array('', do_command_help('ban_member', array('h', 'u'), array(true)), '', '');
} else {
if (get_forum_type() != 'cns') {
return array('', '', '', do_lang('NO_CNS'));
......
......@@ -34,7 +34,7 @@ class Hook_commandr_command_db_table_sizes
public function run($options, $parameters, &$commandr_fs)
{
if ((array_key_exists('h', $options)) || (array_key_exists('help', $options))) {
return array('', do_command_help('db_table_sizes', array('h'), array(true, true)), '', '');
return array('', do_command_help('db_table_sizes', array('h'), array(true)), '', '');
} else {
require_code('files');
......
......@@ -34,7 +34,7 @@ class Hook_commandr_command_directory_sizes
public function run($options, $parameters, &$commandr_fs)
{
if ((array_key_exists('h', $options)) || (array_key_exists('help', $options))) {
return array('', do_command_help('directory_sizes', array('h'), array(true, true)), '', '');
return array('', do_command_help('directory_sizes', array('h'), array()), '', '');
} else {
$sizes = array();
require_code('files2');
......
......@@ -34,7 +34,7 @@ class Hook_commandr_command_find_id_via_guid
public function run($options, $parameters, &$commandr_fs)
{
if ((array_key_exists('h', $options)) || (array_key_exists('help', $options))) {
return array('', do_command_help('find_id_via_guid', array('h'), array(true, true)), '', '');
return array('', do_command_help('find_id_via_guid', array('h'), array(true)), '', '');
} else {
if (!array_key_exists(0, $parameters)) {
return array('', '', '', do_lang('MISSING_PARAM', '1', 'find_id_via_guid'));
......
......@@ -33,6 +33,8 @@ class Hook_commandr_command_send_chatmessage
*/
public function run($options, $parameters, &$commandr_fs)
{
require_lang('chat');
if ((array_key_exists('h', $options)) || (array_key_exists('help', $options))) {
return array('', do_command_help('send_chatmessage', array('h'), array(true, true)), '', '');
} else {
......
......@@ -34,7 +34,7 @@ class Hook_commandr_command_untar
public function run($options, $parameters, &$commandr_fs)
{
if ((array_key_exists('h', $options)) || (array_key_exists('help', $options))) {
return array('', do_command_help('untar', array('h'), array(true, true)), '', '');
return array('', do_command_help('untar', array('h'), array(true)), '', '');
} else {
if (!array_key_exists(0, $parameters)) {
return array('', '', '', do_lang('MISSING_PARAM', '1', 'untar'));
......
......@@ -1726,6 +1726,15 @@ function string_scan($lang, $do_guessing = false, $only_exists = true)
CLOSING_BALANCE
CLUB_FORUM_PARENT_FORUM
CLUB_FORUM_PARENT_FORUM_GROUPING
CMD_SEND_CHATMESSAGE_HELP
CMD_SEND_CHATMESSAGE_HELP_PARAM_0
CMD_SEND_CHATMESSAGE_HELP_PARAM_1
CMD_FIND_COMMANDR_FS_FILENAME_VIA_ID_HELP
CMD_FIND_COMMANDR_FS_FILENAME_VIA_ID_HELP_PARAM_0
CMD_FIND_COMMANDR_FS_FILENAME_VIA_ID_HELP_PARAM_1
CMD_FIND_ID_VIA_COMMANDR_FS_FILENAME_HELP
CMD_FIND_ID_VIA_COMMANDR_FS_FILENAME_HELP_PARAM_0
CMD_FIND_ID_VIA_COMMANDR_FS_FILENAME_HELP_PARAM_1
CMD_ALIEN_CHECK_HELP
CMD_ANTISPAM_CHECK_HELP
CMD_ANTISPAM_CHECK_HELP_PARAM_0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment