mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
mlanthaler: Refactored the created code since the coding conventions for static methods were changed (ticket #49).
(merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42019 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
83c60460cf
commit
8d89050618
@ -173,7 +173,7 @@ class ContentController extends Controller {
|
||||
* all available log-in forms (also OpenID...)
|
||||
*/
|
||||
public function LoginForm() {
|
||||
return MemberAuthenticator::getLoginForm($this);
|
||||
return MemberAuthenticator::get_login_form($this);
|
||||
}
|
||||
|
||||
public function SilverStripeNavigator() {
|
||||
@ -312,6 +312,8 @@ HTML;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* This action is called by the installation system
|
||||
*/
|
||||
@ -356,7 +358,7 @@ HTML
|
||||
$tempcontent = '';
|
||||
$username = Session::get('username');
|
||||
$password = Session::get('password');
|
||||
|
||||
|
||||
$installfiles = array(
|
||||
'index.php',
|
||||
'install.php',
|
||||
@ -366,17 +368,17 @@ HTML
|
||||
'config-form.html',
|
||||
'index.html'
|
||||
);
|
||||
|
||||
|
||||
foreach($installfiles as $installfile) {
|
||||
if(file_exists('../' . $installfile)) {
|
||||
unlink('../' . $installfile);
|
||||
}
|
||||
|
||||
|
||||
if(file_exists('../' . $installfile)) {
|
||||
$unsuccessful[] = $installfile;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(isset($unsuccessful)) {
|
||||
$title->setValue("Unable to delete installation files");
|
||||
$tempcontent = "<p style=\"margin: 1em 0\">Unable to delete installation files. Please delete the files below manually:</p><ul>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user