From: vincent@cubedesigners.com Date: Thu, 23 Dec 2021 17:33:00 +0000 (+0000) Subject: wip #4978 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=2159786d53c397d393d970df597a2d524023b0de;p=cubeextranet.git wip #4978 @0.5 --- diff --git a/inc/ws/Controlleur/class.ws.maintenance.php b/inc/ws/Controlleur/class.ws.maintenance.php index 8509a64c3..5f2775b4c 100644 --- a/inc/ws/Controlleur/class.ws.maintenance.php +++ b/inc/ws/Controlleur/class.ws.maintenance.php @@ -1805,11 +1805,10 @@ class wsMaintenance public static function matomo() { - try { - $reporting = new \Cubist\Matomo\Reporting('https://v3.stats.fluidbook.com/', 'ebe362f44c01bda1ddedb75d7726ff78'); - print_r($reporting->createSiteIfNotExistsOrReturnId('Fluidbook Y', 'https://fluidbook.y')); - } catch (Exception $e) { - print_r($e); + set_time_limit(0); + $reporting = new \Cubist\Matomo\Reporting('https://v3.stats.fluidbook.com/', 'ebe362f44c01bda1ddedb75d7726ff78'); + for ($i = 24001; $i <= 40000; $i++) { + $reporting->createSite('Fluidbook #' . $i, 'https://' . $i . '.fluidbook'); } } diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index ff9fd3e0b..21f89381b 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -986,7 +986,7 @@ class wsHTML5Compiler global $core; if ($this->book->parametres->stats) { - $this->config->statsMatomo = wsStats::getMatomoAPI()->createSiteIfNotExistsOrReturnId('Fluidbook #' . $this->book_id, 'https://' . $this->book_id . '.fluidbook'); + $this->config->statsMatomo = $this->book_id; } else { $this->config->statsMatomo = false; }