Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 70974 Details for
Bug 109745
www-apps/rt-3.4.3 uses HTML::Mason File functions erroneously
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch from upstream for Elements/Callback
Callback.diff (text/plain), 1.27 KB, created by
Andreas Vinsander
on 2005-10-18 15:10:28 UTC
(
hide
)
Description:
Patch from upstream for Elements/Callback
Filename:
MIME Type:
Creator:
Andreas Vinsander
Created:
2005-10-18 15:10:28 UTC
Size:
1.27 KB
patch
obsolete
>@@ -53,14 +53,27 @@ > my $callbacks = $cache{$CacheKey} || $m->notes($CacheKey); > > if (!$callbacks) { >- my $path = "/Callbacks/*$Page/$_CallbackName"; >+ my $path = "/Callbacks/*$Page/$_CallbackName"; > >- $callbacks = [ >- # Skip backup files, and files without a leading package name >- grep { !/^\.|~$/ and $_ ne "/Callbacks/$Page/$_CallbackName" } >- $m->interp->resolver->glob_path($path) >- ]; >- >+ # Due to API changes after Mason 1.28, we have to check for which >+ # version we're running when getting the component roots >+ my @roots = map { $_->[1] } >+ $HTML::Mason::VERSION <= 1.28 >+ ? $m->interp->resolver->comp_root_array >+ : $m->interp->comp_root_array; >+ >+ my %seen; >+ >+ for my $root (@roots) { >+ push @$callbacks, >+ # Skip backup files, files without a leading package name, >+ # and files we've already seen >+ grep { !/^\.|~$/ >+ and $_ ne "/Callbacks/$Page/$_CallbackName" >+ and not $seen{$_}++ } >+ $m->interp->resolver->glob_path($path, $root); >+ } >+ > $m->notes($CacheKey => $callbacks); > $cache{$Page,$_CallbackName} = $callbacks if !$RT::DevelMode; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 109745
: 70974