Skip to content

Commit 398a53f

Browse files
committed
Issue #633: Move preferexternal setting
1 parent 83b2053 commit 398a53f

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

lang/en/tool_objectfs.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@
259259
$string['settings:permissioncheckpassed'] = 'Permissions check passed.';
260260
$string['settings:handlernotset'] = '$CFG->alternative_file_system_class is not set, the file system will not be able to read from object storage. Background tasks can still function.';
261261

262-
$string['settings:testingheader'] = 'Test Settings';
263262
$string['settings:testingdescr'] = 'This setting is mainly for testing purposes and introduces overhead to check the location.';
264263

265264
$string['settings:error:numeric'] = 'Please enter a number which is greater than or equal 0.';

settings.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@
110110
new lang_string('settings:tokenexpirywarnperiod', 'tool_objectfs'),
111111
'', 60 * DAYSECS, DAYSECS));
112112

113+
$settings->add(new admin_setting_configcheckbox('tool_objectfs/preferexternal',
114+
new lang_string('settings:preferexternal', 'tool_objectfs'), '', ''));
115+
113116
$settings->add(new admin_setting_heading('tool_objectfs/filetransfersettings',
114117
new lang_string('settings:filetransferheader', 'tool_objectfs'), ''));
115118

@@ -247,10 +250,4 @@
247250
}
248251
}
249252
}
250-
251-
$settings->add(new admin_setting_heading('tool_objectfs/testsettings',
252-
new lang_string('settings:testingheader', 'tool_objectfs'), ''));
253-
254-
$settings->add(new admin_setting_configcheckbox('tool_objectfs/preferexternal',
255-
new lang_string('settings:preferexternal', 'tool_objectfs'), '', ''));
256253
}

0 commit comments

Comments
 (0)