Commit 4e350604 authored by Dries's avatar Dries

- Patch 42591 by Simon/me: fixed problem with deleting forum and book revisions.

parent 89e89a3b
......@@ -470,7 +470,7 @@ function book_nodeapi(&$node, $op, $teaser, $page) {
}
}
break;
case 'revision delete':
case 'delete revision':
db_query('DELETE FROM {book} WHERE vid = %d', $node->vid);
break;
}
......
......@@ -470,7 +470,7 @@ function book_nodeapi(&$node, $op, $teaser, $page) {
}
}
break;
case 'revision delete':
case 'delete revision':
db_query('DELETE FROM {book} WHERE vid = %d', $node->vid);
break;
}
......
......@@ -76,7 +76,7 @@ function forum_perm() {
*/
function forum_nodeapi(&$node, $op, $teaser, $page) {
switch ($op) {
case 'revision delete':
case 'delete revision':
db_query('DELETE FROM {forum} WHERE vid = %d', $node->vid);
break;
}
......
......@@ -76,7 +76,7 @@ function forum_perm() {
*/
function forum_nodeapi(&$node, $op, $teaser, $page) {
switch ($op) {
case 'revision delete':
case 'delete revision':
db_query('DELETE FROM {forum} WHERE vid = %d', $node->vid);
break;
}
......
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