Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
dd338c89
Commit
dd338c89
authored
Aug 07, 2012
by
Byron Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backing out Bug 778631 due to breakage
parent
66b20d9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
Template.pm
Bugzilla/Template.pm
+0
-10
No files found.
Bugzilla/Template.pm
View file @
dd338c89
...
@@ -40,10 +40,6 @@ use constant FORMAT_3_SIZE => [19,28,28];
...
@@ -40,10 +40,6 @@ use constant FORMAT_3_SIZE => [19,28,28];
use
constant
FORMAT_DOUBLE
=>
'%19s %-55s'
;
use
constant
FORMAT_DOUBLE
=>
'%19s %-55s'
;
use
constant
FORMAT_2_SIZE
=>
[
19
,
55
];
use
constant
FORMAT_2_SIZE
=>
[
19
,
55
];
# Use a per-process provider to cache compiled templates in memory across
# requests.
our
$shared_provider
;
# Pseudo-constant.
# Pseudo-constant.
sub
SAFE_URL_REGEXP
{
sub
SAFE_URL_REGEXP
{
my
$safe_protocols
=
join
(
'|'
,
SAFE_PROTOCOLS
);
my
$safe_protocols
=
join
(
'|'
,
SAFE_PROTOCOLS
);
...
@@ -607,10 +603,6 @@ sub create {
...
@@ -607,10 +603,6 @@ sub create {
COMPILE_DIR
=>
bz_locations
()
->
{
'template_cache'
},
COMPILE_DIR
=>
bz_locations
()
->
{
'template_cache'
},
# Don't check for a template update until 1 hour has passed since the
# last check.
STAT_TTL
=>
60
*
60
,
# Initialize templates (f.e. by loading plugins like Hook).
# Initialize templates (f.e. by loading plugins like Hook).
PRE_PROCESS
=>
[
"global/variables.none.tmpl"
],
PRE_PROCESS
=>
[
"global/variables.none.tmpl"
],
...
@@ -981,8 +973,6 @@ sub create {
...
@@ -981,8 +973,6 @@ sub create {
'default_authorizer'
=>
new
Bugzilla::
Auth
(),
'default_authorizer'
=>
new
Bugzilla::
Auth
(),
},
},
};
};
$shared_provider
||=
Template::
Provider
->
new
(
$config
);
$config
->
{
LOAD_TEMPLATES
}
=
[
$shared_provider
];
local
$
Template::Config::
CONTEXT
=
'Bugzilla::Template::Context'
;
local
$
Template::Config::
CONTEXT
=
'Bugzilla::Template::Context'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment