Skip to content

Instantly share code, notes, and snippets.

@Fi1osof
Created January 27, 2015 09:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fi1osof/46b1b9bdc97f6d661903 to your computer and use it in GitHub Desktop.
Save Fi1osof/46b1b9bdc97f6d661903 to your computer and use it in GitHub Desktop.
<?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