Fix: Move not stable feature as experimental. Disabled box by default

because there is still some bug (pgsl support, filters) and major
problem to solve (it slow down seriously Dolibarr, result not accurate
for some status).
This commit is contained in:
Laurent Destailleur 2013-01-15 15:26:46 +01:00
parent 0c6c2eca8a
commit 1851aa4646

View File

@ -1,5 +1,7 @@
<?php
/* Copyright (C) 2012 Charles-François BENKE <charles.fr@benke.fr>
* Copyright (C) 2005-2013 Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
@ -34,7 +36,8 @@ class box_activity extends ModeleBoxes
var $db;
var $param;
var $enabled = 1;
var $info_box_head = array();
var $info_box_contents = array();
@ -43,7 +46,7 @@ class box_activity extends ModeleBoxes
*/
function __construct()
{
global $langs;
global $langs,$conf;
$langs->load("boxes");
$langs->load("bills");
@ -51,6 +54,9 @@ class box_activity extends ModeleBoxes
$langs->load("orders");
$this->boxlabel = $langs->transnoentitiesnoconv("BoxGlobalActivity");
// Disabled by default because, still has some bug (pgsl support, filters) and slow down seriously Dolibarr
$this->enabled = (! empty($conf->global->MAIN_FEATURES_LEVEL) || ! empty($conf->global->MAIN_BOX_ACTIVITY_ENABLED));
}
/**