Use to make backwards compatible with existing code

This commit is contained in:
Marco Hermo 2017-05-01 12:12:43 +12:00
parent 7c0ff89adf
commit e6cd3f4cd2
2 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ use SilverStripe\FullTextSearch\Solr\Stores\SolrConfigStore;
class Solr_Configure extends Solr_BuildTask
{
private static $segment = 'SilverStripeFullTextSearchSolrTasksSolr_Configure';
private static $segment = 'Solr_Configure';
protected $enabled = true;
public function run($request)

View File

@ -25,7 +25,7 @@ use SilverStripe\FullTextSearch\Solr\SolrIndex;
*/
class Solr_Reindex extends Solr_BuildTask
{
private static $segment = 'SilverStripeFullTextSearchSolrTasksSolr_Reindex';
private static $segment = 'Solr_Reindex';
protected $enabled = true;
@ -115,8 +115,8 @@ class Solr_Reindex extends Solr_BuildTask
}
// If run at the top level, delegate to appropriate handler
$self = get_class($this);
$handler->triggerReindex($this->getLogger(), $this->config()->recordsPerRequest, $self, $class);
$taskName = $this::$segment ?: get_class($this);
$handler->triggerReindex($this->getLogger(), $this->config()->recordsPerRequest, $taskName, $class);
}
/**