Created
August 7, 2015 02:17
-
-
Save greg-1-anderson/a57271f74981de32b878 to your computer and use it in GitHub Desktop.
Disable wysiwyg profiles when running with the php built-in webserver to avoid problems
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
<?php | |
// When running via the php built-in webserver, disable wysiwyg profiles | |
function mycustommodule_boot() { | |
if (php_sapi_name() == 'cli-server') { | |
cache_set('wysiwyg_profiles', array()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment