]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Revert "allow snapshots to be disabled easily"
authorEvan Prodromou <evan@controlyourself.ca>
Thu, 16 Apr 2009 17:05:35 +0000 (13:05 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Thu, 16 Apr 2009 17:05:35 +0000 (13:05 -0400)
This reverts commit 0838143d5855bb013b355d4abb7ec7a643ef37dc.

Already handled with the 'never' option.

lib/common.php
lib/snapshot.php

index 37744ebd434fbd1b212730ae288adc0b1ed220d4..e64ca34da83fe5617b750a8c1298c2a2577dc11d 100644 (file)
@@ -158,8 +158,7 @@ $config =
         array('subscribe' => null,
               'welcome' => null),
         'snapshot' =>
-        array('enabled' => true,
-              'run' => 'web',
+        array('run' => 'web',
               'frequency' => 10000,
               'reporturl' => 'http://laconi.ca/stats/report'),
         );
index 75850a301b58da1ffecf537a3fd999dcdad3f670..a014d3435f068f96a016ad78c3c88195456a66f0 100644 (file)
@@ -73,10 +73,6 @@ class Snapshot
 
     static function check()
     {
-        if (!common_config('snapshot', 'enabled')) {
-            return;
-        }
-
         switch (common_config('snapshot', 'run')) {
         case 'web':
             // skip if we're not running on the Web.