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
c90d3ee4
Commit
c90d3ee4
authored
Dec 15, 2007
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 408448: checksetup now tells you when template precompilation is complete.
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat
parent
87c40179
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
Template.pm
Bugzilla/Template.pm
+5
-3
strings.txt.pl
template/en/default/setup/strings.txt.pl
+3
-0
No files found.
Bugzilla/Template.pm
View file @
c90d3ee4
...
...
@@ -36,7 +36,7 @@ use strict;
use
Bugzilla::
Constants
;
use
Bugzilla::Install::
Requirements
;
use
Bugzilla::Install::
Util
qw(template_include_path)
;
use
Bugzilla::Install::
Util
qw(
install_string
template_include_path)
;
use
Bugzilla::
Util
;
use
Bugzilla::
User
;
use
Bugzilla::
Error
;
...
...
@@ -730,7 +730,7 @@ sub precompile_templates {
# Remove the compiled templates.
my
$datadir
=
bz_locations
()
->
{
'datadir'
};
if
(
-
e
"$datadir/template"
)
{
print
"Removing existing compiled templates ...
\n"
if
$output
;
print
install_string
(
'template_removing_dir'
)
.
"
\n"
if
$output
;
# XXX This frequently fails if the webserver made the files, because
# then the webserver owns the directories. We could fix that by
...
...
@@ -746,7 +746,7 @@ sub precompile_templates {
}
}
print
"Precompiling templates...\n"
if
$output
;
print
install_string
(
'template_precompile'
)
if
$output
;
my
$templatedir
=
bz_locations
()
->
{
'templatedir'
};
# Don't hang on templates which use the CGI library
...
...
@@ -803,6 +803,8 @@ sub precompile_templates {
# If anything created a Template object before now, clear it out.
delete
Bugzilla
->
request_cache
->
{
template
};
print
install_string
(
'done'
)
.
"\n"
if
$output
;
}
# Helper for precompile_templates
...
...
template/en/default/setup/strings.txt.pl
View file @
c90d3ee4
...
...
@@ -33,6 +33,7 @@
checking_dbd
=>
'Checking available perl DBD modules...'
,
checking_optional
=>
'The following Perl modules are optional:'
,
checking_modules
=>
'Checking perl modules...'
,
done
=>
'done.'
,
header
=>
"* This is Bugzilla ##bz_ver## on perl ##perl_ver##\n"
.
"* Running on ##os_name## ##os_ver##"
,
install_all
=>
<<
EOT
,
...
...
@@ -55,6 +56,8 @@ EOT
module_not_found
=>
"not found"
,
module_ok
=>
'ok'
,
module_unknown_version
=>
"found unknown version"
,
template_precompile
=>
"Precompiling templates..."
,
template_removing_dir
=>
"Removing existing compiled templates..."
,
);
1
;
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