class page_commitdiff {
private $page, $phpgitweb;
- private $commitid;
public function main($phpgitweb, $project) {
$this->phpgitweb = $phpgitweb;
$project['refs'] = $phpgitweb->get_project_loader()->getProjectRefs($project);
$phpgitweb->append_header_nav("commit", null, true);
$phpgitweb->append_title("commit");
+ CommitLoader::parse();
$commit_loader = new CommitLoader($project);
-
- if(array_key_exists('h', $_GET))
- $commitid = $_GET['h'];
- else
- $commitid = "HEAD";
-
- $commit = $commit_loader->load($commitid);
+ $commit = $commit_loader->load();
if(!$commit)
return new ContentProvider('main', 'err404_object');