Bug 424570: show images when in /linuxtools/new
link http://www.eclipse.org/linuxtools/new/ does not show images, most
likely because the 2.2 new.html is looking at relative image path in its
directory.
proposed fix would be to add a <base> element to make
/linuxtools/new/x.x the base directory, making relative paths in the
.html file work.
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=424570
Signed-off-by: Neil Guzman <guzmann001@gmail.com>
diff --git a/new/index.php b/new/index.php
index 0fa5394..544fb98 100755
--- a/new/index.php
+++ b/new/index.php
@@ -8,6 +8,7 @@
$pageTitle = "Linux Tools New & Noteworthy";
$filename = $_SERVER['DOCUMENT_ROOT'] . "/linuxtools/new/2.2/new.html";
+ $base = "<base href=\"/linuxtools/new/2.2/\" target=\"_blank\">";
$dataFile = fopen( $filename, "r" ) ;
if ( $dataFile ) {
while (!feof($dataFile)) {
@@ -23,7 +24,7 @@
include("_projectCommon.php");
$html = <<<EOHTML
-
+$base
<div id="midcolumn">
$contents
</div>