mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-09 21:01:00 +00:00
Remove dead code
Remove dead code
This commit is contained in:
@@ -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')) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user