[Fusionforge-commits] r9513 - in trunk/plugins/coclico/mailman: debian/dsf-in www

Mélanie Le Bail melanelebail at libremir.placard.fr.eu.org
Mon Apr 19 10:15:10 CEST 2010


Author: melanelebail
Date: 2010-04-19 10:15:10 +0200 (Mon, 19 Apr 2010)
New Revision: 9513

Modified:
   trunk/plugins/coclico/mailman/debian/dsf-in/plugin-mailman.postinst
   trunk/plugins/coclico/mailman/www/mailman_utils.php
Log:
Fix some bugs in display for plugin mailman


Modified: trunk/plugins/coclico/mailman/debian/dsf-in/plugin-mailman.postinst
===================================================================
--- trunk/plugins/coclico/mailman/debian/dsf-in/plugin-mailman.postinst	2010-04-16 14:50:14 UTC (rev 9512)
+++ trunk/plugins/coclico/mailman/debian/dsf-in/plugin-mailman.postinst	2010-04-19 08:15:10 UTC (rev 9513)
@@ -31,6 +31,7 @@
 	su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/@OLDPACKAGE@/bin/register-plugin mailman "mailman"'
 	chgrp list /var/lib/mailman/lists/extend.py 
 	su -s /bin/sh @OLDPACKAGE@ -c '/usr/share/@OLDPACKAGE@/plugins/mailman/bin/db-upgrade.pl'
+	getent group www-data | grep -q list || adduser list www-data
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)

Modified: trunk/plugins/coclico/mailman/www/mailman_utils.php
===================================================================
--- trunk/plugins/coclico/mailman/www/mailman_utils.php	2010-04-16 14:50:14 UTC (rev 9512)
+++ trunk/plugins/coclico/mailman/www/mailman_utils.php	2010-04-19 08:15:10 UTC (rev 9513)
@@ -114,7 +114,10 @@
 				else{
 					echo _('Error during creation');
 				}
-				echo '</td>';
+				echo '</td><td></td>';
+				if (isLogged()) {
+					echo '<td></td><td></td><td></td>';
+				}
 			} else {
 				echo htmlspecialchars($currentList->getDescription()).'</td>';
 				$archives =' <A HREF="index.php?group_id='.$request->get('group_id').'&action=pipermail&id='.$currentList->getID().'">'._('Archives').'</A>';
@@ -146,7 +149,7 @@
 }
 function display_list_admin($currentList)
 {
-global $class;
+	global $class;
 	$request =& HTTPRequest::instance();
 	$current_user=UserManager::instance()->getCurrentUser();
 	if($currentList->isPublic()!='9'){
@@ -169,8 +172,9 @@
 				echo	'<td>'._('Not activated yet').'</td>';
 			}
 			else{
-				echo '<td>'._('Error during creation').'  <A HREF="index.php?group_id='.$request->get('group_id').'&action=recreate&group_list_id='.$currentList->getID().'">'._('Re-create').'</A></td>';
+				echo '<td>'._('Error during creation').'  <A HREF="/plugins/mailman/index.php?group_id='.$request->get('group_id').'&action=recreate&group_list_id='.$currentList->getID().'">'._('Re-create').'</A></td>';
 			}
+			echo '<td></td><td></td><td></td>';
 		} else {
 
 			echo '<td>'.htmlspecialchars($currentList->getDescription()).'</td>';




More information about the Fusionforge-commits mailing list