mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
added first name and last name fields to installer
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@40605 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
fc66aa6797
commit
987afdab33
10
install.php
10
install.php
@ -598,6 +598,16 @@ PHP
|
||||
|
||||
$dbAdmin->doBuild(true);
|
||||
|
||||
$adminmember = DataObject::get_one('Member',"`Email`= '".$_REQUEST['username']."'");
|
||||
if($adminmember){
|
||||
if($adminmember->_isAdmin()){
|
||||
$adminmember->FirstName = $_REQUEST['firstname'];
|
||||
$adminmember->Surname = $_REQUEST['surname'];
|
||||
$adminmember->write();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
echo "<li>Checking mod_rewrite works</li>";
|
||||
|
||||
$_SESSION['username'] = $_REQUEST['username'];
|
||||
|
Loading…
Reference in New Issue
Block a user