зеркало из https://github.com/mozilla/gecko-dev.git
Bug 208583 - Remove PerformSubsts from templates
r,a=justdave
This commit is contained in:
Родитель
74cb07ef06
Коммит
1be840d13a
|
@ -249,10 +249,6 @@ sub create {
|
||||||
# Function to create date strings
|
# Function to create date strings
|
||||||
'time2str' => \&Date::Format::time2str,
|
'time2str' => \&Date::Format::time2str,
|
||||||
|
|
||||||
# Function for processing global parameters that contain references
|
|
||||||
# to other global parameters.
|
|
||||||
'PerformSubsts' => \&::PerformSubsts ,
|
|
||||||
|
|
||||||
# Generic linear search function
|
# Generic linear search function
|
||||||
'lsearch' => \&Bugzilla::Util::lsearch,
|
'lsearch' => \&Bugzilla::Util::lsearch,
|
||||||
|
|
||||||
|
@ -268,10 +264,6 @@ sub create {
|
||||||
require Bugzilla::BugMail;
|
require Bugzilla::BugMail;
|
||||||
Bugzilla::BugMail::Send($id, $mailrecipients);
|
Bugzilla::BugMail::Send($id, $mailrecipients);
|
||||||
},
|
},
|
||||||
|
|
||||||
# SyncAnyPendingShadowChanges
|
|
||||||
# - called in the footer to sync the shadowdb
|
|
||||||
'SyncAnyPendingShadowChanges' => \&::SyncAnyPendingShadowChanges,
|
|
||||||
|
|
||||||
# Bugzilla version
|
# Bugzilla version
|
||||||
# This could be made a ref, or even a CONSTANT with TT2.08
|
# This could be made a ref, or even a CONSTANT with TT2.08
|
||||||
|
|
|
@ -339,7 +339,6 @@
|
||||||
'bug_list.last',
|
'bug_list.last',
|
||||||
'bug.bug_id',
|
'bug.bug_id',
|
||||||
'bug.votes',
|
'bug.votes',
|
||||||
'PerformSubsts(Param(\'mybugstemplate\'), substs)',
|
|
||||||
],
|
],
|
||||||
|
|
||||||
'bug/comments.html.tmpl' => [
|
'bug/comments.html.tmpl' => [
|
||||||
|
|
|
@ -73,9 +73,8 @@
|
||||||
[%# *** Preset Queries *** %]
|
[%# *** Preset Queries *** %]
|
||||||
[% IF user.showmybugslink %]
|
[% IF user.showmybugslink %]
|
||||||
[% user_login = user.login FILTER url_quote %]
|
[% user_login = user.login FILTER url_quote %]
|
||||||
[% substs = { userid => user_login } %]
|
|
||||||
<link rel="Preset Queries" title="My Bugs"
|
<link rel="Preset Queries" title="My Bugs"
|
||||||
href="[% PerformSubsts(Param('mybugstemplate'), substs) %]">
|
href="[% Param('mybugstemplate').replace('%userid%', user_login) %]">
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
[% FOREACH q = user.queries %]
|
[% FOREACH q = user.queries %]
|
||||||
|
|
Загрузка…
Ссылка в новой задаче