The following commit has been merged in the master branch:
commit 6e80f580bf9a7507920505355aa59c2daab6b934
Author: Frank Lichtenheld <[EMAIL PROTECTED]>
Date:   Wed Apr 23 04:42:55 2008 +0200

    Packages::Template: Always provide a fallback g() function
    
    This will only get used if no catalogue is specified.
    Fixes the about/debtags page.

diff --git a/lib/Packages/Template.pm b/lib/Packages/Template.pm
index c2919f1..b48e690 100644
--- a/lib/Packages/Template.pm
+++ b/lib/Packages/Template.pm
@@ -35,6 +35,7 @@ sub new {
     };
     $vars->{make_search_url} = sub { return 
&Packages::CGI::make_search_url(@_) };
     $vars->{make_url} = sub { return &Packages::CGI::make_url(@_) };
+    $vars->{g} = sub { my ($f, @a) = @_; return sprintf($f, @a); };
     if ($vars->{cat}) {
        $vars->{g} = sub { return Packages::I18N::Locale::g($vars->{cat}, @_) };
     }

-- 
APT Archive Web-Frontend (Alioth repository)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to