mirror of
https://github.com/danpros/htmly.git
synced 2026-04-23 05:56:22 +05:30
Update version + cleaning up
This commit is contained in:
parent
33a29d1b2c
commit
5226e9c01c
33 changed files with 56 additions and 38 deletions
|
|
@ -1,6 +1,13 @@
|
|||
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
|
||||
<h2><?php echo i18n('General_Settings')?></h2>
|
||||
<br>
|
||||
<?php
|
||||
if (config('show.version') == 'false') {
|
||||
if(file_exists('cache/installedVersion.json')) {
|
||||
unlink('cache/installedVersion.json');
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php if (!extension_loaded('intl')) { ?>
|
||||
<div class="callout callout-info">
|
||||
<h5><i class="fa fa-info"></i> Note:</h5>
|
||||
|
|
@ -157,7 +164,7 @@ Please install and enable the INTL extension to format the date format to your l
|
|||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<small><em><?php echo i18n('explain_version');?></em></small>
|
||||
<small><em><?php echo i18n('explain_version');?></em></small>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
|
|
|
|||
|
|
@ -54,5 +54,10 @@ if (empty($updater->getNewestInfo())) {
|
|||
echo \Michelf\MarkdownExtra::defaultTransform($info['body']);
|
||||
echo '</div>';
|
||||
echo '<p><a class="btn btn-primary" target="_blank" href="' . $info['html_url'] . '">Read on Github</a></p>';
|
||||
if (config('show.version') == 'false') {
|
||||
if(file_exists('cache/installedVersion.json')) {
|
||||
unlink('cache/installedVersion.json');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,4 +5,9 @@
|
|||
if (file_exists('install.php')) {
|
||||
unlink('install.php');
|
||||
}
|
||||
?>
|
||||
if (config('show.version') == 'false') {
|
||||
if(file_exists('cache/installedVersion.json')) {
|
||||
unlink('cache/installedVersion.json');
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue