# HG changeset patch # User Tom Fredrik Blenning Klaussen # Date 1348051352 -7200 # Node ID 9dab5b96b789b5b155229d93a4e1a8609452484e # Parent 60e73809887a7d3c584be576e368d51c01db1398 Clean spurious whitespace. diff -r 60e73809887a -r 9dab5b96b789 common-functions.inc --- a/common-functions.inc Mon May 28 23:13:17 2012 +0200 +++ b/common-functions.inc Wed Sep 19 12:42:32 2012 +0200 @@ -43,10 +43,10 @@ $new_params[$param]=$val; } foreach($new_params as $param => $val) { - if($first) + if($first) $first=0; - else - $out.="&"; + else + $out.="&"; $out.=urlencode($param).'='.urlencode($val); } return $out; diff -r 60e73809887a -r 9dab5b96b789 filters.inc --- 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>/is'; $replacement = "
  • \$3
  • "; - $output=preg_replace_callback($pattern, + $output=preg_replace_callback($pattern, create_function( - '$matches', + '$matches', 'return "
  • $matches[1]))."\">$matches[3]
  • ";' - ), + ), $output); return $output; @@ -29,12 +29,12 @@ $active=($l == $lang)?0:1; $langbar.= "
  • "; - if ($active) + if ($active) $langbar.=''; $langbar.= " \"Norsk"; - if ($active) + if ($active) $langbar.=""; $langbar.= " diff -r 60e73809887a -r 9dab5b96b789 http-response-status-codes.inc --- a/http-response-status-codes.inc Mon May 28 23:13:17 2012 +0200 +++ b/http-response-status-codes.inc Wed Sep 19 12:42:32 2012 +0200 @@ -114,7 +114,7 @@ const HTTP_VERSION_NOT_SUPPORTED = 505; - + private static $messages = array( @@ -212,7 +212,7 @@ ); - + public static function httpHeaderFor($code) { @@ -225,14 +225,14 @@ return self::$messages[$code]; } - + public static function isError($code) { return is_numeric($code) && $code >= self::HTTP_BAD_REQUEST; } - + public static function canHaveBody($code) { @@ -253,4 +253,4 @@ } } -?> +?> \ No newline at end of file