Use Config class/Option to deactivate the count on albums

This commit is contained in:
Michael 2017-01-07 09:05:52 +00:00
parent cb5df4d715
commit 414c5ddae0
3 changed files with 32 additions and 12 deletions

View file

@ -3,6 +3,10 @@
* @file include/dbclean.php
* @brief The script is called from time to time to clean the database entries and remove orphaned data.
*/
use \Friendica\Core\Config;
use \Friendica\Core\PConfig;
require_once("boot.php");
function dbclean_run(&$argv, &$argc) {
@ -22,7 +26,7 @@ function dbclean_run(&$argv, &$argc) {
load_config('config');
load_config('system');
if (!get_config("system", "dbclean")) {
if (!Config::get('system', 'dbclean', false)) {
return;
}