[Fusionforge-commits] r10515 - in trunk/src/www: admin forum forum/admin

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Thu Sep 16 21:05:19 CEST 2010


Author: aljeux
Date: 2010-09-16 21:05:18 +0200 (Thu, 16 Sep 2010)
New Revision: 10515

Modified:
   trunk/src/www/admin/search.php
   trunk/src/www/forum/admin/ForumAdmin.class.php
   trunk/src/www/forum/forum.php
   trunk/src/www/forum/index.php
Log:
Minor fixes

Modified: trunk/src/www/admin/search.php
===================================================================
--- trunk/src/www/admin/search.php	2010-09-16 19:05:13 UTC (rev 10514)
+++ trunk/src/www/admin/search.php	2010-09-16 19:05:18 UTC (rev 10515)
@@ -36,7 +36,7 @@
 $usersearch = getStringFromRequest('usersearch');
 
 if (!$search) {
-	exit_error(_('Error'), _('Refusing to display whole DB,That would display whole DB.  Please use a CLI query if you wish to do this.'));
+	exit_error(_('Error - Refusing to display whole DB. Please use a CLI query if you wish to do this.'));
 }
 
 site_admin_header(array('title'=>_('Admin Search Results')));

Modified: trunk/src/www/forum/admin/ForumAdmin.class.php
===================================================================
--- trunk/src/www/forum/admin/ForumAdmin.class.php	2010-09-16 19:05:13 UTC (rev 10514)
+++ trunk/src/www/forum/admin/ForumAdmin.class.php	2010-09-16 19:05:18 UTC (rev 10515)
@@ -288,7 +288,7 @@
 			}
 			
 			if (count($moderated_forums)==0) {
-				echo $HTML->feedback(_('No forum messages are pending moderation for this group'));
+				echo $HTML->feedback(_('No forums are moderated for this group'));
 				forum_footer(array());
 				exit();
 			}
@@ -299,7 +299,7 @@
 			}
 			
 			echo '
-			<script language="JavaScript" type="text/javascript">
+			<script type="text/javascript">
 		
 			function confirmDel() {
 				var agree=confirm("Proceed? Actions are permanent!");

Modified: trunk/src/www/forum/forum.php
===================================================================
--- trunk/src/www/forum/forum.php	2010-09-16 19:05:13 UTC (rev 10514)
+++ trunk/src/www/forum/forum.php	2010-09-16 19:05:18 UTC (rev 10515)
@@ -143,7 +143,7 @@
 		exit_error(_('Error'),$fh->getErrorMessage());
 	}
 
-	forum_header(array('title'=>$f->getName(),'forum_id'=>$forum_id));
+	forum_header(array('title'=>_('Forum: ') . $f->getName(),'forum_id'=>$forum_id));
 
 /**
  *
@@ -268,7 +268,7 @@
 				show the subject and poster
 			*/
 			$ret_val .= $bold_begin.$msg->getSubject() .$bold_end.'</a></td>'.
-				'<td><a href="/users/'.$msg->getPosterName().'/">'.$msg->getPosterRealName().'</a></td>'.
+				'<td>'.util_display_user($msg->getPosterName(), $msg->getPosterID(), $msg->getPosterRealName()).'</td>'.
 				'<td>'. date(_('Y-m-d H:i'),$msg->getPostDate()) .'</td></tr>';
 
 			if ($msg->hasFollowups()) {
@@ -342,7 +342,7 @@
 						show the subject and poster
 				*/
 				$ret_val .= $bold_begin.$row['subject'] .$bold_end.'</a></td>'.
-					'<td><a href="/users/'.$row['user_name'].'/">'.$row['realname'].'</a></td>'.
+				'<td>'.util_display_user($row['user_name'], $row['user_id'], $row['realname']).'</td>'.
 					'<td>'. $row['followups'] .'</td>'.
 					'<td>'.date(_('Y-m-d H:i'),$row['recent']).'</td></tr>';
 				$i++;

Modified: trunk/src/www/forum/index.php
===================================================================
--- trunk/src/www/forum/index.php	2010-09-16 19:05:13 UTC (rev 10514)
+++ trunk/src/www/forum/index.php	2010-09-16 19:05:18 UTC (rev 10515)
@@ -47,7 +47,6 @@
 	}
 
 	forum_header(array('title'=>sprintf(_('Forums for %1$s'), $g->getPublicName()) ));
-	echo '<h1>'.sprintf(_('Forums for %1$s'), $g->getPublicName()) .'</h1>';
 
 	if ($ff->isError() || count($farr) < 1) {
 		echo '<div class="warning_msg">'.sprintf(_('No Forums Found for %1$s'), $g->getPublicName()) .'</div>';




More information about the Fusionforge-commits mailing list