Update dotclear plugin to properly display auth link on the public page.
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Sat, 26 Mar 2011 08:56:06 +0000 (09:56 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Sat, 26 Mar 2011 08:56:06 +0000 (09:56 +0100)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
_public.php

index c67db8b..adc2d8b 100644 (file)
@@ -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'));