$string['cannotsetparentforcatoritem'] = 'Can not set parent for category or course item!';
$string['cannotsetpassword'] = 'Could not set user password!';
$string['cannotsetprefgrade'] = 'Could not set preference aggregationview to $a for this grade category';
+$string['cannotsettheme'] = 'Could not set the theme!';
$string['cannotsetupblock'] = 'Blocks tables could NOT be set up successfully!';
$string['cannotsetupcategory'] = 'Serious Error! Could not set up a default course category!';
$string['cannotsetupcapforplugin'] = 'Could not set up the capabilities for $a';
$string['statscatchupmode'] = 'Statistics is currently in catchup mode. So far $a->daysdone day(s) have been processed and $a->dayspending are pending. Check back soon!';
$string['tagnotfound'] = 'The specified tag was not found in the database';
$string['tagdisabled'] = 'Tags are disabled!';
+$string['themenotinstall'] = 'This theme is not installed!';
$string['transactionvoid'] = 'Transaction can not be voided because of already been voided.';
$string['unicodeupgradeerror'] = 'Sorry, but your database is not already in Unicode, and this version of Moodle is not able to migrate your database to Unicode. Please upgrade to Moodle 1.7.x first and perform the Unicode migration from the Admin page. After that is done you should be able to migrate to Moodle $a';
$string['unspecifycourseid'] = 'Must specify course id, short name or idnumber';
/// Check the user we are talking to is valid
if (! $user = $DB->get_record('user', array('id'=>$userid))) {
- print_error("User ID was incorrect");
+ print_error('invaliduserid');
}
/// Check if frame&jsless mode selected
$id = optional_param('id', SITEID, PARAM_INT);
if (!$course = $DB->get_record('course', array('id'=>$id))) {
- print_error('Incorrect course id');
+ print_error('invalidcourseid');
}
course_setup($course); // we should not require login here
}
-?>
\ No newline at end of file
+?>
if ($choose and confirm_sesskey()) {
if (!is_dir($CFG->themedir .'/'. $choose)) {
- print_error("This theme is not installed!");
+ print_error('themenotinstall');
}
if (set_config("theme", $choose)) {
theme_setup($choose);
admin_externalpage_print_footer();
exit;
} else {
- print_error("Could not set the theme!");
+ print_error('cannotsettheme');
}
}
}
if (! $site = get_site()) {
- print_error("Site doesn't exist!");
+ print_error('siteisnotdefined', 'debug');
}
require_login();