From eb441d7ec11b750fcf9beeb73d620087511d0feb Mon Sep 17 00:00:00 2001 From: novgorodschi catalin Date: Mon, 3 Aug 2026 14:35:12 +0300 Subject: [PATCH] Remove dead code Remove dead code --- GameEngine/Admin/Mods/config_template.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/GameEngine/Admin/Mods/config_template.php b/GameEngine/Admin/Mods/config_template.php index b904100a..d508ce95 100644 --- a/GameEngine/Admin/Mods/config_template.php +++ b/GameEngine/Admin/Mods/config_template.php @@ -147,28 +147,6 @@ if (!function_exists('tz_available_gpacks')) { return $out; } } -################################################################################# -## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## -## --------------------------------------------------------------------------- ## -## Filename config_template.php ## -## Project TravianZ ## -## License TravianZ Project ## -################################################################################# - -// Shared helper for the admin "Server Settings" Mods, which regenerate -// GameEngine/config.php from the constant_format.tpl template. -// -// Issue #322: each Mod used to read the install-time copy -// GameEngine/Admin/Mods/constant_format.tpl. That copy is written once by the -// installer and is gitignored, so a code update NEVER refreshes it. When a new -// line is added to config.php (e.g. the per-user LANG block, issue #166), -// servers installed before that change keep the stale copy and the admin panel -// silently rewrites config.php without the new line. -// -// Fix: prefer the version-controlled template (install/data/constant_format.tpl) -// so shipping a new template via git is enough. Fall back to the install-time -// copy only when the install folder was deleted (a common hardening step once -// setup is done). if (!function_exists('admin_config_template_path')) {