mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 12:05:29 +00:00
Use ->config()->segment instead. It's possible for somebody to change the value of using the Config API
This commit is contained in:
parent
e6cd3f4cd2
commit
6478a13425
@ -115,7 +115,7 @@ class Solr_Reindex extends Solr_BuildTask
|
||||
}
|
||||
|
||||
// If run at the top level, delegate to appropriate handler
|
||||
$taskName = $this::$segment ?: get_class($this);
|
||||
$taskName = $this->config()->segment ?: get_class($this);
|
||||
$handler->triggerReindex($this->getLogger(), $this->config()->recordsPerRequest, $taskName, $class);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user