X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=widget.auth.php;h=985ee53ecfcc7a1367426c9002b08d9c89b45c44;hb=HEAD;hp=1efd583ced213e274785ff4a942d8a721ad0c56a;hpb=85cd8fee15ec58968064308088801c0619ad40d3;p=dotclear.git diff --git a/widget.auth.php b/widget.auth.php index 1efd583..985ee53 100644 --- a/widget.auth.php +++ b/widget.auth.php @@ -1,20 +1,20 @@ create('XorgAuth', __('Auth. X.org'), array('xorgAuthWidget', 'widget')); } - static public function widget(&$w) { + static public function widget($w) { global $core; $name = @$core->auth->getInfo('user_displayname'); if ($name) { - $str = '

Tu es ' . $core->auth->getInfo('user_displayname') . '
'; + $str = '

'; } else { - return '

M\'authentifier via Polytechnique.org

'; + return ''; } } }