rename functions

This commit is contained in:
Pau Capó 2017-03-15 12:52:31 +01:00
parent 67981c517d
commit 222bbaf084
2 changed files with 24 additions and 26 deletions

View file

@ -36,7 +36,7 @@ class Gitea_Options {
function options_post() {
if (isset($_GET['force-check'])) {
Gitea_Updater::getInstance()->get_gitea_all();
Gitea_Updater::getInstance()->get_all();
set_site_transient('update_plugins', null);
set_site_transient('update_themes', null);
}
@ -69,8 +69,6 @@ class Gitea_Options {
</div>
<?php else : ?>
<a href="#" id="show-tokens" class="dashicons dashicons-visibility"></a>
<form action="<?=admin_url('options-general.php?page=gitea-updater')?>" method="post" class="box access">
<div class="title">
@ -213,7 +211,7 @@ class Gitea_Options {
$repo = str_replace('.git', '', trim($url['path'], '/'));
$updater = Gitea_Updater::getInstance();
$package = $updater->get_gitea_url($host, $repo, '/archive/master.zip', $data['access_token']);
$package = $updater->get_url($host, $repo, '/archive/master.zip', $data['access_token']);
if ($data['type'] == 'plugin') {