lang->string('Added'); break; case 'D': $class = 'file_delete'; $tooltip = $viewsvn->lang->string('Deleted'); break; case 'M': $class = 'file_modify'; $tooltip = $viewsvn->lang->string('Modified'); break; case 'R': $class = 'file_replace'; $tooltip = $viewsvn->lang->string('Replaced'); break; } $show['from'] = (bool)$file['from']; if ($file['from']) { $class = 'file_move'; $tooltip = 'Moved/Copied'; preg_match('#(.*):([0-9]+)#', $file['from'], $matches); $link['from'] = $viewsvn->path . '/view.php/' . $repos . '/' . $matches[1] . Paths::fetch_rev_str(false, $matches[2]); } $link['file'] = $viewsvn->path . '/view.php/' . $repos . $file['value'] . Paths::fetch_rev_str(false, $revision); eval('$files .= "' . $viewsvn->template->fetch('file_change') . '";'); } return $files; } // ################################################################### /** * Generates a clean revision number * * @access public * * @param integer Revision number * * @return mixed Cleaned revision or HEAD */ function rev($revision) { if (($revision = intval($revision)) < 1) { $revision = 'HEAD'; } return $revision; } } /*=====================================================================*\ || ################################################################### || # $HeadURL$ || # $Id$ || ################################################################### \*=====================================================================*/ ?>