- $switchtotext = get_pconfig(local_user(), 'system', 'groupedit_image_limit');
- if ($switchtotext === false) {
- $switchtotext = get_config('system', 'groupedit_image_limit');
- }
- if ($switchtotext === false) {
- $switchtotext = 400;
+ $switchtotext = PConfig::get(local_user(), 'system', 'groupedit_image_limit');
+ if (is_null($switchtotext)) {
+ $switchtotext = Config::get('system', 'groupedit_image_limit', 400);