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
integration
prechecker
Commits
72df7e1e
Commit
72df7e1e
authored
Sep 03, 2006
by
moodler
Browse files
Merging $CFG->disablestatsprocessing from stable
parent
de483940
Changes
3
Hide whitespace changes
Inline
Side-by-side
admin/configvars.php
View file @
72df7e1e
...
...
@@ -594,6 +594,7 @@ class configvarrss extends configvar {
}
/// enable stats
if
(
empty
(
$CFG
->
disablestatsprocessing
))
{
$stats
[
'enablestats'
]
=
new
configvar
(
get_string
(
'configenablestats'
,
'admin'
),
choose_from_menu
(
$noyesoptions
,
'enablestats'
,
$config
->
enablestats
,
''
,
''
,
''
,
true
)
);
...
...
@@ -639,7 +640,7 @@ class configvarrss extends configvar {
$stats
[
'statsuserthreshold'
]
=
new
configvar
(
get_string
(
'configstatsuserthreshold'
,
'admin'
),
'<input type="text" name="statsuserthreshold" size="4" value="'
.
$config
->
statsuserthreshold
.
'" />'
);
}
////////////////////////////////////////////////////////////////////
...
...
@@ -652,6 +653,8 @@ class configvarrss extends configvar {
$configvars
[
'permissions'
]
=
$permissions
;
$configvars
[
'requestedcourse'
]
=
$reqcourse
;
$configvars
[
'misc'
]
=
$misc
;
if
(
empty
(
$CFG
->
disablestatsprocessing
))
{
$configvars
[
'stats'
]
=
$stats
;
}
?>
admin/cron.php
View file @
72df7e1e
...
...
@@ -274,7 +274,7 @@
unset
(
$enrol
);
}
if
(
!
empty
(
$CFG
->
enablestats
))
{
if
(
!
empty
(
$CFG
->
enablestats
)
and
empty
(
$CFG
->
disablestatsprocessing
)
)
{
// check we're not before our runtime
$timetocheck
=
strtotime
(
"
$CFG->statsruntimestarthour
:
$CFG->statsruntimestartminute
today"
);
...
...
config-dist.php
View file @
72df7e1e
...
...
@@ -139,6 +139,9 @@ $CFG->admin = 'admin';
// Useful for webhost operators who have alternate methods of backups
// $CFG->disablescheduledbackups = true;
//
// Prevent stats processing and hide the GUI
// $CFG->disablestatsprocessing = true;
//
// Set global password for "Login as", teacher is prompted only once in each session.
// Set your own password and tell it only to teachers that should have access to this feature.
// $CFG->loginaspassword = 'yoursharedpassword';
...
...
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