Fix the SettingsController 5.4 call (refactor)
This commit is contained in:
parent
35bc3dad31
commit
77cfd1e5b2
|
@ -101,7 +101,10 @@ class SettingsController extends Controller
|
|||
$dumper = new Dumper();
|
||||
$yaml = $dumper->dump($this->settings);
|
||||
file_put_contents(APPLICATION_PATH . 'PHPCI/config.yml', $yaml);
|
||||
if ($error_get_last = error_get_last()) { return $error_get_last['message']; }
|
||||
if (error_get_last()) {
|
||||
$error_get_last = error_get_last();
|
||||
return $error_get_last['message'];
|
||||
}
|
||||
}
|
||||
|
||||
protected function getGithubForm()
|
||||
|
|
Loading…
Reference in a new issue