fix: Resolve [site_name] and all placeholders in checkDir AJAX #126
Reference in New Issue
Block a user
Delete Branch "fix/site-name-resolution"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The checkDir AJAX endpoint only resolved [HOME] and [DEFAULT_DIR] via BackupDirectory::resolve(). Placeholders like [site_name], [host], [profile_id] were left as literal text, causing the status to show "Uses placeholders" and the resolved path to contain unresolved tokens.
Now uses PlaceholderResolver to resolve all placeholders before checking directory existence. If a profile_id is passed in the request, uses that profile for accurate resolution.