mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-17457 moved a lot of code into lib/db/install.php + other refactoring and cleanup
This commit is contained in:
parent
51176ec09c
commit
1caea91efb
15 changed files with 280 additions and 361 deletions
|
@ -350,18 +350,15 @@ function mnet_generate_keypair($dn = null, $days=28) {
|
|||
$break = strpos($host.'/' , '/');
|
||||
$host = substr($host, 0, $break);
|
||||
|
||||
if ($result = $DB->get_record('course', array("id"=>SITEID))) {
|
||||
$organization = $result->fullname;
|
||||
} else {
|
||||
$organization = 'None';
|
||||
}
|
||||
$site = get_site();
|
||||
$organization = $site->fullname;
|
||||
|
||||
$keypair = array();
|
||||
|
||||
$country = 'NZ';
|
||||
$province = 'Wellington';
|
||||
$locality = 'Wellington';
|
||||
$email = $CFG->noreplyaddress;
|
||||
$email = !empty($CFG->noreplyaddress) ? $CFG->noreplyaddress : 'noreply@'.$_SERVER['HTTP_HOST'];
|
||||
|
||||
if(!empty($USER->country)) {
|
||||
$country = $USER->country;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue