mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
BUG call log() function on instance of UserFormsUpgradeService, to remove run time error that says 'log' function doesn't exists on UserFormsUpgradeTask class
This commit is contained in:
parent
564755e4d3
commit
5460a9ef0f
@ -189,7 +189,7 @@ class UserFormsUpgradeService {
|
||||
return $rule;
|
||||
}
|
||||
|
||||
protected function log($message) {
|
||||
public function log($message) {
|
||||
if($this->getQuiet()) {
|
||||
return;
|
||||
}
|
||||
|
@ -12,11 +12,10 @@ class UserFormsUpgradeTask extends BuildTask {
|
||||
protected $description = "Upgrade tool for sites upgrading to userforms 3.0";
|
||||
|
||||
public function run($request) {
|
||||
$this->log("Upgrading userforms module");
|
||||
Injector::inst()
|
||||
->create('UserFormsUpgradeService')
|
||||
->setQuiet(false)
|
||||
$service = Injector::inst()->create('UserFormsUpgradeService');
|
||||
$service->log("Upgrading userforms module");
|
||||
$service->setQuiet(false)
|
||||
->run();
|
||||
$this->log("Done");
|
||||
$service->log("Done");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user