mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Merge pull request #423 from normann/issue/issue-351
issue-351, run-time error 'log' function doesn't exist on UserFormsUpgradeTask class
This commit is contained in:
commit
227763e164
@ -189,7 +189,7 @@ class UserFormsUpgradeService {
|
|||||||
return $rule;
|
return $rule;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function log($message) {
|
public function log($message) {
|
||||||
if($this->getQuiet()) {
|
if($this->getQuiet()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -12,11 +12,10 @@ class UserFormsUpgradeTask extends BuildTask {
|
|||||||
protected $description = "Upgrade tool for sites upgrading to userforms 3.0";
|
protected $description = "Upgrade tool for sites upgrading to userforms 3.0";
|
||||||
|
|
||||||
public function run($request) {
|
public function run($request) {
|
||||||
$this->log("Upgrading userforms module");
|
$service = Injector::inst()->create('UserFormsUpgradeService');
|
||||||
Injector::inst()
|
$service->log("Upgrading userforms module");
|
||||||
->create('UserFormsUpgradeService')
|
$service->setQuiet(false)
|
||||||
->setQuiet(false)
|
|
||||||
->run();
|
->run();
|
||||||
$this->log("Done");
|
$service->log("Done");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user