diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-08-20 19:03:59 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-08-20 19:03:59 +0000 |
commit | 70179807c65530f5c4296d4499d060e4b6a9aa92 (patch) | |
tree | 77cf77925859af55db75b2f574b35b1a60b00c5e | |
parent | 05f22fb61d706396cf6e71a851e1bcd3adef1380 (diff) | |
download | brdo-70179807c65530f5c4296d4499d060e4b6a9aa92.tar.gz brdo-70179807c65530f5c4296d4499d060e4b6a9aa92.tar.bz2 |
- Patch #61636 by justin: fixed problem with reverting revisions. Taxonomy.module is optional.
-rw-r--r-- | modules/node/node.module | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index bf1eb4348..3f02171e7 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1588,7 +1588,9 @@ function node_revision_revert($nid, $revision) { if ($node->vid) { $node->revision = 1; $node->log = t('Copy of the revision from %date.', array('%date' => format_date($node->revision_timestamp))); - $node->taxonomy = array_keys($node->taxonomy); + if (module_exists('taxonomy')) { + $node->taxonomy = array_keys($node->taxonomy); + } node_save($node); |