MDL-27171 messages: admin settings reordering
This includes: * most email settings go from general admin setings to email plugin settings * digestmailtime goes to mod/forum/settings.php * supportname, supportemail and supportpage go to Support contact page * all jabber settings go from general admin setings to jabber plugin settings AMOS BEGIN MOV [jabberhost,admin],[jabberhost,message_jabber] MOV [configjabberhost,admin],[configjabberhost,message_jabber] MOV [jabberserver,admin],[jabberserver,message_jabber] MOV [configjabberserver,admin],[configjabberserver,message_jabber] MOV [jabberusername,admin],[jabberusername,message_jabber] MOV [configjabberusername,admin],[configjabberusername,message_jabber] MOV [jabberpassword,admin],[jabberpassword,message_jabber] MOV [configjabberpassword,admin],[configjabberpassword,message_jabber] MOV [jabberport,admin],[jabberport,message_jabber] MOV [configjabberport,admin],[configjabberport,message_jabber] MOV [digestmailtime,admin],[digestmailtime,forum] MOV [configdigestmailtime,admin],[configdigestmailtime,forum] MOV [allowusermailcharset,admin],[allowusermailcharset,message_email] MOV [configallowusermailcharset,admin],[configallowusermailcharset,message_email] MOV [mailnewline,admin],[mailnewline,message_email] MOV [configmailnewline,admin],[configmailnewline,message_email] MOV [noreplyaddress,admin],[noreplyaddress,message_email] MOV [confignoreplyaddress,admin],[confignoreplyaddress,message_email] MOV [sitemailcharset,admin],[sitemailcharset,message_email] MOV [configsitemailcharset,admin],[configsitemailcharset,message_email] MOV [smtphosts,admin],[smtphosts,message_email] MOV [configsmtphosts,admin],[configsmtphosts,message_email] MOV [smtpmaxbulk,admin],[smtpmaxbulk,message_email] MOV [configsmtpmaxbulk,admin],[configsmtpmaxbulk,message_email] MOV [smtpuser,admin],[smtpuser,message_email] MOV [configsmtpuser,admin],[configsmtpuser,message_email] MOV [smtppass,admin],[smtppass,message_email] AMOS END Signed-off-by: Ruslan Kabalin <[email protected]>
This commit is contained in:
+8
-7
@@ -4924,7 +4924,7 @@ class admin_page_managemessageoutputs extends admin_externalpage {
|
||||
}
|
||||
|
||||
/**
|
||||
* Search for a specific block
|
||||
* Search for a specific message processor
|
||||
*
|
||||
* @param string $query The string to search for
|
||||
* @return array
|
||||
@@ -4936,18 +4936,19 @@ class admin_page_managemessageoutputs extends admin_externalpage {
|
||||
}
|
||||
|
||||
$found = false;
|
||||
if ($blocks = $DB->get_records('block')) {
|
||||
require_once($CFG->dirroot.'/message/lib.php');
|
||||
if ($processors = get_message_processors()) {
|
||||
$textlib = textlib_get_instance();
|
||||
foreach ($blocks as $block) {
|
||||
if (!file_exists("$CFG->dirroot/blocks/$block->name/")) {
|
||||
foreach ($processors as $processor) {
|
||||
if (!$processor->available) {
|
||||
continue;
|
||||
}
|
||||
if (strpos($block->name, $query) !== false) {
|
||||
if (strpos($processor->name, $query) !== false) {
|
||||
$found = true;
|
||||
break;
|
||||
}
|
||||
$strblockname = get_string('pluginname', 'block_'.$block->name);
|
||||
if (strpos($textlib->strtolower($strblockname), $query) !== false) {
|
||||
$strprocessorname = get_string('pluginname', 'message_'.$processor->name);
|
||||
if (strpos($textlib->strtolower($strprocessorname), $query) !== false) {
|
||||
$found = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user