Basic suupport for autoupdate-plugin (#98)

This commit is contained in:
onli 2014-07-13 13:07:17 +02:00
parent 560b5d8165
commit 8894f82477
2 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,8 @@ $data['usedVersion'] = $serendipity['version'];
$data['updateCheck'] = $serendipity['updateCheck'];
$data['curVersion'] = serendipity_getCurrentVersion();
$data['update'] = version_compare($data['usedVersion'], $data['curVersion'], '<');
serendipity_plugin_api::hook_event('plugin_dashboard_updater', $output);
$data['updateButton'] = $output;
$comments = serendipity_db_query("SELECT c.*, e.title FROM {$serendipity['dbPrefix']}comments c
LEFT JOIN {$serendipity['dbPrefix']}entries e ON (e.id = c.entry_id)

View File

@ -28,6 +28,7 @@
<h3>{$CONST.UPDATE_NOTIFICATION}</h3>
<span class="msg_notice"><span class="icon-info-circled"></span> {$CONST.NEW_VERSION_AVAILABLE} {$curVersion}</span>
{$updateButton}
</section>
{/if}
{/if}