From: Raphaël Barrois Date: Sat, 26 Mar 2011 08:56:06 +0000 (+0100) Subject: Update dotclear plugin to properly display auth link on the public page. X-Git-Url: http://git.polytechnique.org/?p=dotclear.git;a=commitdiff_plain;h=a6ed9229258c48e6f54bd3f463f029fdbe56080f Update dotclear plugin to properly display auth link on the public page. Signed-off-by: Raphaël Barrois --- diff --git a/_public.php b/_public.php index c67db8b..adc2d8b 100644 --- a/_public.php +++ b/_public.php @@ -10,6 +10,10 @@ require_once dirname(__FILE__) . '/page.webservice.php'; /* Xorg auth */ $core->url->register('xorgAuth', 'XorgAuth', '^auth/(.*)$', array('xorgAuthentifier', 'doAuth')); +/* Declare the authentication widget on public page */ +$core->addBehavior('initWidgets', array('xorgAuthWidget', 'behavior_initWidgets')); +$core->addBehavior('initWidgets', array('xorgCopyrightWidget', 'behavior_initWidgets')); + /* Post permission handling */ $core->addBehavior('coreBlogGetPosts', array('xorgPostPermsWidget', 'behavior_coreBlogGetPosts'));