Mercurial > SimpleWebPresenter
changeset 13:9dab5b96b789
Clean spurious whitespace.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Wed, 19 Sep 2012 12:42:32 +0200 |
| parents | 60e73809887a |
| children | 91ee5f49907e |
| files | common-functions.inc filters.inc http-response-status-codes.inc |
| diffstat | 3 files changed, 13 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- 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;
--- 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}&active=${active}\" width=\"20\" height=\"16\" alt=\"Norsk versjon - inaktiv\" title=\"Norsk\"/>"; - if ($active) + if ($active) $langbar.="</a>"; $langbar.= "
--- 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
