[evolvis-commits] r17542: Fixed some php warnings

papel at evolvis.org papel at evolvis.org
Thu Sep 8 14:22:35 CEST 2011


Author: papel
Date: 2011-09-08 14:22:35 +0200 (Thu, 08 Sep 2011)
New Revision: 17542

Modified:
   branches/evolvis-pa/plugins/jenkins/common/JenkinsError.class.php
   branches/evolvis-pa/plugins/jenkins/common/JenkinsInfo.class.php
   branches/evolvis-pa/plugins/jenkins/common/jenkinsAdminister.php
Log:
Fixed some php warnings

Modified: branches/evolvis-pa/plugins/jenkins/common/JenkinsError.class.php
===================================================================
--- branches/evolvis-pa/plugins/jenkins/common/JenkinsError.class.php	2011-09-08 12:12:32 UTC (rev 17541)
+++ branches/evolvis-pa/plugins/jenkins/common/JenkinsError.class.php	2011-09-08 12:22:35 UTC (rev 17542)
@@ -25,14 +25,6 @@
 global $gfcommon;
 require_once $gfcommon.'include/Error.class.php';
 
-define('ERROR__NO_ERROR', 0);
-define('ERROR__UNCLASSIFIED_ERROR', 1);
-define('ERROR__PERMISSION_DENIED_ERROR', 2);
-define('ERROR__INVALID_EMAIL_ERROR', 3);
-define('ERROR__ON_UPDATE_ERROR', 4);
-define('ERROR__GROUPID_ERROR', 5);
-define('ERROR__MISSING_PARAMS_ERROR', 6);
-
 define('ERROR__CONNECTION_REFUSED_ERROR', 111); 
 define('ERROR__FILE_NOT_FOUND_ERROR', 112); 
 define('ERROR__CANNOT_OPEN_FILE_ERROR', 113); 
@@ -46,6 +38,7 @@
 // HTTP/1.1 500 Internal Server Error
 // HTTP/1.1 503 Service Temporarly Unavailable
 
+
 define('ERROR__BAD_REQUEST_ERROR', 400);
 define('ERROR__FORBIDDEN_SERVER_ERROR', 401);
 define('ERROR__AUTHORIZATION_REQUIRED_ERROR', 403);
@@ -53,6 +46,7 @@
 define('ERROR__SERVICE_UNAVAILABLE_ERROR', 503);
 
 
+
 class JenkinsError extends Error {
 
 	/**

Modified: branches/evolvis-pa/plugins/jenkins/common/JenkinsInfo.class.php
===================================================================
--- branches/evolvis-pa/plugins/jenkins/common/JenkinsInfo.class.php	2011-09-08 12:12:32 UTC (rev 17541)
+++ branches/evolvis-pa/plugins/jenkins/common/JenkinsInfo.class.php	2011-09-08 12:22:35 UTC (rev 17542)
@@ -28,15 +28,6 @@
 require_once $gfplugins.'jenkins/common/JenkinsError.class.php';
 
 
-define('INFO__NO_INFO', 0);
-define('INFO__UNCLASSIFIED_INFO', 1);
-define('INFO__INSUFFICIENT_INFO', 2);
-define('INFO__PROJECT_NO_AVAILABLE_INFO', 3);
-define('INFO__PROJECT_DISABLED_INFO', 4);
-define('INFO__CONNECTION_REFUSED_INFO', 111);
-define('INFO__OK_INFO', 200);
-define('INFO__FOUND_INFO', 302);
-
 class JenkinsInfo extends JenkinsError {
 
 	/**

Modified: branches/evolvis-pa/plugins/jenkins/common/jenkinsAdminister.php
===================================================================
--- branches/evolvis-pa/plugins/jenkins/common/jenkinsAdminister.php	2011-09-08 12:12:32 UTC (rev 17541)
+++ branches/evolvis-pa/plugins/jenkins/common/jenkinsAdminister.php	2011-09-08 12:22:35 UTC (rev 17542)
@@ -72,7 +72,7 @@
 	echo '<td style="height:35px;">'.'<a href="' .
 	    $this->getJenkinsProtocol().'://'.$this->getJenkinsHost() .
 	   ':'.$this->getJenkinsPort().'/job/'.$group->getUnixName() .
-	   '/build?token=TOKEN" target="_self">' .
+	   '/build?token=TOKEN" target="_blank">' .
 	   _('Start new jenkins project build').'</a> (' .
 	   _('This link will start a project build immediately without notification.').')</td>';
 } else {



More information about the evolvis-commits mailing list