Skip to content

Instantly share code, notes, and snippets.

@masugadesign
Last active August 29, 2015 14:06
Show Gist options
  • Save masugadesign/462b059d21d0cb0ec93f to your computer and use it in GitHub Desktop.
Save masugadesign/462b059d21d0cb0ec93f to your computer and use it in GitHub Desktop.
# Does not include 'cp', which isn't present on the CP landing page.
# The SCRIPT_NAME will output 'mysystemdir/index.php' when in the control panel.
# I always set the system folder as a variable at the top of our config, because
# it is used in a few places.
$system_folder = 'mysystemdir';
$config['show_profiler'] = (strpos($_SERVER['SCRIPT_NAME'], $system_folder) !== false) ? 'n' : 'y';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment