diff --git a/hwe/func_template.php b/hwe/func_template.php index e712dfa7..c313a3a0 100644 --- a/hwe/func_template.php +++ b/hwe/func_template.php @@ -101,7 +101,7 @@ function commandButton() { $db = DB::db(); $me = $db->queryFirstRow("select no,nation,level,belong from general where owner=%i", $userID); - $nation = $db->queryFirstRow("select nation,color,secretlimit from nation where nation=%i",$me['nation']); + $nation = $db->queryFirstRow("select nation,level,color,secretlimit from nation where nation=%i",$me['nation']); if($nation['color'] == "") { $nation['color'] = "#000000"; } @@ -125,6 +125,7 @@ function commandButton() { 'bgColor'=>$bgColor, 'fgColor'=>$fgColor, 'meLevel'=>$me['level'], + 'nationLevel'=>$nation['level'], 'showSecret'=>$showSecret ]); } diff --git a/hwe/templates/commandButton.php b/hwe/templates/commandButton.php index 9a0c1585..583aa89c 100644 --- a/hwe/templates/commandButton.php +++ b/hwe/templates/commandButton.php @@ -2,8 +2,8 @@