Skip to content
GitLab
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
fa4684ee
Commit
fa4684ee
authored
Sep 21, 2008
by
Nigel McNie
Browse files
Only update the siteclosed flag if it has changed. Saves a database write every page load.
parent
6ffca8f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/auth/lib.php
View file @
fa4684ee
...
...
@@ -327,7 +327,13 @@ function auth_setup () {
// Lock the site until core upgrades are done
require_once
(
get_config
(
'libroot'
)
.
'version.php'
);
set_config
(
'siteclosed'
,
$config
->
version
>
get_config
(
'version'
));
$siteclosed
=
$config
->
version
>
get_config
(
'version'
);
$cfgsiteclosed
=
get_config
(
'siteclosed'
);
if
(
(
$siteclosed
&&
!
$cfgsiteclosed
)
||
(
!
$siteclosed
&&
$cfgsiteclosed
))
{
set_config
(
'siteclosed'
,
$siteclosed
);
}
// Check the time that the session is set to log out. If the user does
// not have a session, this time will be 0.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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