reactivated project (dev: http://git-dev.pk910.de)
[phpgitweb.git] / htdocs / pages / commitdiff.class.php
index 5ef3fa05b4e7b95fe165428a87541d6806f22997..3bfc409c30bdad42f95716011dfd9c8306bcff87 100644 (file)
  * along with this program. If not, see <http://www.gnu.org/licenses/>. 
  */
 
-require_once("pages/commit.class.php");
-
 class page_commitdiff {
-    private $page, $phpgitweb;
+       private $page, $phpgitweb;
        
-    public function main($phpgitweb, $project) {
+       public function main($phpgitweb, $project) {
                $this->phpgitweb = $phpgitweb;
                if(!$project)
                        return new ContentProvider('main', 'err400');
@@ -84,7 +82,7 @@ class page_commitdiff {
                $difftree->push_difftree_data($diff_data['tree']);
                $this->page->set('difftree', $difftree->generate_difftree($project, $commit, true));
                
-               
+               $this->page->set('patchset', diff::generate_html($commit, $diff_data));
                
                return $this->page;
        }