Bug 434542 - Update Icon on Download page

Signed-off-by: Christopher Guindon <chris.guindon@eclipse.org>
diff --git a/downloads/controller.compare.php b/downloads/controller.compare.php
index fbbf76e..58684be 100644
--- a/downloads/controller.compare.php
+++ b/downloads/controller.compare.php
@@ -194,7 +194,7 @@
 				$f->features =  $f->features . 'org.eclipse.rcp.source,;org.eclipse.cvs.source,;org.eclipse.jdt.source,;org.eclipse.pde.source,;org.eclipse.xtend.sdk.source,;org.eclipse.xtext.sdk.source';
 			}
 			$count = 1;
-			$f['icon'] = str_replace('http:' , '' , $f['icon'], $count);
+			$f['icon'] = str_replace('http://www.eclipse.org' , '' , $f['icon'], $count);
 			$f['id'] = $f['package_bugzilla_id'];
 			$f['url'] = str_replace('http:' , '' , $f['url'], $count);
 			$f['downloadurl'] = str_replace('http:' , '' , $f['downloadurl'], $count);
@@ -258,7 +258,7 @@
 			return '&nbsp;';
 		}
 
-		$image_prefix = $this->protocol . '://www.eclipse.org/downloads/images/';
+		$image_prefix = '/downloads/images/';
 		return '<img width="16" src="' . $image_prefix . $this->images[$id][1] . '" alt="' . $this->images[$id][0] . '"><span class="check-description">'. $this->images[$id][0] . '</span>';
 	}
 
diff --git a/downloads/controller.downloads.php b/downloads/controller.downloads.php
index fb20ec7..82626de 100644
--- a/downloads/controller.downloads.php
+++ b/downloads/controller.downloads.php
@@ -151,7 +151,7 @@
 	private function getAds() {
 		$this->ads['actuate'] = array(
 			'campaign' => 'PROMO_DOWNLOAD_ACTUATE',
-			'image' => '//www.eclipse.org/home/images/BIRT-Icon-32x32.gif',
+			'image' => '/home/images/BIRT-Icon-32x32.gif',
 			'title' => 'Actuate BIRT iHub Evaluation Package',
 			'description' => 'Schedule, distribute &amp; secure BIRT output - plus dashboards, analytics and more.',
 		);
@@ -165,35 +165,35 @@
 
 		$this->ads['springsource'] = array(
 			'campaign' => 'PROMO_DOWNLOAD_SPRINGSOURCE',
-			'image' => '//www.eclipse.org/downloads/images/springsource32x32.png',
+			'image' => '/downloads/images/springsource32x32.png',
 			'title' => 'Spring Tool Suite',
 			'description' => 'Complete IDE for enterprise Java, Spring, Groovy, Grails and the Cloud.',
 		);
 
 		$this->ads['eucalyptus'] = array(
 			'campaign' => 'PROMO_DOWNLOAD_EUCALYPTUS',
-			'image' => '//www.eclipse.org/downloads/images/eucalyptus32x32.gif',
+			'image' => '/downloads/images/eucalyptus32x32.gif',
 			'title' => 'Eucalyptus 3.3 for Dev/Test in the Cloud',
 			'description' => 'Cost-effective dev and test on your own AWS-compatible private cloud.  Scalable production workloads on AWS.',
 		);
 
 		$this->ads['eucalyptus_2'] = array(
 			'campaign' => 'PROMO_DOWNLOAD_EUCALYPTUS_2',
-			'image' => '//www.eclipse.org/downloads/images/eucalyptus32x32.gif',
+			'image' => '/downloads/images/eucalyptus32x32.gif',
 			'title' => 'Eucalyptus 3.3 with Auto Scaling, Elastic Load Balancing, and Cloud Watch',
 			'description' => 'Cost-effective dev and test on your own AWS-compatible private cloud.  Scalable production workloads on AWS.',
 		);
 
 		$this->ads['xored'] = array(
 			'campaign' => 'PROMO_DOWNLOAD_XORED',
-			'image' => '//www.eclipse.org/downloads/images/xored-q7-32x32.png',
+			'image' => '/downloads/images/xored-q7-32x32.png',
 			'title' => 'Xored Q7 UI Testing Tools for RCP',
 			'description' => 'GUI test automation in the same order of magnitude as manual testing.',
 		);
 
     $this->ads['jrebel'] = array(
 		  'campaign' => 'PROMO_DOWNLOAD_JREBEL',
-		  'image' => '//www.eclipse.org/downloads/images/JRebel-42x42-dark.png',
+		  'image' => '/downloads/images/JRebel-42x42-dark.png',
 		  'title' => 'JRebel for Eclipse IDE',
 		  'description' => 'See Java Code Changes Instantly. Save Time. Reduce Stress. Finish Projects Faster!',
     );
@@ -296,11 +296,11 @@
 				$this->download_rows .= $this->promotedDownload($this->ads['springsource'], 'promo');
 			}
 
-			if($package['icon'] == '//www.eclipse.org/modeling/images/modeling_about.png') {
-				$package['icon'] = '//www.eclipse.org/downloads/images/modeling.png';
+			if($package['icon'] == '/modeling/images/modeling_about.png') {
+				$package['icon'] = '/downloads/images/modeling.png';
 			}
 
-			if($package['icon'] == '//www.eclipse.org/downloads/images/classic2.jpg') {
+			if($package['icon'] == '/downloads/images/classic2.jpg') {
 				//$package['icon'] = 'http://www.eclipse.org/downloads/images/classic2.png';
 				//$package->body = chop(trim(strip_tags($package->body)), 'Click here to file a bug against Eclipse Platform.');
 				$this->download_standard = $this->getFeaturedRow($package, $this->display, FALSE);