Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=homepage-ng.git;a=commitdiff;h=c537de021846a05dae9d1900b88968d9455dbc3e

commit c537de021846a05dae9d1900b88968d9455dbc3e
Author: Devil505 <devil505li...@gmail.com>
Date:   Sun Feb 6 15:31:54 2011 +0100

* placing for ($i=0; $i<count($shots[inst]); $i++) correctly

diff --git a/frugalware/screenshots.php b/frugalware/screenshots.php
index c985561..a9ae3da 100644
--- a/frugalware/screenshots.php
+++ b/frugalware/screenshots.php
@@ -193,9 +193,7 @@ include("config.inc.php");
include("header.php");

$maincont = "<div class=\"screenshots\">\n";
-
$maincont .= "<form action=\"screenshots\" method=\"get\">\n<fieldset 
class=\"fieldset\" id=\"installer\">\n<legend>".gettext("Screenshots from 
users")."</legend>\n";
-for ($i=0; $i<count($shots[inst]); $i++)

for ($i=0; $i<count($shots[users]); $i++)
{
@@ -206,6 +204,7 @@ for ($i=0; $i<count($shots[users]); $i++)

$maincont .= "</fieldset>\n<fieldset class=\"fieldset\" id=\"default\">\n";
$maincont .= "<legend>".gettext("Installer")."</legend>\n";
+for ($i=0; $i<count($shots[inst]); $i++)
{
$maincont .= "<div><a id=\"imagebox\"  
href=\"".$fwng_root."images/screenshots/installer/".$shots[inst][$i][name]."\">".
"<img 
src=\"".$fwng_root."images/screenshots/installer/thumbnails/".$shots[inst][$i][name]."\"
 alt=\"screenshot\" /></a>".
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to