mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-14129, cannot use a full string in the param
This commit is contained in:
parent
0a5a575579
commit
1e7386c9ad
2 changed files with 9 additions and 1 deletions
|
@ -3,7 +3,11 @@
|
||||||
|
|
||||||
|
|
||||||
$string['adminprimarynoedit'] = 'The primary admin cannot be edited by others';
|
$string['adminprimarynoedit'] = 'The primary admin cannot be edited by others';
|
||||||
|
$string['blockdoesnotexist'] = 'This block does not exist';
|
||||||
|
$string['blockcannotinistantiate'] = 'Problem in instantiating block object';
|
||||||
|
$string['blockcannotconfig'] = 'This block does not support global configuration';
|
||||||
$string['cannotassignrole'] = 'Cannot assign role in course';
|
$string['cannotassignrole'] = 'Cannot assign role in course';
|
||||||
|
$string['cannotsaveconfig'] = 'Problem saving config \"$a[0]\" as \"$a[1]\" for plugin \"$a[2]\"';
|
||||||
$string['cannotcreatelangdir'] = 'Cannot create lang dir.';
|
$string['cannotcreatelangdir'] = 'Cannot create lang dir.';
|
||||||
$string['cannotcreatetempdir'] = 'Cannot create temp dir.';
|
$string['cannotcreatetempdir'] = 'Cannot create temp dir.';
|
||||||
$string['cannotcustomizelocallang'] = 'You do not have permission to customize the strings translation. This permission is controlled by the capability "moodle/site:langeditlocal". Set this capability to allow you to edit local language packages in case you want to modify translations for your site.';
|
$string['cannotcustomizelocallang'] = 'You do not have permission to customize the strings translation. This permission is controlled by the capability "moodle/site:langeditlocal". Set this capability to allow you to edit local language packages in case you want to modify translations for your site.';
|
||||||
|
@ -12,6 +16,10 @@ $string['cannotdownloadlanguageupdatelist'] = 'Cannot download list of language
|
||||||
$string['cannotdownloadzipfile'] = 'Cannot download ZIP file.';
|
$string['cannotdownloadzipfile'] = 'Cannot download ZIP file.';
|
||||||
$string['cannoteditmasterlang'] = 'You do not have permission to edit master language package. This permission is controlled by the capability "moodle/site:langeditmaster". Set this capability to allow you to edit master language packages in case you are the maintainer of a package.';
|
$string['cannoteditmasterlang'] = 'You do not have permission to edit master language package. This permission is controlled by the capability "moodle/site:langeditmaster". Set this capability to allow you to edit master language packages in case you are the maintainer of a package.';
|
||||||
$string['cannotfindcomponent'] = 'Cannot find component.';
|
$string['cannotfindcomponent'] = 'Cannot find component.';
|
||||||
|
$string['cannotfindcategory'] = 'Cannot find category record from database by ID - $a';
|
||||||
|
$string['cannotfinddocs'] = 'Cannot find \"$a\" language docs files';
|
||||||
|
$string['cannotfindhelp'] = 'Cannot find \"$a\" language help files';
|
||||||
|
$string['cannotsavefile'] = 'Cannot save the file \"$a\".';
|
||||||
$string['cannotsavemd5file'] = 'Cannot save md5 file.';
|
$string['cannotsavemd5file'] = 'Cannot save md5 file.';
|
||||||
$string['cannotsavezipfile'] = 'Cannot save ZIP file.';
|
$string['cannotsavezipfile'] = 'Cannot save ZIP file.';
|
||||||
$string['cannotunzipfile'] = 'Cannot unzip file.';
|
$string['cannotunzipfile'] = 'Cannot unzip file.';
|
||||||
|
|
|
@ -712,7 +712,7 @@ class qformat_default {
|
||||||
function get_category_path($id, $delimiter='/', $includecontext = true) {
|
function get_category_path($id, $delimiter='/', $includecontext = true) {
|
||||||
$path = '';
|
$path = '';
|
||||||
if (!$firstcategory = get_record('question_categories','id',$id)) {
|
if (!$firstcategory = get_record('question_categories','id',$id)) {
|
||||||
print_error( "Error getting category record from db - $id" );
|
print_error('cannotfindcategory', 'error', '', $id);
|
||||||
}
|
}
|
||||||
$category = $firstcategory;
|
$category = $firstcategory;
|
||||||
$contextstring = $this->translator->context_to_string($category->contextid);
|
$contextstring = $this->translator->context_to_string($category->contextid);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue