Skip to content

Instantly share code, notes, and snippets.

@magicaltrevor
Created April 24, 2012 22:20
Show Gist options
  • Save magicaltrevor/2484281 to your computer and use it in GitHub Desktop.
Save magicaltrevor/2484281 to your computer and use it in GitHub Desktop.
More incompentency
} elseif (isset($_SERVER['SOME_GLOBAL_VARIABLE'])) {
$default_context = $_SERVER['SOME_GLOBAL_VARIABLE'];
self::log('Found SERVER SOME_GLOBAL_VARIABLE');
} elseif (isset($_ENV['SOME_GLOBAL_VARIABLE'])) {
$default_content = $_ENV['SOME_GLOBAL_VARIABLE'];
self::log('Found ENV SOME_GLOBAL_VARIABLE');
} else {
...
if ($default_context == 'search' || $default_content == 'api') {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment