Update HTML links to the new methods

This commit is contained in:
Sébastien Lucas 2012-06-26 14:45:09 +02:00
parent 4473037ae8
commit 2d83cd6e78
4 changed files with 19 additions and 4 deletions

View file

@ -24,10 +24,10 @@ $book->getLinkArray ();
</div>
<div class="download">
<?php
foreach ($book->format as $key => $format)
foreach ($book->getDatas() as $data)
{
?>
<div class="button buttonEffect"><a href="<?php echo "download/" . $format[0] . "/" . urlencode ($format[1]) ?>"><?php echo $key ?></a></div>
<div class="button buttonEffect"><a href="<?php echo $data->getHtmlLink () ?>"><?php echo $data->format ?></a></div>
<?php
}
?>