Skip to content

Commit

Permalink
Fix update page
Browse files Browse the repository at this point in the history
  • Loading branch information
danpros committed Jul 10, 2015
1 parent c3c56d2 commit d702e98
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/admin/views/update.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
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>';
Expand Down
2 changes: 2 additions & 0 deletions system/htmly.php
Original file line number Diff line number Diff line change
Expand Up @@ -1321,6 +1321,8 @@
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> &#187; Update HTMLy'
));
} else {
$login = site_url() . 'login';
Expand Down
1 change: 0 additions & 1 deletion system/upgrade/index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
$config_file = 'config/config.ini';

require 'system/vendor/autoload.php';
require 'system/htmly.php';
1 change: 1 addition & 0 deletions system/upgrade/run.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

$config_file = 'config/config.ini';
config('source', $config_file);

$updater = new Kanti\HubUpdater("danpros/htmly");
Expand Down

0 comments on commit d702e98

Please sign in to comment.