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']; } ?> > @@ -138,7 +138,7 @@ function update_repo( $p_event, $p_repo ) { if ( 'github' != $p_repo->type ) { - return $p_repo; + return; } $f_hub_username = gpc_get_string( 'hub_username' ); diff --git a/SourceWebSVN/SourceWebSVN.php b/SourceWebSVN/SourceWebSVN.php index e21d4aa..b9d4d42 100644 --- a/SourceWebSVN/SourceWebSVN.php +++ b/SourceWebSVN/SourceWebSVN.php @@ -93,7 +93,7 @@ function update_repo_form( $p_event, $p_repo ) { if ( 'svn' != $p_repo->type ) { - return $p_repo; + return; } $t_url = $t_name = '';