MDL-59265 analytics: Remove dirroot from the model unique id

This was a bug, this would prevent sites with multiple frontend nodes
from using the same model id.
This commit is contained in:
David Monllao
2017-08-25 13:17:21 +02:00
parent 0f5fa169b1
commit b8fe16cd7c
+1 -1
View File
@@ -1194,7 +1194,7 @@ class model {
// Generate a unique id for this site, this model and this time splitting method, considering the last time
// that the model target and indicators were updated.
$ids = array($CFG->wwwroot, $CFG->dirroot, $CFG->prefix, $this->model->id, $this->model->version);
$ids = array($CFG->wwwroot, $CFG->prefix, $this->model->id, $this->model->version);
$this->uniqueid = sha1(implode('$$', $ids));
return $this->uniqueid;