Refactor
Refactor getDefaultTemplate function
$modx->config['settings_version']