added token to support the preview link in backend entries
This commit is contained in:
22
docs/NEWS
22
docs/NEWS
@ -4,17 +4,19 @@
|
||||
Version 1.7 ()
|
||||
------------------------------------------------------------------------
|
||||
|
||||
* Allow Smarty to fetch .tpl files from all directories so that
|
||||
s9y plugin can use the fetch() call for their .tpl files no
|
||||
matter which (symlinked) directory the plugin resides in.
|
||||
The Smarty security policy to us only serves as a restriction
|
||||
within .tpl files to not allow arbitrary PHP modifier/function calls.
|
||||
If in the future Smarty supports enforcing trustedDir checks on
|
||||
{include} calls seperately to smarty->fetch() calls, we'll also
|
||||
add that to .tpl files.
|
||||
(garvinhicking)
|
||||
* fixed draft & future entries preview link in backend
|
||||
|
||||
* Allow Smarty to fetch .tpl files from all directories so that
|
||||
s9y plugin can use the fetch() call for their .tpl files no
|
||||
matter which (symlinked) directory the plugin resides in.
|
||||
The Smarty security policy to us only serves as a restriction
|
||||
within .tpl files to not allow arbitrary PHP modifier/function calls.
|
||||
If in the future Smarty supports enforcing trustedDir checks on
|
||||
{include} calls seperately to smarty->fetch() calls, we'll also
|
||||
add that to .tpl files.
|
||||
(garvinhicking)
|
||||
|
||||
* Patch by Markus Brükner: Properly handle files that have no
|
||||
* Patch by Markus Brükner: Properly handle files that have no
|
||||
extension in media database
|
||||
|
||||
* Made Spartacus recognize github.com mirror (garvinhicking)
|
||||
|
@ -284,7 +284,7 @@ function serendipity_drawList() {
|
||||
</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']; ?>&<?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 } ?>
|
||||
|
Reference in New Issue
Block a user