Skip to content

Commit

Permalink
dashboard - draft preview link was missing token
Browse files Browse the repository at this point in the history
  • Loading branch information
ophian committed Sep 20, 2013
1 parent 2a35c56 commit 93ec77c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions serendipity_event_dashboard/ChangeLog
@@ -1,3 +1,7 @@
0.6.8:
----
* fixed: draft preview link missing token

0.6.7:
----
* fixed: 1.6 is older than 1.6.2, didn't check all digits
Expand Down
4 changes: 2 additions & 2 deletions serendipity_event_dashboard/serendipity_event_dashboard.php
Expand Up @@ -27,7 +27,7 @@ function introspect(&$propbag) {
'php' => '4.1.0'
));

$propbag->add('version', '0.6.7');
$propbag->add('version', '0.6.8');
$propbag->add('author', 'Garvin Hicking');
$propbag->add('stackable', false);
$propbag->add('configuration', array('read_only', 'limit_draft', 'limit_comments', 'limit_comments_pending', 'limit_future', 'sequence', 'update'));
Expand Down Expand Up @@ -344,7 +344,7 @@ function showElementEntrylist($filter = array(), $limit = 0) {
</td>
<td align="right">
<?php if (serendipity_db_bool($entry['isdraft']) || (!$serendipity['showFutureEntries'] && $entry['timestamp'] >= serendipity_serverOffsetHour())) { ?>
<a target="_blank" href="<?php echo $entry['preview_link']; ?>" title="<?php echo PREVIEW . ' #' . $entry['id']; ?>" class="serendipityIconLink"><img src="<?php echo serendipity_getTemplateFile('admin/img/zoom.png'); ?>" alt="<?php echo PREVIEW; ?>" /><?php echo PREVIEW ?></a>
<a target="_blank" href="<?php echo $entry['preview_link']; ?>&amp;<?php echo serendipity_setFormToken('url'); ?>" title="<?php echo PREVIEW . ' #' . $entry['id']; ?>" class="serendipityIconLink"><img src="<?php echo serendipity_getTemplateFile('admin/img/zoom.png'); ?>" alt="<?php echo PREVIEW; ?>" /><?php echo PREVIEW ?></a>
<?php } else { ?>
<a target="_blank" href="<?php echo $entry['link']; ?>" title="<?php echo VIEW . ' #' . $entry['id']; ?>" class="serendipityIconLink"><img src="<?php echo serendipity_getTemplateFile('admin/img/zoom.png'); ?>" alt="<?php echo VIEW; ?>" /><?php echo VIEW ?></a>
<?php } ?>
Expand Down

0 comments on commit 93ec77c

Please sign in to comment.