Created
April 24, 2012 22:20
-
-
Save magicaltrevor/2484281 to your computer and use it in GitHub Desktop.
More incompentency
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
} 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