Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWayne Beaton2013-03-20 16:48:45 -0400
committerWayne Beaton2013-03-20 16:48:45 -0400
commit9dd6ffb8c7e591843b5f50b6b0367a7477a07504 (patch)
treecafa6f6c73e9886c6a871995be913ce9e578d918
parent87acf13760dfb543bbe7e66ca18e87305dc185c7 (diff)
downloadarticles-9dd6ffb8c7e591843b5f50b6b0367a7477a07504.tar.gz
articles-9dd6ffb8c7e591843b5f50b6b0367a7477a07504.tar.xz
articles-9dd6ffb8c7e591843b5f50b6b0367a7477a07504.zip
Use the updated project APIs.
-rwxr-xr-xparts/versions.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/parts/versions.php b/parts/versions.php
index 27df8a4..3a8b327 100755
--- a/parts/versions.php
+++ b/parts/versions.php
@@ -10,7 +10,9 @@
* Wayne Beaton (Eclipse Foundation)- initial API and implementation
*******************************************************************************/
- if ($info != null) { ?>
+ if ($info != null) {
+ require_once(dirname(__FILE__) ."/../../projects/classes/Project.class.php");
+ ?>
<style>
.info-box {width:600px;display:block;margin-left:auto;margin-right:auto;margin-top:10px;margin-bottom:10px;border-style:solid;border-width:1px;padding:5px}
@@ -22,18 +24,17 @@
<?
if (isset($info->outdated)) $App->setOutDated();
if ($info->project) {
- require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/classes/projects/projectInfoData.class.php");
- echo "<p>This article is known to apply to the following Eclipse project";
+ echo "<p>This article is known to apply to the following Eclipse project";
if (count($info->project) > 1) echo "s";
echo ":</p>";
echo "<ul>";
$separator = "";
foreach($info->project as $project) {
echo "<li class=\"info-bullet\">";
- $id = $project['id'];
- $project_info = @new ProjectInfoData($id);
- $name = $project_info->projectname;
- if ($name == null) $name = $id;
+ $id = (string)$project['id'];
+ $name = $id;
+ if ($project_info = getProject($id))
+ $name = $project_info->getName();
echo "<a href=\"http://www.eclipse.org/projects/project_summary.php?projectid=$id\">$name</a>";
if ($project->release) {

Back to the top