Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
51e90d63
Commit
51e90d63
authored
May 13, 2010
by
Piers Harding
Browse files
Bug #579762 site disabled for upgrade message fails to appear
Signed-off-by:
Piers Harding
<
piers@catalyst.net.nz
>
parent
d5905e1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/auth/user.php
View file @
51e90d63
...
...
@@ -923,7 +923,7 @@ class LiveUser extends User {
$siteclosedforupgrade
=
get_config
(
'siteclosed'
);
if
(
$siteclosedforupgrade
&&
get_config
(
'disablelogin'
))
{
global
$SESSION
;
$SESSION
->
add_error_msg
(
get_string
(
'siteclosedlogindisabled'
)
);
$SESSION
->
add_error_msg
(
get_string
(
'siteclosedlogindisabled'
,
'mahara'
,
get_config
(
'wwwroot'
)
.
'admin/upgrade.php'
),
false
);
return
false
;
}
if
(
!
$user
->
admin
&&
(
$siteclosedforupgrade
||
get_config
(
'siteclosedbyadmin'
)))
{
...
...
Write
Preview
Supports
Markdown
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