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
f297bdbc
Commit
f297bdbc
authored
Apr 21, 2011
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 650593: Bugzilla crashes when the database is gone, even when shutdownhtml is set
r=justdave a=LpSolit
parent
0803a268
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Template.pm
Bugzilla/Template.pm
+4
-3
No files found.
Bugzilla/Template.pm
View file @
f297bdbc
...
...
@@ -442,9 +442,10 @@ sub _css_link_set {
return
\%
set
;
}
my
$
user
=
Bugzilla
->
user
;
my
$
skin_user_prefs
=
Bugzilla
->
user
->
settings
->
{
skin
}
;
my
$cgi_path
=
bz_locations
()
->
{
'cgi_path'
};
my
$all_skins
=
$user
->
settings
->
{
'skin'
}
->
legal_values
;
# If the DB is not accessible, user settings are not available.
my
$all_skins
=
$skin_user_prefs
?
$skin_user_prefs
->
legal_values
:
[]
;
my
%
skin_urls
;
foreach
my
$option
(
@$all_skins
)
{
next
if
$option
eq
'standard'
;
...
...
@@ -456,7 +457,7 @@ sub _css_link_set {
}
$set
{
alternate
}
=
\%
skin_urls
;
my
$skin
=
$
user
->
settings
->
{
'skin'
}
->
{
'value'
};
my
$skin
=
$
skin_user_prefs
->
{
'value'
};
if
(
$skin
ne
'standard'
and
defined
$set
{
alternate
}
->
{
$skin
})
{
$set
{
skin
}
=
delete
$set
{
alternate
}
->
{
$skin
};
}
...
...
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