diff --git a/src/lib/Smr/Alliance.php b/src/lib/Smr/Alliance.php index eba9aebb1..8d3f76794 100644 --- a/src/lib/Smr/Alliance.php +++ b/src/lib/Smr/Alliance.php @@ -40,6 +40,10 @@ class Alliance { public const RECRUIT_CLOSED = 'closed'; public const RECRUIT_PASSWORD = 'password'; + // Database constraints + public const MAXLENGTH_NAME = 36; // varchar(36) + public const MAXLENGTH_DESCRIPTION = 255; // varchar(255) + public static function clearCache(): void { self::$CACHE_ALLIANCES = []; } diff --git a/src/templates/Default/engine/Default/alliance_create.php b/src/templates/Default/engine/Default/alliance_create.php index 54511e389..2c5fd9cf9 100644 --- a/src/templates/Default/engine/Default/alliance_create.php +++ b/src/templates/Default/engine/Default/alliance_create.php @@ -11,11 +11,11 @@ - + - + diff --git a/src/templates/Default/engine/Default/alliance_stat.php b/src/templates/Default/engine/Default/alliance_stat.php index debcec274..9a0f236eb 100644 --- a/src/templates/Default/engine/Default/alliance_stat.php +++ b/src/templates/Default/engine/Default/alliance_stat.php @@ -36,7 +36,7 @@ if ($CanChangeDescription) { ?> - +
Name:
Description:
Members start with:   
Description: Description: