summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan "Papa" Cwiklinski <trasher@odysseus.(none)>2010-05-29 22:41:03 +0200
committerJohan "Papa" Cwiklinski <trasher@odysseus.(none)>2010-05-29 22:41:03 +0200
commit4fded33567be2378d9ed9ac3e9265fa377b0d4eb (patch)
tree3680dcabac58751e6de3158b1299b09f115d8631
parent1cd1f3d10813c6ef6c24b7158179f728e55f73c7 (diff)
A flag to know if we're from a page that require a name ; refs #47
-rw-r--r--smarty/templates/rpmphp/main.tpl2
-rw-r--r--zoom.php2
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>
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' => '#',