|
@@ -45,7 +45,7 @@ discard block |
|
|
block discarded – undo |
|
45
|
45
|
'drafts_autosave_enabled' => 2, |
|
46
|
46
|
'drafts_show_saved_enabled' => 2, |
|
47
|
47
|
), |
|
48
|
|
- 'setting_callback' => static function ($value) { |
|
|
48
|
+ 'setting_callback' => static function($value) { |
|
49
|
49
|
require_once(SUBSDIR . '/ScheduledTasks.subs.php'); |
|
50
|
50
|
toggleTaskStatusByName('remove_old_drafts', $value); |
|
51
|
51
|
$modules = ['admin', 'post', 'display', 'profile', 'personalmessage', 'messageindex']; |
|
@@ -147,7 +147,7 @@ discard block |
|
|
block discarded – undo |
|
147
|
147
|
*/ |
|
148
|
148
|
public static function integrate_sa_manage_maintenance(&$subActions) |
|
149
|
149
|
{ |
|
150
|
|
- $subActions['topics']['activities']['olddrafts'] = static function () { |
|
|
150
|
+ $subActions['topics']['activities']['olddrafts'] = static function() { |
|
151
|
151
|
$controller = new ManageDraftsModule(new EventManager()); |
|
152
|
152
|
$controller->setUser(User::$info); |
|
153
|
153
|
$controller->pre_dispatch(); |
Please login to merge, or discard this patch.