diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-08-03 19:02:06 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-08-03 19:02:06 +0000 |
commit | bc3c2902697f336957d88eda335709b39a5b1cf6 (patch) | |
tree | b23b3c9fb85fccf31ed12f385f5780fb85e2fc6b /modules/node/node.module | |
parent | 6f167edd7cb0501f9684eea45a906e5ce88c4d9f (diff) | |
download | brdo-bc3c2902697f336957d88eda335709b39a5b1cf6.tar.gz brdo-bc3c2902697f336957d88eda335709b39a5b1cf6.tar.bz2 |
- Patch #289796 by cwgordon7 and webchick: killed some exceptions.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 249a53bfe..49cc7aa75 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1006,7 +1006,10 @@ function node_delete($nid) { cache_clear_all(); // Remove this node from the search index if needed. - if (function_exists('search_wipe')) { + // This code is implemented in node module rather than in search module, + // because node module is implementing search module's API, not the other + // way around. + if (module_exists('search')) { search_wipe($node->nid, 'node'); } watchdog('content', '@type: deleted %title.', array('@type' => $node->type, '%title' => $node->title)); |