diff options
-rw-r--r-- | smarty/templates/rpmphp/main.tpl | 2 | ||||
-rw-r--r-- | zoom.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/smarty/templates/rpmphp/main.tpl b/smarty/templates/rpmphp/main.tpl index 7456773..6f12fdf 100644 --- a/smarty/templates/rpmphp/main.tpl +++ b/smarty/templates/rpmphp/main.tpl @@ -44,7 +44,7 @@ {/foreach} </ul> </div><!-- /ariane --> -{if not $name} +{if $name_required and not $name} <h1>Missing package name</h1> <form action="?" method="get"> <p>You have not specified any package name.</p> @@ -34,7 +34,6 @@ * @version SVN: $Id: ajouter_adherent.php 836 2010-02-27 08:11:44Z trashy $ * @link http://github.com/remicollet/rpmphp/ * @since The begining of times. - */ require 'main.inc.php'; require 'FedoraClient.php'; @@ -43,6 +42,7 @@ $fedcli = new FedoraPkgdb(); $name = $_GET['rpm']; +$smarty->assign('name_required', true); $smarty->assign('name', $name); $ariane[] = array( 'url' => '#', |