From 4fded33567be2378d9ed9ac3e9265fa377b0d4eb Mon Sep 17 00:00:00 2001 From: "Johan \"Papa\" Cwiklinski" Date: Sat, 29 May 2010 22:41:03 +0200 Subject: A flag to know if we're from a page that require a name ; refs #47 --- smarty/templates/rpmphp/main.tpl | 2 +- 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} -{if not $name} +{if $name_required and not $name}

Missing package name

You have not specified any package name.

diff --git a/zoom.php b/zoom.php index dfcdc95..5a3f6cb 100644 --- a/zoom.php +++ b/zoom.php @@ -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' => '#', -- cgit