allow snapshots to be disabled easily
This commit is contained in:
parent
6a247acb45
commit
0838143d58
@ -158,7 +158,8 @@ $config =
|
|||||||
array('subscribe' => null,
|
array('subscribe' => null,
|
||||||
'welcome' => null),
|
'welcome' => null),
|
||||||
'snapshot' =>
|
'snapshot' =>
|
||||||
array('run' => 'web',
|
array('enabled' => true,
|
||||||
|
'run' => 'web',
|
||||||
'frequency' => 10000,
|
'frequency' => 10000,
|
||||||
'reporturl' => 'http://laconi.ca/stats/report'),
|
'reporturl' => 'http://laconi.ca/stats/report'),
|
||||||
);
|
);
|
||||||
|
@ -73,6 +73,10 @@ class Snapshot
|
|||||||
|
|
||||||
static function check()
|
static function check()
|
||||||
{
|
{
|
||||||
|
if (!common_config('snapshot', 'enabled')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
switch (common_config('snapshot', 'run')) {
|
switch (common_config('snapshot', 'run')) {
|
||||||
case 'web':
|
case 'web':
|
||||||
// skip if we're not running on the Web.
|
// skip if we're not running on the Web.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user