From 7f42492ea33a8d43ee12089b97bd8c0693b293e0 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Tue, 2 Jun 2009 07:19:12 -0400 Subject: [PATCH] added enc_s() --- encode.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/encode.php b/encode.php index 9aa09a6..cd1e0b4 100644 --- a/encode.php +++ b/encode.php @@ -370,3 +370,12 @@ function enc_thumb_height($str) { list($a, $b, $c, $src, $width, $height) = explode(' ', $str); return $height; } + +# example template: Length: ~length.html~ day~length.s~ +function enc_s($str) { + if($str == '1') { + return ''; + } + + return 's'; +} -- 1.7.10.4