diff --git a/Source/MantisSourcePlugin.class.php b/Source/MantisSourcePlugin.class.php index 8f05ff1..950ffb0 100644 --- a/Source/MantisSourcePlugin.class.php +++ b/Source/MantisSourcePlugin.class.php @@ -81,7 +81,7 @@ abstract function url_repo( $p_event, $p_repo, $t_changeset=null ); /** - * Get a URL to a view of the given changeset. + * Get a URL to a diff view of the given changeset. * @param object Repository * @param object Changeset * @return string URL diff --git a/Source/Source.ViewAPI.php b/Source/Source.ViewAPI.php index f3f11cf..9f79539 100644 --- a/Source/Source.ViewAPI.php +++ b/Source/Source.ViewAPI.php @@ -42,6 +42,9 @@
id, plugin_lang_get( 'details', 'Source' ) ); + if ( $t_url = event_signal( 'EVENT_SOURCE_URL_CHANGESET', array( $t_repo, $t_changeset ) ) ) { + print_bracket_link( $t_url, plugin_lang_get( 'diff', 'Source' ) ); + } ?> message ) ?> diff --git a/Source/pages/view.php b/Source/pages/view.php index 332c94d..e35a6b0 100644 --- a/Source/pages/view.php +++ b/Source/pages/view.php @@ -60,7 +60,14 @@ name ), ': ', event_signal( 'EVENT_SOURCE_SHOW_CHANGESET', array( $t_repo, $t_changeset ) ) ?> -id . '&offset=' . $f_offset, "Back to Repository" ) ?> + +id . '&offset=' . $f_offset, "Back to Repository" ); +?> +