diff filters.inc @ 13:9dab5b96b789

Clean spurious whitespace.
author Tom Fredrik Blenning Klaussen <bfg@blenning.no>
date Wed, 19 Sep 2012 12:42:32 +0200
parents 6c0162497d56
children 511b6514823f
line wrap: on
line diff
--- a/filters.inc	Mon May 28 23:13:17 2012 +0200
+++ b/filters.inc	Wed Sep 19 12:42:32 2012 +0200
@@ -9,11 +9,11 @@
 
 	$pattern = '/<li id="([^"]+)"\s?([^>]*)>(.*?)<\/li>/is';
 	$replacement = "<li id=\"\$1\" \$2><a href=\"%URL-$1%\">\$3</a></li>";
-	$output=preg_replace_callback($pattern, 
+	$output=preg_replace_callback($pattern,
 	create_function(
-	  '$matches', 
+	  '$matches',
 	'return "<li id=\"$matches[1]\" $matches[2]><a href=\"".genUrl(array("name" => $matches[1]))."\">$matches[3]</a></li>";'
-	), 
+	),
 	$output);
 
 	return $output;
@@ -29,12 +29,12 @@
 	   $active=($l == $lang)?0:1;
 	     $langbar.= "
 	    <li class=\"${l}\">";
-	    if ($active) 
+	    if ($active)
 	    $langbar.='<a href="'.genUrl(array( 'lang' => $l)).'">';
 
 	    $langbar.= "
 	      <img src=\"http://dev.bfginvest.no/php/flag.php?lang=${l}&amp;active=${active}\" width=\"20\" height=\"16\" alt=\"Norsk versjon - inaktiv\" title=\"Norsk\"/>";
-	    if ($active) 
+	    if ($active)
 	    $langbar.="</a>";
 
 	      $langbar.= "