From 6e7207b14aa50a0bd03c997b3cfb5b00b7bd9ca7 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 1 Jun 2008 15:35:43 +0200 Subject: [PATCH] * Fix some issues with blog edition. * avoid 'echo ' Signed-off-by: Florent Bruneau --- widget.blog.owner.php | 45 ++++++++++++++++++++++++++++++++++++++------- widget.post.perms.php | 32 +++++++++++++++++++++++--------- 2 files changed, 61 insertions(+), 16 deletions(-) diff --git a/widget.blog.owner.php b/widget.blog.owner.php index 272716c..66a234c 100644 --- a/widget.blog.owner.php +++ b/widget.blog.owner.php @@ -3,27 +3,58 @@ class xorgBlogOwnerWidget { public static function behavior_adminBlogPreferencesForm(&$core) { if ($core->auth->isSuperAdmin()) { + if (isset($_GET['id'])) { + $settings = new dcSettings($core, $_GET['id']); + } else { + $settings =& $core->blog->settings; + } $types = array('user' => array('text' => 'Blog d\'utilisateur', 'selected' => false), 'group-member' => array('text' => 'Blog de groupe, édition par les membres', 'selected' => false), 'group-admin' => array('text' => 'Blog de groupe, édition par les administrateurs', 'selected' => false)); - $type = $core->blog->settings->get('xorg_blog_type'); + $type = $settings->get('xorg_blog_type'); if (!$type) { $type = 'user'; } $types[$type]['selected'] = true; - echo '
Authentification X.org
'; - echo '

'; - echo '

'; - echo '

'; + ?> + + +

+ +
+

+ +

+

+ +

+
+ + +

'; + ?> + + +

+

'; + ?> + + (1) Ne concerne que les blogs de groupes X. Equivaut à "Visible par les X" sur les autres blogs" + +

+