Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit 9e0497f

Browse files
committed
correction
1 parent a4979d1 commit 9e0497f

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

hook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function plugin_mantis_uninstall() {
113113
global $DB;
114114

115115
$tables = array("glpi_plugin_mantis_configs",
116-
"glpi_plugin_mantis_profiles,glpi_plugin_mantis_mantis",
116+
"glpi_plugin_mantis_profiles","glpi_plugin_mantis_mantis",
117117
"glpi_plugin_mantis_profiles");
118118

119119
Foreach ($tables as $table) {

inc/config.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function showConfigForm() {
8585
$content .= "<td>" . __("MantisBT server IP", "mantis") . "</td>";
8686
$content .= "<td><input id='host' name='host' type='text' value='"
8787
. $this->fields["host"] . "'/></td>";
88-
$content .= "<td>ex: 128.65.25.74 or hostname</td>";
88+
$content .= "<td>ex: http(s)://128.65.25.74 or http(s)://serveurName</td>";
8989
$content .= "</tr>";
9090

9191
$content .= "<tr class='tab_bg_1'>";

inc/mantis.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ private function getFormForDisplayInfo($item) {
548548

549549
$content .= "<tr>";
550550
$content .= "<td class='center'>";
551-
$content .= "<a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Cspan+class%3D"x x-first x-last">http://".$conf->fields['host']."/".$implode[0]."/view.php?id=" . $issue->id . "' target='_blank' >";
551+
$content .= "<a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3C%2Fspan%3E".$conf->fields['host']."/".$implode[0]."/view.php?id=" . $issue->id . "' target='_blank' >";
552552
$content .= "<img src='".$CFG_GLPI['root_doc']."/plugins/mantis/pics/arrowRight16.png'/>";
553553
$content .= "</a></td>";
554554
$content .= "<td class='center'>" . $issue->id . "</td>";

inc/mantisws.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function getConnexion($host , $url , $login, $pwd){
5858
$this->_password = $pwd;
5959
$this->_login = $login;
6060

61-
$this->_client = new SoapClient("http://" . $this->_host . "/" . $this->_url);
61+
$this->_client = new SoapClient($this->_host . "/" . $this->_url);
6262
}
6363

6464

@@ -77,7 +77,7 @@ function initializeConnection() {
7777
$this->_login = $conf->fields["login"];
7878
$this->_password = $conf->fields["pwd"];
7979

80-
$this->_client = new SoapClient("http://" . $this->_host . "/" . $this->_url);
80+
$this->_client = new SoapClient($this->_host . "/" . $this->_url);
8181
return true;
8282
} else {
8383
return false;
@@ -100,7 +100,7 @@ function testConnectionWS($host, $url, $login, $password) {
100100
}
101101

102102
try {
103-
$client = new SoapClient("http://" . $host . "/" . $url);
103+
$client = new SoapClient($host . "/" . $url);
104104
$client->mc_login($login, $password);
105105
return true;
106106
} catch (SoapFault $sp) {

0 commit comments

Comments
 (0)