Commit b2c7578d authored by anarcat's avatar anarcat

1132514 - fix deploy in Drupal 5

we were relying on a function present only in D6 (node_access_needs_rebuild()) - if it is not present, we'll rebuild the node_access tables anyways
parent 72d54cc4
......@@ -147,7 +147,7 @@ function drush_provision_drupal_post_provision_deploy() {
_provision_drupal_rebuild_caches();
// rebuild the node access tables only if necessary
if (node_access_needs_rebuild()) {
if (!function_exists("node_access_needs_rebuild") || node_access_needs_rebuild()) {
node_access_rebuild();
drush_log(t('Rebuilt node access table'));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment