Skip to content

Instantly share code, notes, and snippets.

@greg-1-anderson
Created August 7, 2015 02:17
Show Gist options
  • Save greg-1-anderson/a57271f74981de32b878 to your computer and use it in GitHub Desktop.
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
<?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