Move Scheduler to Tools

This commit is contained in:
Andy Miller
2018-09-07 16:13:07 -06:00
parent 22fd8f49ac
commit 68ab221639
6 changed files with 51 additions and 3 deletions

View File

@@ -601,7 +601,11 @@ class Admin
// Check to see if a data type is plugin-provided, before looking into core ones
$event = $this->grav->fireEvent('onAdminData', new Event(['type' => &$type]));
if ($event && isset($event['data_type'])) {
return $event['data_type'];
if (is_string($event['data_type'])) {
$type = $event['data_type'];
} else {
return $event['data_type'];
}
}
/** @var UniformResourceLocator $locator */