[Fusionforge-commits] r12396 - in trunk/src/plugins/mantisbt/www: . admin

Franck VILLAUME nerville at fusionforge.org
Sun Feb 27 13:07:53 CET 2011


Author: nerville
Date: 2011-02-27 13:07:53 +0100 (Sun, 27 Feb 2011)
New Revision: 12396

Modified:
   trunk/src/plugins/mantisbt/www/admin/index.php
   trunk/src/plugins/mantisbt/www/index.php
Log:
get the conf

Modified: trunk/src/plugins/mantisbt/www/admin/index.php
===================================================================
--- trunk/src/plugins/mantisbt/www/admin/index.php	2011-02-27 12:02:01 UTC (rev 12395)
+++ trunk/src/plugins/mantisbt/www/admin/index.php	2011-02-27 12:07:53 UTC (rev 12396)
@@ -23,6 +23,8 @@
 
 global $mantisbt;
 global $mantisbtConf;
+global $username;
+global $password;
 
 $view = getStringFromRequest('view');
 
@@ -38,7 +40,7 @@
 		/* affichage principal */
 		if (!isset($clientSOAP)) {
 			try {
-				$clientSOAP = new SoapClient(forge_get_config('server_url','mantisbt')."/api/soap/mantisconnect.php?wsdl", array('trace'=>true, 'exceptions'=>true));
+				$clientSOAP = new SoapClient($mantisbtConf['url']."/api/soap/mantisconnect.php?wsdl", array('trace'=>true, 'exceptions'=>true));
 			} catch (SoapFault $soapFault) {
 				echo '<div class="warning" >'. _('Technical error occurs during data retrieving:'). ' ' .$soapFault->faultstring.'</div>';
 				$errorPage = true;

Modified: trunk/src/plugins/mantisbt/www/index.php
===================================================================
--- trunk/src/plugins/mantisbt/www/index.php	2011-02-27 12:02:01 UTC (rev 12395)
+++ trunk/src/plugins/mantisbt/www/index.php	2011-02-27 12:07:53 UTC (rev 12396)
@@ -203,6 +203,7 @@
 					break;
 				}
 				default: {
+					$mantisbtConf = $mantisbt->getMantisBTConf();
 					$mantisbt->getAdminView();
 					break;
 				}




More information about the Fusionforge-commits mailing list