From 1ac65dd4de2889f147774a4b6ff3d45af762a086 Mon Sep 17 00:00:00 2001 From: Pascal Corpet Date: Tue, 15 Jun 2010 23:18:12 +0200 Subject: [PATCH] Fixes the admin/user page that had disappear --- modules/admin.php | 6 ++++-- templates/admin/user.tpl | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 2 deletions(-) diff --git a/modules/admin.php b/modules/admin.php index 11aa7f6..76f7d12 100644 --- a/modules/admin.php +++ b/modules/admin.php @@ -374,8 +374,10 @@ class AdminModule extends PLModule } // Loads the user identity using the environment. - $user = User::get($login); - if (!$user) { + if ($login) { + $user = User::get($login); + } + if (empty($user)) { return; } diff --git a/templates/admin/user.tpl b/templates/admin/user.tpl index 1685c6e..fe1bc3e 100644 --- a/templates/admin/user.tpl +++ b/templates/admin/user.tpl @@ -498,7 +498,44 @@ $(document).ready(function() { +{else} +{literal} + +{/literal} +
+ {xsrf_token_field} + + + + + + + + + + + + + +
+ Administrer +
+ Il est possible d'entrer ici n'importe quelle adresse mail : redirection, melix, ou alias. +
+ +
+    +    + +
+
{/if} {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} -- 2.1.4