Maximum minimization of internal transfer

This commit is contained in:
Valentin Popov 2017-10-26 18:22:41 +04:00
parent c25f4bada6
commit f87b2c82c9
5 changed files with 3 additions and 30 deletions

View File

@ -83,7 +83,7 @@ $PAGE->set_title($titlepage);
/* The page title */ /* The page title */
$PAGE->navbar->add(new lang_string("pluginname", "local_webhooks"), new moodle_url("/admin/settings.php", array("section" => "local_webhooks"))); $PAGE->navbar->add(new lang_string("pluginname", "local_webhooks"), new moodle_url("/admin/settings.php", array("section" => "local_webhooks")));
$PAGE->navbar->add(new lang_string("managerservice", "local_webhooks"), $managerservice); $PAGE->navbar->add(new lang_string("externalservices", "webservice"), $managerservice);
$PAGE->navbar->add($titlepage); $PAGE->navbar->add($titlepage);
echo $OUTPUT->header(); echo $OUTPUT->header();

View File

@ -22,5 +22,4 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
$string["managerservice"] = "Service management manager";
$string["pluginname"] = "WebHooks"; $string["pluginname"] = "WebHooks";

View File

@ -1,26 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Strings for component "local_webhooks", language "ru".
*
* @package local_webhooks
* @copyright 2017 "Valentin Popov" <info@valentineus.link>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string["managerservice"] = "Менеджер управления службами";
$string["pluginname"] = "WebHooks";

View File

@ -64,7 +64,7 @@ if (boolval($hideshowid) && confirm_sesskey()) {
} }
/* Page template */ /* Page template */
$titlepage = new lang_string("managerservice", "local_webhooks"); $titlepage = new lang_string("externalservices", "webservice");
$PAGE->set_pagelayout("admin"); $PAGE->set_pagelayout("admin");
$PAGE->set_title($titlepage); $PAGE->set_title($titlepage);
$PAGE->set_heading($titlepage); $PAGE->set_heading($titlepage);

View File

@ -33,7 +33,7 @@ if ($hassiteconfig) {
$settings->add(new admin_setting_configcheckbox("local_webhooks/enable", new lang_string("enable", "moodle"), new lang_string("enablews", "webservice"), false)); $settings->add(new admin_setting_configcheckbox("local_webhooks/enable", new lang_string("enable", "moodle"), new lang_string("enablews", "webservice"), false));
/* Link to the service manager */ /* Link to the service manager */
$linktext = new lang_string("managerservice", "local_webhooks"); $linktext = new lang_string("externalservices", "webservice");
$linkurl = new moodle_url("/local/webhooks/managerservice.php"); $linkurl = new moodle_url("/local/webhooks/managerservice.php");
$settings->add(new admin_setting_heading("local_webhooks_managerservice", null, html_writer::link($linkurl, $linktext))); $settings->add(new admin_setting_heading("local_webhooks_managerservice", null, html_writer::link($linkurl, $linktext)));
} }