From 5f427dd38c8d47711ea73015076bb390761e05dd Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 26 Mar 2012 08:05:46 +0200 Subject: use repository and file classes --- www/display.php | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'www/display.php') diff --git a/www/display.php b/www/display.php index 5bd06bb..b6b7d7f 100644 --- a/www/display.php +++ b/www/display.php @@ -1,23 +1,14 @@ loadFromRequest(); -$files = glob($repoDir . '/*'); +/* $tplFiles = array(); foreach ($files as $file) { $tplFile = array(); @@ -28,15 +19,19 @@ foreach ($files as $file) { $tplFile['raw'] = '/' . $id . '/raw/' . $tplFile['filename']; $tplFiles[] = $tplFile; } +*/ render( 'display', array( + 'repo' => $repo, + /* 'description' => file_get_contents($repoDir . '/.git/description'), 'files' => $tplFiles, 'links' => array( 'edit' => '/' . $id . '/edit' ) + */ ) ); ?> -- cgit v1.2.3