[evolvis-commits] r6545: put group name into <title> header (in mediawiki plugin too) ↵

Thorsten Glaser t.glaser at tarent.de
Tue Apr 20 16:15:55 CEST 2010


Author: Thorsten Glaser <t.glaser at tarent.de>
Date: 2010-04-20 16:15:55 +0200 (Tue, 20 Apr 2010)
New Revision: 6545

Modified:
   trunk/gforge_base/evolvisforge/gforge/debian/changelog
   trunk/gforge_base/evolvisforge/gforge/plugins/mediawiki/mediawiki-skin/FusionForge.php
Log:
put group name into <title> header (in mediawiki plugin too)


Modified: trunk/gforge_base/evolvisforge/gforge/debian/changelog
===================================================================
--- trunk/gforge_base/evolvisforge/gforge/debian/changelog	2010-04-20 14:15:51 UTC (rev 6544)
+++ trunk/gforge_base/evolvisforge/gforge/debian/changelog	2010-04-20 14:15:55 UTC (rev 6545)
@@ -2,8 +2,9 @@
 
   * gf-p-mediawiki: default to enabling file uploads; [TTID# 1003495]
   * Add $sys_hudson_base (default: empty)
+  * gf-p-mw: put group name into <title> header
 
- -- Thorsten Glaser <tg at mirbsd.de>  Mon, 19 Apr 2010 14:43:32 +0200
+ -- Thorsten Glaser <t.glaser at tarent.de>  Mon, 19 Apr 2010 16:41:21 +0200
 
 gforge (4.8.3+evolvis4) unstable; urgency=low
 

Modified: trunk/gforge_base/evolvisforge/gforge/plugins/mediawiki/mediawiki-skin/FusionForge.php
===================================================================
--- trunk/gforge_base/evolvisforge/gforge/plugins/mediawiki/mediawiki-skin/FusionForge.php	2010-04-20 14:15:51 UTC (rev 6544)
+++ trunk/gforge_base/evolvisforge/gforge/plugins/mediawiki/mediawiki-skin/FusionForge.php	2010-04-20 14:15:55 UTC (rev 6545)
@@ -77,6 +77,15 @@
 		// Suppress warnings to prevent notices about missing indexes in $this->data
 		wfSuppressWarnings();
 
+        	$project=group_get_object_by_name($GLOBALS['fusionforgeproject']);
+		$extratitle = "";
+        	if ($project) {
+			$GLOBALS['group_id']=$project->getID();
+                	$params['group']=$GLOBALS['group_id'];
+                	$params['toptab']='mediawiki';
+			$extratitle = ": " . $project->getPublicName();
+		}
+
 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="<?php $this->text('xhtmldefaultnamespace') ?>" <?php
 	foreach($this->data['xhtmlnamespaces'] as $tag => $ns) {
@@ -85,7 +94,7 @@
 	<head>
 		<meta http-equiv="Content-Type" content="<?php $this->text('mimetype') ?>; charset=<?php $this->text('charset') ?>" />
 		<?php $this->html('headlinks') ?>
-		<title><?php $this->text('pagetitle') ?></title>
+		<title><?php $this->text('pagetitle'); echo $extratitle; ?></title>
         	<!-- FUSIONFORGE Stylesheet BEGIN -->
 		<?php if (!$GLOBALS['sys_use_mwframe']){ $GLOBALS['HTML']->headerCSS(); } ?>
         	<!-- FUSIONFORGE Stylesheet END -->
@@ -122,11 +131,7 @@
         <!-- FUSIONFORGE BodyHeader BEGIN -->
         <?php
 	if (!$GLOBALS['sys_use_mwframe']){
-        	$project=group_get_object_by_name($GLOBALS['fusionforgeproject']);
         	if ($project) {
-			$GLOBALS['group_id']=$project->getID();
-                	$params['group']=$GLOBALS['group_id'];
-                	$params['toptab']='mediawiki';
                 	$GLOBALS['HTML']->bodyHeader($params);
         	}
 	}




More information about the evolvis-commits mailing list