aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2013-10-17 21:53:37 +0200
committerChristian Ruppert <idl0r@gentoo.org>2013-10-17 21:53:37 +0200
commit07bd7417e8e9b5a63a645a8d8b334c15b14c7ddc (patch)
tree137be9eb5f7987a49bf222ee5a2c6e4a8901cb67 /extensions/InlineHistory
parentMerge branch 'upstream' (diff)
downloadbugzilla-07bd7417e8e9b5a63a645a8d8b334c15b14c7ddc.tar.gz
bugzilla-07bd7417e8e9b5a63a645a8d8b334c15b14c7ddc.tar.bz2
bugzilla-07bd7417e8e9b5a63a645a8d8b334c15b14c7ddc.zip
InlineHistory: Bugzilla 4.4 compatibility
Diffstat (limited to 'extensions/InlineHistory')
-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) {