Created
April 27, 2016 13:31
-
-
Save Crisfole/5d82040ee20f0d23622ffdae5b450401 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
function isEnabled() { | |
return SHOULD_BE_ENABLED; | |
} | |
function reportMessage(msg) { | |
if (isEnabled()) { | |
Rollbar::report_message(msg); | |
} | |
} | |
if (isEnabled()) { | |
Rollbar::init(config); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment