Skip to content

Instantly share code, notes, and snippets.

@vanilla-thunder
Created November 16, 2016 09:29
Show Gist options
  • Save vanilla-thunder/e4ffa7e2aba1145a6ee7d3ecf98b398e to your computer and use it in GitHub Desktop.
Save vanilla-thunder/e4ffa7e2aba1145a6ee7d3ecf98b398e to your computer and use it in GitHub Desktop.
gently removing module IDs from aDisabledModules (should also work for other module caches) in OXID eShop
$aDisabledModules = $cfg->getConfigParam("aDisabledModules");
print_r($aDisabledModules);
if(($key = array_search("moduleid", $aDisabledModules)) !== false) unset($aDisabledModules[$key]);
print_r($aDisabledModules);
$cfg->saveShopConfVar('aDisabledModules', $aDisabledModules, 'arr');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment