-
Bug
-
Resolution: Fixed
-
Minor
-
3.6.1, 3.7
-
MOODLE_36_STABLE, MOODLE_37_STABLE
-
MOODLE_36_STABLE
-
MDL-64432_master -
Easy
-
With developer level debugging on, the PHP log file reports:
Debugging: Invalid get_string() identifier: 'starred' or component 'block_myoverview'. Perhaps you are missing $string['starred'] = ''; in F:\moodledev\moodle36/blocks/myoverview/lang/en/block_myoverview.php? in |
* line 349 of \lib\classes\string_manager_standard.php: call to debugging() |
* line 117 of \lib\external\externallib.php: call to core_string_manager_standard->get_string() |
* line 244 of \lib\externallib.php: call to core_external::get_string() |
* line 59 of \lib\ajax\service.php: call to external_api::call_external_function() |
* line 31 of \lib\ajax\service-nologin.php: call to require_once() |
This happens because in the file /theme/bootstrapbase/templates/block_myoverview/course-action-menu.mustache there is the line:
{{#pix}} i/star, core, {{#str}} starred, block_myoverview {{/str}} {{/pix}}
|
however the file /blocks/myoverview/templates/course-action-menu.mustache has:
{{#pix}} i/star, core, {{#str}} favourites, block_myoverview {{/str}} {{/pix}}
|
and in /blocks/myoverview/lang/en/block_myoverview.php there is no string 'starred'.
This is clearly a bug and 'starred' needs to be changed to 'favourites'.
I've added some testing instructions which could be changed if you know where exactly the string should appear in the markup or tooltip etc.
- is a regression caused by
-
MDL-63058 Build course starred functionality
-
- Closed
-