-
-
Save Fi1osof/46b1b9bdc97f6d661903 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if( | |
$modx->context->key == 'mgr' | |
OR !$modx->hasPermission('Debug') | |
){ | |
return; | |
} | |
$version = "v3.1"; | |
$pre_template = "skins/v2"; | |
$cache_prefix = $modx->getOption('cache_prefix'); | |
$modx->setOption('cache_prefix', "{$cache_prefix}new_version_". $version); | |
$modx->setOption('modxSmarty.template', $version); | |
$modx->setOption('modxSmarty.pre_template', $pre_template); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment