gtn / exaport

exabis eportfolio
http://www.exabis.at
13 stars 13 forks source link

Version 2024060600 - undefined functions in settings.php #39

Open turf212 opened 3 months ago

turf212 commented 3 months ago

lines 114 has

block_exacomp_get_string('settings_layout_settings_heading', 'block_exaport'),

and line 121 has

$settings->add(new block_exaport_layout_configtable('block_exaport_layout_settings', block_exaport_get_string(

which breaks installation or upgrade. Changing these lines to just use get_string( fixes this.

samuelcalegari commented 3 months ago

Another problem on line 114 if block_exacomp is not installed :

Replace :

// View custom template settings $settings->add(new admin_setting_heading('exaport/layout_settings', block_exacomp_get_string('settings_layout_settings_heading', 'block_exaport'), ''));

by :

// View custom template settings $settings->add(new admin_setting_heading('exaport/layout_settings', get_string('settings_layout_settings_heading', 'block_exaport'), ''));

qqtuyen commented 3 months ago

version 2024061300

is also having the same issue.