$string['cannotcreatelangbase'] = 'Error: Could not create base lang directory.';
$string['cannotcreatetempdir'] = 'Cannot create temp dir.';
$string['cannotcreatesitedir'] = 'Cannot create site folder. The site administrator needs to fix the file permissions.';
+$string['cannotcreateuploaddir'] = 'Cannot create upload folder. The site administrator needs to fix the file permissions';
$string['cannotcreateorfindstructs'] = 'Error finding or creating section structures for this course';
$string['cannotcreatepopupwin'] = 'Undefined element - cannot create popup window.';
$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['invalidpaymentmethod'] = 'Invalid payment method: $a';
$string['invalidrequest'] = 'Invalid request';
$string['invalidrole'] = 'Invalid role';
+$string['invalidseeky'] = 'Incorrect sesskey submitted, form not accepted!';
$string['invalidshortname'] = 'That\'s an invalid short course name';
$string['invalidscaleid'] = 'Incorrect scale id';
$string['invalidurl'] = 'Invalid url';
<?PHP // $Id$
+$string['mustbeoverriden'] = 'Abstract form_definition() method in class $a must be overriden, please fix the code.';
$string['somefieldsrequired'] = 'There are required fields in this form marked$a.';
$string['err_alphanumeric']='You must enter only letters or numbers here.';
$string['err_email']='You must enter a valid email address here.';
\r
\r
if (! $course = get_record("course", "id", $id) ) {\r
- print_error("That's an invalid course id");\r
+ print_error("invalidcourseid");\r
}\r
\r
require_login($course);\r
}\r
\r
if (! $basedir = make_upload_directory("$course->id")) {\r
- print_error("The site administrator needs to fix the file permissions");\r
+ print_error("cannotcreateuploaddir");\r
}\r
\r
$baseweb = $CFG->wwwroot;\r
}\r
\r
if (!zip_files($files,"$basedir/$wdir/$name")) {\r
- print_error("zipfileserror","error");\r
+ print_error("zipfileserror", "error");\r
}\r
\r
clearfilelist();\r
$file = basename($file);\r
\r
if (!unzip_file("$basedir/$wdir/$file")) {\r
- print_error("unzipfileserror","error");\r
+ print_error("unzipfileserror", "error");\r
}\r
\r
echo "<center><form action=\"coursefiles.php\" method=\"get\">\n";\r
$topics[$i] = helplink('text', get_string('helptext'));
break;
default :
- print_error('Unknown help topic '.$item);
+ print_error('unknownhelp', '', '', $item);
}
} else {
$keyword = optional_param("keyword$i", '', PARAM_ALPHAEXT);
return "<a href=\"$CFG->wwwroot/help.php?module=$module&file=$page.html\">$linktext</a>";
}
-?>
\ No newline at end of file
+?>
// the _qf__.$this->_formname serves as a marker that form was actually submitted
if (array_key_exists('_qf__'.$this->_formname, $submission) and $submission['_qf__'.$this->_formname] == 1) {
if (!confirm_sesskey()) {
- print_error('Incorrect sesskey submitted, form not accepted!');
+ print_error('invalidseeky');
}
$files = $_FILES;
} else {
$files[$elname] = $this->_upload_manager->files[$elname]['tmp_name'];
}
} else {
- print_error('Incorrect upload attempt!');
+ print_error('cannotuploadfile');
}
}
* If you need special handling of uploaded files, create instance of $this->_upload_manager here.
*/
function definition() {
- print_error('Abstract form_definition() method in class '.get_class($this).' must be overriden, please fix the code.');
+ print_error('mustbeoverriden', 'form', '', get_class($this));
}
/**