OSDN Git Service

FIX:引数と関数内で使用している変数名の不一致によりスキン情報が取得できない不具合の修正
authorreine <reine@users.sourceforge.jp>
Tue, 1 May 2012 04:42:52 +0000 (13:42 +0900)
committerreine <reine@users.sourceforge.jp>
Tue, 1 May 2012 05:11:24 +0000 (14:11 +0900)
nucleus/libs/SKIN.php

index 96edee8..b82a1f4 100644 (file)
@@ -388,7 +388,7 @@ class Skin
        public function getContentFromDB($skintype)
        {
                $query = "SELECT scontent FROM %s WHERE sdesc=%d and stype=%s;";
-               $query = sprintf($query, sql_table('skin'), (integer) $this->id, DB::quoteValue($type));
+               $query = sprintf($query, sql_table('skin'), (integer) $this->id, DB::quoteValue($skintype));
                $res = DB::getValue($query);
                
                return $res ? $res : '';