* 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');
$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;
}