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…
Reference in New Issue