global $core;
if ($this->book->parametres->stats) {
- $this->book->parametres->statsMatomo = wsStats::getMatomoAPI()->createSiteIfNotExistsOrReturnId('Fluidbook #' . $this->book_id, 'https://' . $this->book_id . '.fluidbook');
+ $this->config->statsMatomo = wsStats::getMatomoAPI()->createSiteIfNotExistsOrReturnId('Fluidbook #' . $this->book_id, 'https://' . $this->book_id . '.fluidbook');
} else {
- $this->book->parametres->statsMatomo = false;
+ $this->config->statsMatomo = false;
}
if ($this->book->parametres->tagcommander_id) {