Support https in blog URLs
[dotclear.git] / widget.blog.owner.php
index fec3393..4ab853c 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 class xorgBlogOwnerWidget {
-  public static function behavior_adminBlogPreferencesForm(&$core) {
+  public static function behavior_adminBlogPreferencesForm($core) {
     if ($core->auth->isSuperAdmin()) {
       if (isset($_GET['id'])) {
         $settings = new dcSettings($core, $_GET['id']);
@@ -10,6 +10,8 @@ class xorgBlogOwnerWidget {
       }
       $types = array('user' => array('text' => 'Blog d\'utilisateur',
                                      'selected' => false),
+                     'connected' => array('text' => 'Blog de groupe, édition par toute personne connectée',
+                                      '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',
@@ -58,11 +60,11 @@ class xorgBlogOwnerWidget {
     }
   }
 
-  public static function behavior_adminBeforeBlogSettingsUpdate(&$settings) {
+  public static function behavior_adminBeforeBlogSettingsUpdate($settings) {
     self::setXorgOwner($settings, $_POST['xorg_blog_type'], $_POST['xorg_blog_owner']);
   }
 
-  public static function setXorgOwner(&$settings, $type, $owner) {
+  public static function setXorgOwner($settings, $type, $owner) {
     global $core;
     if ($core->auth->isSuperAdmin()) {
       $settings->xorgauth->put('xorg_blog_type', $type, 'string', 'Type de blog X.org');