[Evolvis-commits] r213: revert to r210↵

mirabilos at evolvis.org mirabilos at evolvis.org
Wed Nov 25 14:48:50 CET 2009


Author: mirabilos
Date: 2009-11-25 13:48:50 +0000 (Wed, 25 Nov 2009)
New Revision: 213

Modified:
   trunk/gforge_base/gforge-4.8.1+evolvis/plugins/mediawiki/mediawiki-skin/FusionForge.php
Log:
revert to r210


Modified: trunk/gforge_base/gforge-4.8.1+evolvis/plugins/mediawiki/mediawiki-skin/FusionForge.php
===================================================================
--- trunk/gforge_base/gforge-4.8.1+evolvis/plugins/mediawiki/mediawiki-skin/FusionForge.php	2009-11-25 11:09:12 UTC (rev 212)
+++ trunk/gforge_base/gforge-4.8.1+evolvis/plugins/mediawiki/mediawiki-skin/FusionForge.php	2009-11-25 13:48:50 UTC (rev 213)
@@ -1,10 +1,4 @@
 <?php
-// $Id$
-
-function ifsetor(&$val, $default = false) {
-	return (isset($val) ? $val : $default);
-}
-
 /**
  * FusionForge theme for Mediawiki
  */
@@ -89,7 +83,7 @@
 
 <body <?php if($this->data['body_ondblclick']) { ?>ondblclick="<?php $this->text('body_ondblclick') ?>"<?php } ?>
 <?php if($this->data['body_onload'    ]) { ?>onload="<?php     $this->text('body_onload')     ?>"<?php } ?>
- class="<?php if (ifsetor($this->data['nsclass']) { $this->text('nsclass') } ?> <?php $this->text('dir') ?>">
+ class="<?php $this->text('nsclass') ?> <?php $this->text('dir') ?>">
 
 	<div id="globalWrapper">
 		<div id="column-content">
@@ -122,11 +116,11 @@
 			$this->data['personal_urls']['logout']=array();
 			foreach($this->data['personal_urls'] as $key => $item) { ?>
 				<li id="pt-<?php echo htmlspecialchars($key) ?>"<?php
-					if (ifsetor($item['active'])) { ?> class="active"<?php } ?>><a href="<?php
-				echo htmlspecialchars(ifsetor($item['href'], "")) ?>"<?php
+					if ($item['active']) { ?> class="active"<?php } ?>><a href="<?php
+				echo htmlspecialchars($item['href']) ?>"<?php
 				if(!empty($item['class'])) { ?> class="<?php
 				echo htmlspecialchars($item['class']) ?>"<?php } ?>><?php
-				echo htmlspecialchars(ifsetor($item['text'], "")) ?></a></li>
+				echo htmlspecialchars($item['text']) ?></a></li>
 <?php			} ?>
 			</ul>
 		</div>
@@ -266,7 +260,7 @@
 			'privacy', 'about', 'disclaimer', 'tagline',
 		);
 		foreach( $footerlinks as $aLink ) {
-			if( ifsetor($this->data[$aLink]) ) {
+			if( $this->data[$aLink] ) {
 ?>				<li id="<?php echo$aLink?>"><?php $this->html($aLink) ?></li>
 <?php 		}
 		}


Property changes on: trunk/gforge_base/gforge-4.8.1+evolvis/plugins/mediawiki/mediawiki-skin/FusionForge.php
___________________________________________________________________
Name: svn:keywords
   - Author CVSHeader Date Id LastChangedBy LastChangedDate LastChangedRevision Log Revision Source State




More information about the evolvis-commits mailing list