mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
Some improvements for updater (#1475)
* Some improvements for updater * Update CHANGELOG.md
This commit is contained in:
parent
30df72e331
commit
e7782e34e6
5 changed files with 7 additions and 4 deletions
|
@ -6,7 +6,7 @@
|
||||||
**Merged pull requests:**
|
**Merged pull requests:**
|
||||||
|
|
||||||
- Release 2.4.3 🐎 ([belomaxorka](https://github.com/belomaxorka))
|
- Release 2.4.3 🐎 ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Added updates checker ⚙️ [\#1451](https://github.com/torrentpier/torrentpier/pull/1451) ([belomaxorka](https://github.com/belomaxorka))
|
- Added updates checker ⚙️ [\#1451](https://github.com/torrentpier/torrentpier/pull/1451), [\#1475](https://github.com/torrentpier/torrentpier/pull/1475) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Added preview for country flags while editing [\#1448](https://github.com/torrentpier/torrentpier/pull/1448) ([belomaxorka](https://github.com/belomaxorka))
|
- Added preview for country flags while editing [\#1448](https://github.com/torrentpier/torrentpier/pull/1448) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Added support for APCu caching method [\#1442](https://github.com/torrentpier/torrentpier/pull/1442) ([belomaxorka](https://github.com/belomaxorka))
|
- Added support for APCu caching method [\#1442](https://github.com/torrentpier/torrentpier/pull/1442) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Added support for attribute to ignoring auto spoilers opening [\#1466](https://github.com/torrentpier/torrentpier/pull/1466) ([belomaxorka](https://github.com/belomaxorka))
|
- Added support for attribute to ignoring auto spoilers opening [\#1466](https://github.com/torrentpier/torrentpier/pull/1466) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
|
|
|
@ -87,7 +87,8 @@ if (isset($_GET['pane']) && $_GET['pane'] == 'left') {
|
||||||
'UPDATE_AVAILABLE' => $update_data['available_update'],
|
'UPDATE_AVAILABLE' => $update_data['available_update'],
|
||||||
'NEW_VERSION_NUMBER' => $update_data['latest_version'],
|
'NEW_VERSION_NUMBER' => $update_data['latest_version'],
|
||||||
'NEW_VERSION_SIZE' => $update_data['latest_version_size'],
|
'NEW_VERSION_SIZE' => $update_data['latest_version_size'],
|
||||||
'NEW_VERSION_DL_LINK' => $update_data['latest_version_link']
|
'NEW_VERSION_DL_LINK' => $update_data['latest_version_dl_link'],
|
||||||
|
'NEW_VERSION_LINK' => $update_data['latest_version_link'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// Get forum statistics
|
// Get forum statistics
|
||||||
|
|
|
@ -38,7 +38,8 @@ if (is_array($json_response) && !empty($json_response)) {
|
||||||
'available_update' => $has_update,
|
'available_update' => $has_update,
|
||||||
'latest_version' => $get_version,
|
'latest_version' => $get_version,
|
||||||
'latest_version_size' => isset($json_response['assets'][0]['size']) ? humn_size($json_response['assets'][0]['size']) : false,
|
'latest_version_size' => isset($json_response['assets'][0]['size']) ? humn_size($json_response['assets'][0]['size']) : false,
|
||||||
'latest_version_link' => $json_response['assets'][0]['browser_download_url'] ?? $json_response['html_url']
|
'latest_version_dl_link' => $json_response['assets'][0]['browser_download_url'] ?? $json_response['html_url'],
|
||||||
|
'latest_version_link' => $json_response['html_url']
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2283,6 +2283,7 @@ $lang['CLICK_RETURN_DISALLOWADMIN'] = 'Click %sHere%s to return to Disallow User
|
||||||
// Version Check
|
// Version Check
|
||||||
$lang['VERSION_INFORMATION'] = 'Version Information';
|
$lang['VERSION_INFORMATION'] = 'Version Information';
|
||||||
$lang['UPDATE_AVAILABLE'] = 'Update available';
|
$lang['UPDATE_AVAILABLE'] = 'Update available';
|
||||||
|
$lang['CHANGELOG'] = 'Changelog';
|
||||||
|
|
||||||
// Login attempts configuration
|
// Login attempts configuration
|
||||||
$lang['MAX_LOGIN_ATTEMPTS'] = 'Allowed login attempts';
|
$lang['MAX_LOGIN_ATTEMPTS'] = 'Allowed login attempts';
|
||||||
|
|
|
@ -161,7 +161,7 @@
|
||||||
<!-- IF updater.UPDATE_AVAILABLE -->
|
<!-- IF updater.UPDATE_AVAILABLE -->
|
||||||
<tr>
|
<tr>
|
||||||
<td class="row1" nowrap="nowrap" width="25%"><b>{L_UPDATE_AVAILABLE}:</b></td>
|
<td class="row1" nowrap="nowrap" width="25%"><b>{L_UPDATE_AVAILABLE}:</b></td>
|
||||||
<td class="row2"><b>{updater.NEW_VERSION_NUMBER}</b><!-- IF updater.NEW_VERSION_SIZE --> ({L_SIZE}: {updater.NEW_VERSION_SIZE})<!-- ENDIF --> · <a target="_blank" href="{updater.NEW_VERSION_DL_LINK}">{L_DOWNLOAD}</a></td>
|
<td class="row2"><b>{updater.NEW_VERSION_NUMBER}</b><!-- IF updater.NEW_VERSION_SIZE --> ({L_SIZE}: {updater.NEW_VERSION_SIZE})<!-- ENDIF --> · <a target="_blank" href="{updater.NEW_VERSION_DL_LINK}">{L_DOWNLOAD}</a> · <a target="_blank" href="{updater.NEW_VERSION_LINK}">{L_CHANGELOG}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
<!-- END updater -->
|
<!-- END updater -->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue