Basic suupport for autoupdate-plugin (#98)
This commit is contained in:
parent
560b5d8165
commit
8894f82477
@ -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)
|
||||
|
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user