diff --git a/.htaccess.sample b/.htaccess.sample index 21a953ed5f2b5d608c20f558c31dbcd5175a6a52..92a50e2df4b8ea244447b3cb47dd44e3af3a711a 100644 --- a/.htaccess.sample +++ b/.htaccess.sample @@ -65,6 +65,7 @@ DirectoryIndex index.php index.html index.htm # THIS SECTION IS AUTOMATICALY GENERATED. # DO NOT EDIT!!!! + RewriteRule .*/cron cron.php RewriteRule .*/update.php update.php # %UNL_CREATION_TOOL_STUB% diff --git a/cron.php b/cron.php index 91e6f9573aebd19d3d804ab0a38b231a5e700f5c..41b9d11d05c6eb61563a5d431047a1f2b3883836 100644 --- a/cron.php +++ b/cron.php @@ -11,7 +11,9 @@ */ define('DRUPAL_ROOT', getcwd()); +include_once DRUPAL_ROOT . '/includes/unl_bootstrap.inc'; include_once DRUPAL_ROOT . '/includes/bootstrap.inc'; +unl_bootstrap(); drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); if (!isset($_GET['cron_key']) || variable_get('cron_key', 'drupal') != $_GET['cron_key']) {