Skip to content

Commit

Permalink
Process comment syntax on anything that isn't "preview". DW doesn't
Browse files Browse the repository at this point in the history
dispatch the "save" action anymore upon saving a wikipage, so we can't
just rely on that. Closes #14
  • Loading branch information
foosel committed Jul 1, 2010
1 parent 310210d commit 2eddb74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function handle($match, $state, $pos, &$handler) {
else if ($match == ':closed') $status = 2;
else $status = 1;

if ($ACT !== 'save') return $status;
if ($ACT == 'preview') return;

// get discussion meta file name
$file = metaFN($ID, '.comments');
Expand Down

0 comments on commit 2eddb74

Please sign in to comment.