moved the page variable to the templates (belongs to the view)

This commit is contained in:
Fabien Potencier
2012-07-06 23:02:33 +02:00
parent cddca4683a
commit de1cf7320f
10 changed files with 12 additions and 7 deletions

View File

@@ -7,7 +7,6 @@ $app->get('{repo}/blob/{branch}/{file}/', function($repo, $branch, $file) use($a
$fileType = $app['utils']->getFileType($file);
return $app['twig']->render('file.twig', array(
'page' => 'files',
'file' => $file,
'fileType' => $fileType,
'blob' => $blob->output(),