mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
Replace usae of deprecated task type.
This commit is contained in:
parent
1b3882bcb5
commit
e5ea96a228
@ -6,9 +6,9 @@
|
|||||||
*
|
*
|
||||||
* @package contentreview
|
* @package contentreview
|
||||||
*/
|
*/
|
||||||
class ContentReviewEmails extends DailyTask {
|
class ContentReviewEmails extends BuildTask {
|
||||||
function run($req) { $this->process(); }
|
|
||||||
function process() {
|
public function run($request) {
|
||||||
// Disable subsite filter (if installed)
|
// Disable subsite filter (if installed)
|
||||||
if (ClassInfo::exists('Subsite')) {
|
if (ClassInfo::exists('Subsite')) {
|
||||||
$oldSubsiteState = Subsite::$disable_subsite_filter;
|
$oldSubsiteState = Subsite::$disable_subsite_filter;
|
||||||
|
Loading…
Reference in New Issue
Block a user