function __construct($group_id) {
parent::__construct();
- $this->group_id = $group_id;
if ($group_id) {
- $this->group_id = $group_id;
$this->g = group_get_object($group_id);
- $this->p =& $this->g->getPermission();
if (!$this->g->usesForum()) {
$this->setError(sprintf(_('%s does not use the Forum tool.'), $this->g->getPublicName()));
}
+ $this->group_id = $group_id;
+ $this->p =& $this->g->getPermission();
}
}
}
if ($action=="view_pending") {
//show the pending messages, awaiting moderation
- $group_id = $this->group_id;
+ $project_id = $this->group_id;
$forum_id = getStringFromRequest("forum_id");
if ($this->isGroupAdmin()) {
$this->PrintAdminOptions();
}
$res = db_query_params('SELECT fgl.forum_name, fgl.group_forum_id FROM forum_group_list fgl, forum_pending_messages fpm WHERE fgl.group_id=$1 AND fpm.group_forum_id = fgl.group_forum_id GROUP BY fgl.forum_name, fgl.group_forum_id',
- array ($group_id));
+ array ($project_id));
if (!$res) {
echo db_error();
return '';
echo "
<tr>
<td>$onemsg[forum_name]</td>
- <td><a href=\"#\" onclick=\"window.open('pendingmsgdetail.php?msg_id=$onemsg[msg_id]&forum_id=$onemsg[group_forum_id]&group_id=$group_id','PendingMessageDetail','width=800,height=600,status=no,resizable=yes');\">$onemsg[subject]</a></td>
+ <td><a href=\"#\" onclick=\"window.open('pendingmsgdetail.php?msg_id=$onemsg[msg_id]&forum_id=$onemsg[group_forum_id]&group_id=$project_id','PendingMessageDetail','width=800,height=600,status=no,resizable=yes');\">$onemsg[subject]</a></td>
<td><div class=\"align-right\">" . html_build_select_box_from_assoc($options,"doaction[]",1) . "</div></td>
</tr>";
}
// Sanity checks
if ($release_id) {
// Check that the new FRSRelease id exists
- if ($FRSRelease = frsrelease_get_object($release_id)) {
+ if ($FRSR = frsrelease_get_object($release_id)) {
// Check that the new FRSRelease id belongs to the group of this FRSFile
- if ($FRSRelease->FRSPackage->Group->getID() != $this->FRSRelease->FRSPackage->Group->getID()) {
+ if ($FRSR->FRSPackage->Group->getID() != $this->FRSRelease->FRSPackage->Group->getID()) {
$this->setError(_('Invalid Project'));
return false;
}
return $this->votes;
}
- $voters = $this->getVoters();
- unset($voters[0]); /* just in case */
- unset($voters[100]); /* need users */
- if (($numvoters = count($voters)) < 1) {
+ $lvoters = $this->getVoters();
+ unset($lvoters[0]); /* just in case */
+ unset($lvoters[100]); /* need users */
+ if (($numvoters = count($lvoters)) < 1) {
$this->votes = array(0, 0, 0);
return $this->votes;
}
$res = db_query_params('SELECT COUNT(*) AS count FROM group_votes WHERE group_id = $1 AND user_id = ANY($2)',
- array($this->getID(), db_int_array_to_any_clause($voters)));
+ array($this->getID(), db_int_array_to_any_clause($lvoters)));
$db_count = db_fetch_array($res);
$numvotes = $db_count['count'];
$this->voters = array();
if (($engine = RBACEngine::getInstance())
- && ($voters = $engine->getUsersByAllowedAction('project_read', $this->getID()))
- && (count($voters) > 0)) {
- foreach ($voters as $voter) {
+ && ($lvoters = $engine->getUsersByAllowedAction('project_read', $this->getID()))
+ && (count($lvoters) > 0)) {
+ foreach ($lvoters as $voter) {
$voter_id = $voter->getID();
$this->voters[$voter_id] = $voter_id;
}
}
function installCode() {
- $name = $this->name;
- $path = forge_get_config('plugins_path') . '/' . $name;
+ $path = forge_get_config('plugins_path') . '/' . $this->name;
$installdir = $this->getInstallDir();
// Create a symbolic links to plugins/<plugin>/www (if directory exists).
}
// Create a symbolic links to plugins/<plugin>/etc/plugins/<plugin> (if directory exists).
- if (is_dir($path . '/etc/plugins/' . $name)) {
+ if (is_dir($path . '/etc/plugins/' . $this->name)) {
// The apache group or user should have write perms in /etc/fusionforge/plugins folder...
- if (!is_link(forge_get_config('config_path'). '/plugins/'.$name) && !is_dir(forge_get_config('config_path'). '/plugins/'.$name)) {
- $code = symlink($path . '/etc/plugins/' . $name, forge_get_config('config_path'). '/plugins/'.$name);
+ if (!is_link(forge_get_config('config_path'). '/plugins/'.$this->name) && !is_dir(forge_get_config('config_path'). '/plugins/'.$this->name)) {
+ $code = symlink($path . '/etc/plugins/' . $this->name, forge_get_config('config_path'). '/plugins/'.$this->name);
if (!$code) {
- $this->setError('['.forge_get_config('config_path'). '/plugins/'.$name.'->'.$path . '/etc/plugins/' . $name . ']'.'<br />'.
- sprintf(_('Config file could not be linked to %s. Check the write permissions for apache in /etc/fusionforge/plugins or create the link manually.'), forge_get_config('config_path').'/plugins/'.$name));
+ $this->setError('['.forge_get_config('config_path'). '/plugins/'.$this->name.'->'.$path . '/etc/plugins/' . $this->name . ']'.'<br />'.
+ sprintf(_('Config file could not be linked to %s. Check the write permissions for apache in /etc/fusionforge/plugins or create the link manually.'), forge_get_config('config_path').'/plugins/'.$this->name));
}
}
}
}
function installConfig() {
- $name = $this->name;
- $path = forge_get_config('plugins_path') . '/' . $name;
+ $path = forge_get_config('plugins_path') . '/' . $this->name;
// Create a symbolic links to plugins/<plugin>/etc/plugins/<plugin> (if directory exists).
- if (is_dir($path . '/etc/plugins/' . $name)) {
+ if (is_dir($path . '/etc/plugins/' . $this->name)) {
// The apache group or user should have write perms in /etc/fusionforge/plugins folder...
- if (!is_link(forge_get_config('config_path'). '/plugins/'.$name) && !is_dir(forge_get_config('config_path'). '/plugins/'.$name)) {
- $code = symlink($path . '/etc/plugins/' . $name, forge_get_config('config_path'). '/plugins/'.$name);
+ if (!is_link(forge_get_config('config_path'). '/plugins/'.$this->name) && !is_dir(forge_get_config('config_path'). '/plugins/'.$this->name)) {
+ $code = symlink($path . '/etc/plugins/' . $this->name, forge_get_config('config_path'). '/plugins/'.$this->name);
if (!$code) {
- $this->setError('['.forge_get_config('config_path'). '/plugins/'.$name.'->'.$path . '/etc/plugins/' . $name . ']'.'<br />'.
- sprintf(_('Config file could not be linked to %s. Check the write permissions for apache in /etc/fusionforge/plugins or create the link manually.'), forge_get_config('config_path').'/plugins/'.$name));
+ $this->setError('['.forge_get_config('config_path'). '/plugins/'.$this->name.'->'.$path . '/etc/plugins/' . $this->name . ']'.'<br />'.
+ sprintf(_('Config file could not be linked to %s. Check the write permissions for apache in /etc/fusionforge/plugins or create the link manually.'), forge_get_config('config_path').'/plugins/'.$this->name));
}
}
}
}
function installDatabase() {
- $name = $this->name;
- $path = forge_get_config('plugins_path') . '/' . $name . '/db';
+ $path = forge_get_config('plugins_path') . '/' . $this->name . '/db';
require_once $GLOBALS['gfcommon'].'include/DatabaseInstaller.class.php';
- $di = new DatabaseInstaller($name, $path);
+ $di = new DatabaseInstaller($this->name, $path);
// Search for database tables, if present then upgrade.
- $tablename = str_replace('-', '_', $name);
+ $tablename = str_replace('-', '_', $this->name);
$res=db_query_params ('SELECT COUNT(*) FROM pg_class WHERE (relname=$1 OR relname like $2) AND relkind=$3',
array ('plugin_'.$tablename, 'plugin_'.$tablename.'_%', 'r'));
$count = db_result($res,0,0);
* @return bool true if installed
*/
function PluginIsInstalled($pluginname) {
- $plugins_data = $this->getPlugins();
- foreach ($plugins_data as $p_name) {
+ $plugins_names = $this->getPlugins();
+ foreach ($plugins_names as $p_name) {
if ($p_name == $pluginname) {
return true;
}
*/
function isPluginAvailable($plugin) {
$pluginname = $plugin->GetName();
- $plugins_data = $this->getPlugins();
- foreach ($plugins_data as $p_name) {
+ $plugins_names = $this->getPlugins();
+ foreach ($plugins_names as $p_name) {
if ($p_name == $pluginname) {
return true;
}
*
*/
function LoadPlugins() {
- $plugins_data = $this->getPlugins();
- foreach ($plugins_data as $p_id => $p_name) {
+ $plugins_names = $this->getPlugins();
+ foreach ($plugins_names as $p_id => $p_name) {
if (!$this->LoadPlugin($p_name)) {
// we can't find the plugin so we remove it from the array
unset($this->plugins_data[$p_id]);
*
*/
function setup($offset,$order,$max_rows,$set,$_assigned_to,$_status,$_category_id,$_view='',$_sort_order = NULL) {
-//echo "<br />offset: $offset| order: $order|max_rows: $max_rows|_assigned_to: $_assigned_to|_status: $_status|_category_id: $_category_id +";
if ((!$offset) || ($offset < 0)) {
$this->offset=0;
} else {
}
$qpa = db_construct_qpa();
if ($this->sort_order) {
- $order = "ORDER BY $this->order $this->sort_order" ;
+ $orderby = "ORDER BY $this->order $this->sort_order" ;
} else {
if ($this->order=='priority') {
- $order = 'ORDER BY priority DESC' ;
+ $orderby = 'ORDER BY priority DESC' ;
} else {
- $order = "ORDER BY $this->order ASC" ;
+ $orderby = "ORDER BY $this->order ASC" ;
}
}
if ($this->assigned_to) {
$qpa = db_construct_qpa($qpa, ' AND project_task_vw.category_id = $1 ', array($this->category));
}
- $qpa = db_construct_qpa($qpa, $order);
+ $qpa = db_construct_qpa($qpa, $orderby);
$result = db_query_qpa($qpa, $this->max_rows, $this->offset);
if (db_error()) {
}
function getAverageTime($atid,$start,$end) {
- $res = db_query_params ('SELECT avg((close_date-open_date)/(24*60*60)) AS avgtime
+ $dbres = db_query_params ('SELECT avg((close_date-open_date)/(24*60*60)) AS avgtime
FROM artifact
WHERE group_artifact_id=$1
AND close_date > 0
array ($atid,
$start,
$end));
- return db_result($res,0,0);
+ return db_result($dbres,0,0);
}
function getOpenCount($atid,$start,$end) {
- $res = db_query_params ('SELECT count(*)
+ $dbres = db_query_params ('SELECT count(*)
FROM artifact
WHERE
group_artifact_id=$1
array ($atid,
$start,
$end));
- return db_result($res,0,0);
+ return db_result($dbres,0,0);
}
function getStillOpenCount($atid,$end) {
- $res = db_query_params ('SELECT count(*)
+ $dbres = db_query_params ('SELECT count(*)
FROM artifact
WHERE
group_artifact_id=$1
array ($atid,
$end, // Yes, really.
$end)) ;
- return db_result($res,0,0);
+ return db_result($dbres,0,0);
}
function getPerAssignee($atid, $start, $end) {
* @return object The Group object.
*/
function &getGroup() {
- $Survey = $this->getSurvey();
- return $Survey->Group;
+ $lsurvey = $this->getSurvey();
+ return $lsurvey->Group;
}
/**
$at = $this->getArtifactType();
$ef = $at->getExtraFields();
- $parent = $this->getParent();
- $parentArtifact = artifact_get_object($parent);
+ $parentid = $this->getParent();
+ $parentArtifact = artifact_get_object($parentid);
$parentExtra_fields = $parentArtifact->getExtraFieldData();
$parentAt = $parentArtifact->getArtifactType();
$at = $this->getArtifactType();
$ef = $at->getExtraFields();
- $children = $this->getChildren();
+ $childrenArray = $this->getChildren();
foreach ($extra_fields as $key=>$value) {
$aggregation_rule = $ef[$key]['aggregation_rule'];
$effortSum= new Effort(0, $baseUnit);
break;
}
- foreach ($children as $child) {
+ foreach ($childrenArray as $child) {
$childArtifact = artifact_get_object($child['artifact_id']);
$childExtra_fields = $childArtifact->getExtraFieldData();
if ($at->getID() == $child['group_artifact_id']) {
$aa=$a->getExtraFieldDataText();
$ba=$b->getExtraFieldDataText();
if(!isset($this->criterion) || empty($this->criterion)) {
- $criterion = 1;
- } else {
- $criterion = $this->criterion;
+ $this->criterion = 1;
}
- $af=$aa[$criterion]['value'];
- $bf=$ba[$criterion]['value'];
- switch ($aa[$criterion]['type']) {
+ $af=$aa[$this->criterion]['value'];
+ $bf=$ba[$this->criterion]['value'];
+ switch ($aa[$this->criterion]['type']) {
case ARTIFACT_EXTRAFIELDTYPE_EFFORT:
$namecmp = intval($af)-intval($bf);
break;
* @return array The array of Artifact objects.
*/
function getArtifactsByReleases($extra_field_id, $releases) {
- $artifacts = array();
+ $artifactArr = array();
$sql = 'SELECT DISTINCT a.*
FROM artifact_extra_field_data aefd, artifact_extra_field_elements aefe, artifact_vw a
$result = db_query_params($sql, $query_params);
if ($result && db_numrows($result)) {
while ($arr = db_fetch_array($result)) {
- $artifacts[] = new Artifact($this->ArtifactType, $arr);
+ $artifactArr[] = new Artifact($this->ArtifactType, $arr);
}
}
- return $artifacts;
+ return $artifactArr;
}
}
$filter = '';
}
if (!isset($this->extra_fields[$filter]) || !$use_cache) {
- $extra_fields = array();
+ $extra_fieldsArr = array();
if (count($types)) {
$res = db_query_params('SELECT *
FROM artifact_extra_field_list
array($this->getID()));
}
while ($arr = db_fetch_array($res)) {
- $extra_fields[$arr['extra_field_id']] = $arr;
+ $extra_fieldsArr[$arr['extra_field_id']] = $arr;
}
}
if (!isset($this->extra_fields[$filter])) {
- $this->extra_fields[$filter] = $extra_fields;
+ $this->extra_fields[$filter] = $extra_fieldsArr;
}
if ($use_cache) {
- $extra_fields = $this->extra_fields[$filter];
+ $extra_fieldsArr = $this->extra_fields[$filter];
}
- return $extra_fields;
+ return $extra_fieldsArr;
}
/**
* @return array arrays of data;
*/
function getExtraFieldsDefaultValue($types = array(), $get_is_disabled = false, $get_is_hidden_on_submit = true) {
- $extra_fields = $this->getExtraFields($types, $get_is_disabled, $get_is_hidden_on_submit);
+ $extra_fieldsArr = $this->getExtraFields($types, $get_is_disabled, $get_is_hidden_on_submit);
$efDefaultValue = array();
- foreach ($extra_fields as $efID=>$efArr) {
+ foreach ($extra_fieldsArr as $efID=>$efArr) {
$ef = new ArtifactExtraField($this, $efID);
$defaultValue = $ef->getDefaultValues();
if (!is_null($defaultValue)) {
*/
function getExtraFieldsInFormula($types = array(), $get_is_disabled = false, $get_is_hidden_on_submit = true) {
$return = array();
- $extra_fields = $this->getExtraFields($types, $get_is_disabled, $get_is_hidden_on_submit);
+ $extra_fieldsArr = $this->getExtraFields($types, $get_is_disabled, $get_is_hidden_on_submit);
$res = db_query_params('SELECT string_agg(formula,chr(10)) FROM artifact_extra_field_formula NATURAL INNER JOIN artifact_extra_field_list WHERE is_disabled=0 AND group_artifact_id=$1',
array ($this->getID()));
if (db_numrows($res) > 0) {
$row = db_fetch_array($res);
if (preg_match_all("/([a-z]\w*)/m", $row[0], $matches)) {
- foreach ($extra_fields as $extra_field) {
+ foreach ($extra_fieldsArr as $extra_field) {
if (in_array($extra_field['alias'],$matches[0])) {
$return[]=$extra_field['extra_field_id'];
}
*/
function getExtraFieldsWithFormula($types = array(), $get_is_disabled = false, $get_is_hidden_on_submit = true) {
$return = array();
- $extra_fields = $this->getExtraFields($types, $get_is_disabled, $get_is_hidden_on_submit);
$res = db_query_params('SELECT extra_field_id FROM artifact_extra_field_formula NATURAL INNER JOIN artifact_extra_field_list WHERE is_disabled=0 AND group_artifact_id=$1',
array ($this->getID()));
while ($arr = db_fetch_array($res)) {
$this->voters = array();
if (($engine = RBACEngine::getInstance())
- && ($voters = $engine->getUsersByAllowedAction('tracker', $this->getID(), 'vote'))
- && (count($voters) > 0)) {
- foreach ($voters as $voter) {
+ && ($lvoters = $engine->getUsersByAllowedAction('tracker', $this->getID(), 'vote'))
+ && (count($lvoters) > 0)) {
+ foreach ($lvoters as $voter) {
$voter_id = $voter->getID();
$this->voters[$voter_id] = $voter_id;
}
}
$artifact_type_list = $this->getList();
- $release_order = $this->getReleaseOrder();
+ $release_order_arr = $this->getReleaseOrder();
$releases = array();
- if (is_array($release_order)) {
- foreach ($release_order as $release_value) {
+ if (is_array($release_order_arr)) {
+ foreach ($release_order_arr as $release_value) {
$releases[$release_value] = false;
}
}
}
public function getRoadmapByID($roadmap_id, $enable_only=false) {
- $roadmaps = $this->getRoadmaps($enable_only);
- foreach ($roadmaps as $roadmap) {
+ $roadmaps_Arr = $this->getRoadmaps($enable_only);
+ foreach ($roadmaps_Arr as $roadmap) {
if($roadmap->isError()) {
$this->setError($roadmap->getErrorMessage());
} else {
}
public function getRoadmapByName($name, $enable_only=false) {
- $roadmaps = $this->getRoadmaps($enable_only);
- foreach ($roadmaps as $roadmap) {
+ $roadmaps_Arr = $this->getRoadmaps($enable_only);
+ foreach ($roadmaps_Arr as $roadmap) {
if($roadmap->isError()) {
$this->setError($roadmap->getErrorMessage());
} else {
}
public function getDefault() {
- $roadmaps = $this->getRoadmaps();
- foreach ($roadmaps as $roadmap) {
+ $roadmaps_Arr = $this->getRoadmaps();
+ foreach ($roadmaps_Arr as $roadmap) {
if($roadmap->isError()) {
$this->setError($roadmap->getErrorMessage());
} else {
function updatePreferences() {
$done = false;
if (existInRequest('content_id')) {
- $title = htmlspecialchars(getStringFromRequest('title', ''));
+ $newtitle = htmlspecialchars(getStringFromRequest('title', ''));
if(existInRequest('body')) {
- $content = getStringFromRequest('body');
+ $newcontent = getStringFromRequest('body');
if (getStringFromRequest('_body_content_type') == 'html') {
- $content = TextSanitizer::purify($content);
+ $newcontent = TextSanitizer::purify($newcontent);
} else {
- $content = htmlspecialchars($content);
+ $newcontent = htmlspecialchars($newcontent);
}
} else {
- $content = '';
+ $newcontent = '';
}
- if ($content) {
+ if ($newcontent) {
$sql = "UPDATE plugin_blocks SET title=$1, content=$2 WHERE group_id =$3 AND id = $4";
- db_query_params($sql, array($title, $content, $this->group_id, getIntFromRequest('content_id')));
+ db_query_params($sql, array($newtitle, $newcontent, $this->group_id, getIntFromRequest('content_id')));
$done = true;
}
}
}
function create() {
- $title = getStringFromRequest('title');
- $content = getStringFromRequest('body');
+ $otitle = getStringFromRequest('title');
+ $ocontent = getStringFromRequest('body');
$res = db_query_params('INSERT INTO plugin_blocks (group_id, name, status, title, content)
VALUES ($1, $2, 1, $3, $4)',
- array($this->owner_id, 'summary_block?', $title, $content));
+ array($this->owner_id, 'summary_block?', $otitle, $ocontent));
$content_id = db_insertid($res, 'plugin_blocks', 'id');
db_query_params('UPDATE plugin_blocks SET name=$1 WHERE id=$2',
array('summary_block'.$content_id, $content_id));
function updatePreferences() {
$done = false;
if (existInRequest('content_id')) {
- $title = htmlspecialchars(getStringFromRequest('title', ''));
+ $newtitle = htmlspecialchars(getStringFromRequest('title', ''));
if(existInRequest('body')) {
- $content = getStringFromRequest('body');
+ $newcontent = getStringFromRequest('body');
if (getStringFromRequest('_body_content_type') == 'html') {
- $content = TextSanitizer::purify($content);
+ $newcontent = TextSanitizer::purify($newcontent);
} else {
- $content = htmlspecialchars($content);
+ $newcontent = htmlspecialchars($newcontent);
}
} else {
- $content = '';
+ $newcontent = '';
}
- if ($content) {
+ if ($newcontent) {
$sql = "UPDATE plugin_blocks SET title=$1, content=$2 WHERE group_id =$3 AND id = $4";
- db_query_params($sql,array($title,$content,$this->group_id, getIntFromRequest('content_id')));
+ db_query_params($sql,array($newtitle, $newcontent, $this->group_id, getIntFromRequest('content_id')));
$done = true;
}
}
}
function create() {
- $title = getStringFromRequest('title');
- $content = getStringFromRequest('body');
+ $otitle = getStringFromRequest('title');
+ $ocontent = getStringFromRequest('body');
$res = db_query_params('INSERT INTO plugin_blocks (group_id, name, status, title, content)
VALUES ($1, $2, 1, $3, $4)',
- array($this->owner_id, 'summary_block?', $title, $content));
+ array($this->owner_id, 'summary_block?', $otitle, $ocontent));
$content_id = db_insertid($res, 'plugin_blocks', 'id');
db_query_params('UPDATE plugin_blocks SET name=$1 WHERE id=$2',
array('summary_block'.$content_id, $content_id));
/**
* It display a table with commit related to this tracker or task_extra_detail
*
- * @param string $Query Query to be executed to get the commit entries.
- * @param int $group_id Group_id of the actual Group_id
+ * @param string $Query Query to be executed to get the commit entries.
+ * @param int $group_id Group_id of the actual Group_id
*
*/
function getCommitEntries($DBResult, $group_id) {
global $HTML;
- $group = group_get_object($group_id);
+ $groupObj = group_get_object($group_id);
$Rows= db_numrows($DBResult);
$return = '';
while ($Row = db_fetch_array($DBResult)) {
$cells = array();
- $cells[][] = $this->getFileLink($group->getUnixName(), $Row['file'],$Row['actual_version']);
+ $cells[][] = $this->getFileLink($groupObj->getUnixName(), $Row['file'],$Row['actual_version']);
$cells[][] = date(_('Y-m-d'), $Row['cvs_date']);
- $cells[][] = $this->getDiffLink($group->getUnixName(), $Row['file'], $Row['prev_version'], $Row['actual_version']);
- $cells[][] = $this->getActualVersionLink($group->getUnixName(), $Row['file'], $Row['actual_version']);
+ $cells[][] = $this->getDiffLink($groupObj->getUnixName(), $Row['file'], $Row['prev_version'], $Row['actual_version']);
+ $cells[][] = $this->getActualVersionLink($groupObj->getUnixName(), $Row['file'], $Row['actual_version']);
$cells[][] = htmlspecialchars($Row['log_text']);
$commituser = user_get_object_by_name($Row['author']);
$cells[][] = util_display_user($commituser->getUnixName(), $commituser->getId(), $commituser->getRealname());
*/
function getCommitEntries($DBResult, $group_id) {
global $HTML;
- $group = group_get_object($group_id);
+ $groupObj = group_get_object($group_id);
$Rows = db_numrows($DBResult);
$return = '';
while ($Row = db_fetch_array($DBResult)) {
$cells = array();
- $cells[][] = $this->getFileLink($group->getUnixName(), $Row['file'], $Row['actual_version']);
+ $cells[][] = $this->getFileLink($groupObj->getUnixName(), $Row['file'], $Row['actual_version']);
$cells[][] = date(_('Y-m-d'), $Row['git_date']);
- $cells[][] = $this->getDiffLink($group->getUnixName(), $Row['file'], $Row['prev_version'], $Row['actual_version']);
- $cells[][] = $this->getActualVersionLink($group->getUnixName(), $Row['file'], $Row['actual_version']);
+ $cells[][] = $this->getDiffLink($groupObj->getUnixName(), $Row['file'], $Row['prev_version'], $Row['actual_version']);
+ $cells[][] = $this->getActualVersionLink($groupObj->getUnixName(), $Row['file'], $Row['actual_version']);
$cells[][] = htmlspecialchars($Row['log_text']);
$commituser = user_get_object_by_name($Row['author']);
$cells[][] = util_display_user($commituser->getUnixName(), $commituser->getId(), $commituser->getRealname());
*/
function getCommitEntries($DBResult, $group_id) {
global $HTML;
- $group = group_get_object($group_id);
+ $groupObj = group_get_object($group_id);
$Rows= db_numrows($DBResult);
$return = '';
for ($i=0; $i<$Rows; $i++) {
$Row = db_fetch_array($DBResult);
$cells = array();
- $cells[][] = $this->getFileLink($group->getUnixName(), $Row['file'], $Row['actual_version']);
+ $cells[][] = $this->getFileLink($groupObj->getUnixName(), $Row['file'], $Row['actual_version']);
$cells[][] = date(_('Y-m-d'), $Row['svn_date']);
- $cells[][] = $this->getDiffLink($group->getUnixName(), $Row['file'], $Row['prev_version'], $Row['actual_version']);
- $cells[][] = $this->getActualVersionLink($group->getUnixName(), $Row['file'], $Row['actual_version']);
+ $cells[][] = $this->getDiffLink($groupObj->getUnixName(), $Row['file'], $Row['prev_version'], $Row['actual_version']);
+ $cells[][] = $this->getActualVersionLink($groupObj->getUnixName(), $Row['file'], $Row['actual_version']);
$cells[][] = htmlspecialchars($Row['log_text']);
$commituser = user_get_object_by_name($Row['author']);
$cells[][] = util_display_user($commituser->getUnixName(), $commituser->getId(), $commituser->getRealname());