From 12e55bb97fb0428851f8d74ad20acec54b9fed15 Mon Sep 17 00:00:00 2001 From: printempw Date: Sun, 27 Mar 2016 17:19:41 +0800 Subject: [PATCH] fixed bug of default steve skin when model preference is alex --- templates/preview.tpl.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/templates/preview.tpl.php b/templates/preview.tpl.php index 2f5cd0ce..c9072d21 100644 --- a/templates/preview.tpl.php +++ b/templates/preview.tpl.php @@ -1,8 +1,15 @@
-

Steve 模型的皮肤:getTexture('steve'); ?>" />

+

Steve 模型的皮肤:getTexture('steve') != "") { + echo 'src = "../textures/'.$data['user']->getTexture('steve').'"'; + } else { + echo 'src = "'.$unuploaded_img.'"'; + } ?> + />

+

Alex 模型的皮肤:getTexture('alex') != "") { echo 'src = "../textures/'.$data['user']->getTexture('alex').'"';