diff --git a/Source/Source.php b/Source/Source.php index da1e2e7..badf183 100644 --- a/Source/Source.php +++ b/Source/Source.php @@ -60,7 +60,7 @@ 'EVENT_SOURCE_URL_FILE_DIFF' => EVENT_TYPE_FIRST, # Return a URL to see a given revision's diff of a file 'EVENT_SOURCE_UPDATE_REPO_FORM' => EVENT_TYPE_FIRST, # Output HTML form elements for a repository update - 'EVENT_SOURCE_UPDATE_REPO' => EVENT_TYPE_CHAIN, # Handle form data after submitting a repo update form + 'EVENT_SOURCE_UPDATE_REPO' => EVENT_TYPE_FIRST, # Handle form data after submitting a repo update form 'EVENT_SOURCE_PRECOMMIT' => EVENT_TYPE_FIRST, # Allow plugins to try finding commit information before Source looks 'EVENT_SOURCE_COMMIT' => EVENT_TYPE_FIRST, # Source control commit handling, passed commit details from checkin script diff --git a/SourceGithub/SourceGithub.php b/SourceGithub/SourceGithub.php index cbc1823..a6528f5 100644 --- a/SourceGithub/SourceGithub.php +++ b/SourceGithub/SourceGithub.php @@ -118,11 +118,11 @@ return; } - if ( isset( $t_repo->info['hub_username'] ) ) { - $t_username = $t_repo->info['hub_username']; + if ( isset( $p_repo->info['hub_username'] ) ) { + $t_username = $p_repo->info['hub_username']; } - if ( isset( $t_repo->info['hub_reponame'] ) ) { - $t_username = $t_repo->info['hub_reponame']; + if ( isset( $p_repo->info['hub_reponame'] ) ) { + $t_username = $p_repo->info['hub_reponame']; } ?>