]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 208583 - Remove PerformSubsts from templates
authorbbaetz%acm.org <>
Sat, 7 Jun 2003 11:36:18 +0000 (11:36 +0000)
committerbbaetz%acm.org <>
Sat, 7 Jun 2003 11:36:18 +0000 (11:36 +0000)
r,a=justdave

Bugzilla/Template.pm
template/en/default/filterexceptions.pl
template/en/default/global/site-navigation.html.tmpl

index 7c084ecb9973fd00717c3be39bf664f95aa1157d..b8307986110d2742b40c082ee57fc649780bfce2 100644 (file)
@@ -249,10 +249,6 @@ sub create {
             # Function to create date strings
             'time2str' => \&Date::Format::time2str,
 
-            # Function for processing global parameters that contain references
-            # to other global parameters.
-            'PerformSubsts' => \&::PerformSubsts ,
-
             # Generic linear search function
             'lsearch' => \&Bugzilla::Util::lsearch,
 
@@ -268,10 +264,6 @@ sub create {
                 require Bugzilla::BugMail;
                 Bugzilla::BugMail::Send($id, $mailrecipients);
             },
-            # SyncAnyPendingShadowChanges
-            # - called in the footer to sync the shadowdb
-            'SyncAnyPendingShadowChanges' => \&::SyncAnyPendingShadowChanges,
 
             # Bugzilla version
             # This could be made a ref, or even a CONSTANT with TT2.08
index b462b7bcc87b8c5d684e47576826c7336a98933e..d2abbdadb125a26e0f1128eba6d6680fab5b84c1 100644 (file)
   'bug_list.last', 
   'bug.bug_id', 
   'bug.votes', 
-  'PerformSubsts(Param(\'mybugstemplate\'), substs)', 
 ],
 
 'bug/comments.html.tmpl' => [
index 178a99167839b8b3054344a423977bbd247bdec3..af80a65dac0630149554eac254fc43eb45087128 100644 (file)
@@ -73,9 +73,8 @@
   [%# *** Preset Queries *** %]
   [% IF user.showmybugslink %]
     [% user_login = user.login FILTER url_quote %]
-    [% substs = { userid => user_login } %]  
     <link rel="Preset&nbsp;Queries" title="My Bugs"                 
-          href="[% PerformSubsts(Param('mybugstemplate'), substs) %]">
+          href="[% Param('mybugstemplate').replace('%userid%', user_login) %]">
   [% END %]
 
   [% FOREACH q = user.queries %]