From: Pascal Corpet Date: Tue, 15 Jun 2010 21:18:12 +0000 (+0200) Subject: Fixes the admin/user page that had disappear X-Git-Tag: xorg/1.0.0~130 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=1ac65dd4de2889f147774a4b6ff3d45af762a086;p=platal.git Fixes the admin/user page that had disappear --- 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: *}