aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extensions/InlineHistory/Extension.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/InlineHistory/Extension.pm b/extensions/InlineHistory/Extension.pm
index df7ae9f62..29c54b583 100644
--- a/extensions/InlineHistory/Extension.pm
+++ b/extensions/InlineHistory/Extension.pm
@@ -47,7 +47,9 @@ sub template_before_process {
my $bug_id = $bug->id;
# build bug activity
- my ($activity) = Bugzilla::Bug::GetBugActivity($bug_id);
+ my ($activity) = $bug->can('get_activity')
+ ? $bug->get_activity()
+ : Bugzilla::Bug::GetBugActivity($bug_id);
$activity = _add_duplicates($bug_id, $activity);
if (scalar @$activity > MAXIMUM_ACTIVITY_COUNT) {