Mon 02 Apr 2007 09:16:36 AM UTC, original submission:
I'm not familiar with PHP and Savane internals, but it seems to me that there is some inconsistency with $project->project_data_array.
In frontend/php/include/project_home.php I see:
if ($project->CanUse("license"))
{
$license = $project->getLicense();
print '<br />'._("License:").' ';
if ($LICENSE_URL[$license] != "0") {
print utils_link($LICENSE_URL[$license], $LICENSE[$license]);
} else {
print $LICENSE[$license];
if ($license == "other") {
print $project->getLicense_other();
}
}
}
where getLicense() and getLicense_other() are from Group.class:
function getLicense() {
return $this->project_data_array['license'];
}
function getLicense_other() {
return $this->project_data_array['license_other'];
}
function getDevelStatus() {
return $this->project_data_array['devel_status'];
}
These functions return empty value in my case. I didn't find when
function Project($id) {
$this->Group($id);
$this->project_data_array=$this->data_array;
}
from Group.class is called.
If I change project_data_array to data_array everything works fine.
function getLicense_other() {
return $this->data_array['license_other'];
}
I use apache-2.2.4, php-5.2.1, savane-3.0+2
|