Created
March 7, 2013 21:16
-
-
Save Pross/5111864 to your computer and use it in GitHub Desktop.
You MUST add this to cron.php:
define( 'CRMCRON', true );
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 | |
// Add this to wp-content/mu-plugins/crm.php | |
if( class_exists( 'CRM_Utils_System_WordPress' ) ) { | |
class Fix_CRM_Cron extends CRM_Utils_System_WordPress { | |
function __construct() { | |
if( ! defined( 'CRMCRON' ) ) | |
return; | |
add_filter('template', array( &$this, 'change_theme') ); | |
add_filter('option_template', array( &$this, 'change_theme') ); | |
add_filter('option_stylesheet', array( &$this, 'change_theme') ); | |
} | |
function change_theme() { | |
// Alternate theme | |
return 'twentyten'; | |
} | |
} | |
} | |
new Fix_CRM_Cron; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment