Use ->config()->segment instead. It's possible for somebody to change the value of using the Config API

This commit is contained in:
Marco Hermo 2017-05-01 12:26:07 +12:00
parent e6cd3f4cd2
commit 6478a13425
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}