X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=app%2FController%2FGithub%2FRepoHook.php;h=39f6f1bb7acab299442e92f0ca50fc30c3c107bf;hb=36cfa28cf2dcee3422f0231f91c6692eb28e7824;hp=023763a5ffef707622b04ad80debf643e7cb74ad;hpb=77b6c7f9f75740e15d745d34e7263111a73391a8;p=pharext%2Fpharext.org diff --git a/app/Controller/Github/RepoHook.php b/app/Controller/Github/RepoHook.php index 023763a..39f6f1b 100644 --- a/app/Controller/Github/RepoHook.php +++ b/app/Controller/Github/RepoHook.php @@ -48,7 +48,7 @@ class RepoHook extends Github $this->github->readRepo("$owner/$repo", function($repo) { $call = $this->github->listHooks($repo->full_name, function($hooks, $links) use($repo, &$call) { $repo->hooks = $hooks; - if (($hook = $this->checkRepoHook($repo))) { + if (($hook = $this->github->checkRepoHook($repo))) { $hook_conf = $this->app->getRequest()->getForm(); $this->github->updateRepoHook($repo->full_name, $hook->id, $hook_conf, function($changed_hook) use($repo, $hook, $hooks, $links, &$call) { foreach ($changed_hook as $key => $val) { @@ -66,7 +66,7 @@ class RepoHook extends Github $this->github->readRepo("$owner/$repo", function($repo) { $call = $this->github->listHooks($repo->full_name, function($hooks) use($repo, &$call) { $repo->hooks = $hooks; - if (($hook = $this->checkRepoHook($repo))) { + if (($hook = $this->github->checkRepoHook($repo))) { $this->github->deleteRepoHook($repo->full_name, $hook->id, function() use($repo, &$call) { $call->dropFromCache(); $this->redirectBack($repo->full_name);