summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/node.module6
-rw-r--r--modules/node/node.module6
2 files changed, 8 insertions, 4 deletions
diff --git a/modules/node.module b/modules/node.module
index 90309765c..0ea3c0405 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -1435,8 +1435,10 @@ function node_delete($edit) {
// Clear the cache so an anonymous poster can see the node being deleted.
cache_clear_all();
- // Remove this node from the search index
- search_wipe($node->nid, 'node');
+ // Remove this node from the search index if needed.
+ if (function_exists('search_wipe')) {
+ search_wipe($node->nid, 'node');
+ }
watchdog('special', t('%type: deleted %title.', array('%type' => '<em>'. t($node->type) .'</em>', '%title' => "<em>$node->title</em>")));
$output = t('The node has been deleted.');
diff --git a/modules/node/node.module b/modules/node/node.module
index 90309765c..0ea3c0405 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1435,8 +1435,10 @@ function node_delete($edit) {
// Clear the cache so an anonymous poster can see the node being deleted.
cache_clear_all();
- // Remove this node from the search index
- search_wipe($node->nid, 'node');
+ // Remove this node from the search index if needed.
+ if (function_exists('search_wipe')) {
+ search_wipe($node->nid, 'node');
+ }
watchdog('special', t('%type: deleted %title.', array('%type' => '<em>'. t($node->type) .'</em>', '%title' => "<em>$node->title</em>")));
$output = t('The node has been deleted.');