Hi, first - thanks very much for this module, it's exactly what I needed!

I have one slight bug in the code. In revision_moderation.module file, line #314 the table name is not enclosed in {}, so in the case someone uses table prefix string, the publishing of the revisions fails:
db_query("UPDATE node SET vid = %d, title = '%s' WHERE nid = %d", $vid, $node->title, $nid);
should be:
db_query("UPDATE {node} SET vid = %d, title = '%s' WHERE nid = %d", $vid, $node->title, $nid);

Thanks, B.

Comments

webchick’s picture

Status: Active » Fixed

Oops! Thanks, fixed.

Anonymous’s picture

Status: Fixed » Closed (fixed)