mirror of
https://github.com/silverstripe/silverstripe-environmentcheck
synced 2024-10-22 17:05:40 +02:00
BUGFIX: fixing env check code error
This commit is contained in:
parent
b7ca70984d
commit
ce94e7584a
@ -47,7 +47,7 @@ class FileWriteableCheck implements EnvironmentCheck {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$message .= "The webserver user needs to be able to write to this file:\n$filename";
|
$message = "The webserver user needs to be able to write to this file:\n$filename";
|
||||||
}
|
}
|
||||||
|
|
||||||
return array(EnvironmentCheck::ERROR, $message);
|
return array(EnvironmentCheck::ERROR, $message);
|
||||||
|
@ -29,7 +29,7 @@ class URLCheck implements EnvironmentCheck {
|
|||||||
} else if($this->testString && (strpos($response->getBody(), $this->testString) === false)) {
|
} else if($this->testString && (strpos($response->getBody(), $this->testString) === false)) {
|
||||||
return array(
|
return array(
|
||||||
EnvironmentCheck::WARNING,
|
EnvironmentCheck::WARNING,
|
||||||
sprintf('Success retrieving "%s", but string "%s" not found', $this->url, $testString)
|
sprintf('Success retrieving "%s", but string "%s" not found', $this->url, $this->testString)
|
||||||
);
|
);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user