Browse Source

Trying to remove install.php after update

pull/440/head
danpros 4 years ago
parent
commit
017f6e4c26
3 changed files with 8 additions and 3 deletions
  1. +6
    -1
      system/admin/views/updated-to.html.php
  2. +1
    -1
      system/upgrade/index.php
  3. +1
    -1
      system/upgrade/run.php

+ 6
- 1
system/admin/views/updated-to.html.php View File

@ -2,4 +2,9 @@
<h3>Updated to<h3> <h3>Updated to<h3>
<h2>[<?php echo $info['tag_name']; ?>] <?php echo $info['name']; ?></h2> <h2>[<?php echo $info['tag_name']; ?>] <?php echo $info['name']; ?></h2>
<p><?php echo \Michelf\MarkdownExtra::defaultTransform($info['body']); ?></p> <p><?php echo \Michelf\MarkdownExtra::defaultTransform($info['body']); ?></p>
<?php require_once "system/upgrade/run.php"; ?>
<?php require_once "system/upgrade/run.php"; ?>
<?php
if (file_exists('install.php')) {
unlink('install.php');
}
?>

+ 1
- 1
system/upgrade/index.php View File

@ -1,5 +1,5 @@
<?php <?php
if (!defined('HTMLY')) die('HTMLy');
$config_file = 'config/config.ini'; $config_file = 'config/config.ini';
require 'system/vendor/autoload.php'; require 'system/vendor/autoload.php';
require 'system/htmly.php'; require 'system/htmly.php';

+ 1
- 1
system/upgrade/run.php View File

@ -1,5 +1,5 @@
<?php <?php
if (!defined('HTMLY')) die('HTMLy');
config('source', 'config/config.ini'); config('source', 'config/config.ini');
$updater = new Kanti\HubUpdater("danpros/htmly"); $updater = new Kanti\HubUpdater("danpros/htmly");


Loading…
Cancel
Save