diff --git a/Source/MantisSourcePlugin.class.php b/Source/MantisSourcePlugin.class.php index 07cb975..bab3787 100644 --- a/Source/MantisSourcePlugin.class.php +++ b/Source/MantisSourcePlugin.class.php @@ -19,7 +19,7 @@ public function hooks() { return array( 'EVENT_SOURCE_INTEGRATION' => 'integration', - 'EVENT_SOURCE_PRECOMMIT' => 'precommit', + 'EVENT_SOURCE_PRECOMMIT' => '_precommit', ); } @@ -135,6 +135,14 @@ public function import_latest( $p_repo ) {} /** + * Post-process changesets from importing latest data. + * Not called after a full import. + * @param object Repository + * @param array Changesets + */ + public function postimport( $p_repo, $p_changesets ) {} + + /** * Initialize contact with the integration framework. * @return object The plugin object */ @@ -143,13 +151,12 @@ } /** - * Post-process changesets from importing latest data. - * Not called after a full import. - * @param object Repository - * @param array Changesets + * Pass the precommit event to the interface without the + * event paramater. */ - public function postimport( $p_repo, $p_changesets ) {} - + final public function _precommit( $p_event ) { + return $this->precommit(); + } } /** diff --git a/SourceGitweb/SourceGitweb.php b/SourceGitweb/SourceGitweb.php index 54ef16f..1e518a7 100644 --- a/SourceGitweb/SourceGitweb.php +++ b/SourceGitweb/SourceGitweb.php @@ -37,7 +37,7 @@ public $type = 'gitweb'; public function show_type() { - return plugin_lang_get( 'gitweb', 'SourceGitweb' ); + return plugin_lang_get( 'gitweb' ); } public function show_changeset( $p_repo, $p_changeset ) {