mirror of
https://github.com/danpros/htmly.git
synced 2026-04-21 04:56:23 +05:30
Fix update page
This commit is contained in:
parent
c3c56d293e
commit
d702e982de
4 changed files with 4 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ $updater = new HubUpdater(array(
|
|||
if ($updater->able()) {
|
||||
$info = $updater->getNewestInfo();
|
||||
echo '<h3>Update Available</h3>';
|
||||
echo '<p><a href="' . $base . 'admin/update/now/' . $CSRF . '" alt="' . $info['name'] . '">Update to ' . $info['tag_name'] . '</a></p>';
|
||||
echo '<p><a href="' . site_url() . 'admin/update/now/' . $CSRF . '" alt="' . $info['name'] . '">Update to ' . $info['tag_name'] . '</a></p>';
|
||||
} else {
|
||||
echo '<h3>No Available Update</h3>';
|
||||
echo '<p>You are using the latest HTMLy version.</p>';
|
||||
|
|
|
|||
|
|
@ -1321,6 +1321,8 @@ get('/admin/update/now/:csrf', function ($CSRF) {
|
|||
render('updated-to', array(
|
||||
'head_contents' => head_contents('Updated - ' . blog_title(), blog_description(), site_url()),
|
||||
'info' => $updater->getCurrentInfo(),
|
||||
'bodyclass' => 'updatepage',
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » Update HTMLy'
|
||||
));
|
||||
} else {
|
||||
$login = site_url() . 'login';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
$config_file = 'config/config.ini';
|
||||
|
||||
require 'system/vendor/autoload.php';
|
||||
require 'system/htmly.php';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
|
||||
$config_file = 'config/config.ini';
|
||||
config('source', $config_file);
|
||||
|
||||
$updater = new Kanti\HubUpdater("danpros/htmly");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue