From 9a3136a5bee66e1055ffb566373952b6054dd7bf Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Tue, 26 May 2015 13:55:05 -0400 Subject: [PATCH] fix enc_ functions for image/thumb parts --- encode.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/encode.php b/encode.php index c09de2a..f5a5622 100644 --- a/encode.php +++ b/encode.php @@ -444,12 +444,12 @@ function wfpl_nth_word($str, $n) { # encoding is a space separated list of: # image_filename width height thumb_filename thumb_width thumb_height -function enc_image_src($str) { wfpl_nth_word($str, 0); } -function enc_image_width($str) { wfpl_nth_word($str, 1); } -function enc_image_height($str) { wfpl_nth_word($str, 2); } -function enc_thumb_src($str) { wfpl_nth_word($str, 3); } -function enc_thumb_width($str) { wfpl_nth_word($str, 4); } -function enc_thumb_height($str) { wfpl_nth_word($str, 5); } +function enc_image_src($str) { return wfpl_nth_word($str, 0); } +function enc_image_width($str) { return wfpl_nth_word($str, 1); } +function enc_image_height($str) { return wfpl_nth_word($str, 2); } +function enc_thumb_src($str) { return wfpl_nth_word($str, 3); } +function enc_thumb_width($str) { return wfpl_nth_word($str, 4); } +function enc_thumb_height($str) { return wfpl_nth_word($str, 5); } # example template: Length: ~length html~ day~length s~ function enc_s($str) { -- 1.7.10.4