JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added enc_s()
authorJason Woofenden <jason283@herkamire.com>
Tue, 2 Jun 2009 11:19:12 +0000 (07:19 -0400)
committerJason Woofenden <jason283@herkamire.com>
Tue, 2 Jun 2009 11:19:12 +0000 (07:19 -0400)
encode.php

index 9aa09a6..cd1e0b4 100644 (file)
@@ -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';
+}