added hash_base system (base refs gets stored in the _SESSION)
[phpgitweb.git] / htdocs / pages / commitdiff.class.php
index 0897f5c130754ae24dc45b3f54c9e4d3e65b4ece..5ef3fa05b4e7b95fe165428a87541d6806f22997 100644 (file)
@@ -20,7 +20,6 @@ require_once("pages/commit.class.php");
 
 class page_commitdiff {
     private $page, $phpgitweb;
-       private $commitid;
        
     public function main($phpgitweb, $project) {
                $this->phpgitweb = $phpgitweb;
@@ -29,15 +28,10 @@ class page_commitdiff {
                $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');