Add an option to configure an external URL per project, e.g. to allow the
linking of the home page of the project. This feature was kindly sponsored by Scilab.
This commit is contained in:
@@ -132,7 +132,7 @@ class IDF_Project extends Pluf_Model
|
||||
}
|
||||
return $projects[0];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the number of open/closed issues.
|
||||
*
|
||||
@@ -167,7 +167,7 @@ GROUP BY uid";
|
||||
$key = ($v['id'] === '-1') ? null : $v['id'];
|
||||
$ownerStatistics[$key] = (int)$v['nb'];
|
||||
}
|
||||
|
||||
|
||||
arsort($ownerStatistics);
|
||||
|
||||
return $ownerStatistics;
|
||||
@@ -552,6 +552,22 @@ GROUP BY uid";
|
||||
return $this->_pconf;
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic overload that falls back to the values of the internal configuration
|
||||
* if no getter / caller matched
|
||||
*
|
||||
* @param string $key
|
||||
*/
|
||||
public function __get($key)
|
||||
{
|
||||
try {
|
||||
return parent::__get($key);
|
||||
}
|
||||
catch (Exception $e) {
|
||||
return $this->getConf()->getVal($key);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get simple statistics about the project.
|
||||
*
|
||||
|
Reference in New Issue
Block a user