Skip to content

Commit

Permalink
Merge pull request #4 from Zuluru/master
Browse files Browse the repository at this point in the history
Use plugin constant instead of hard-coded path
  • Loading branch information
anuj9196 authored Mar 28, 2020
2 parents cb9f148 + c3ffe58 commit de2ce42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Controller/Component/InstallComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function installationCheck()

// reset Database.installed to false
if (!$this->_changeConfiguration()){
$this->Flash->error(__('Cannot modify Database.installed variable in /plugins/Installer/config/bootstrap.php; you must manually update this to true to prevent a later install from overwriting your configuration!'));
$this->Flash->error(__('Cannot modify Database.installed variable in {0}bootstrap.php; you must manually update this to true to prevent a later install from overwriting your configuration!', PLUGIN_CONFIG));
}
return $this->_registry->getController()->redirect(['plugin' => 'Installer', 'controller' => 'Install', 'action' => 'index']);
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/InstallController.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public function finish() {
$d['title_for_layout'] = __('Installation Complete');

if (!$this->_changeConfiguration()){
$this->Flash->error(__('Cannot modify Database.installed variable in /plugins/Installer/config/bootstrap.php; you must manually update this to true to prevent a later install from overwriting your configuration!'));
$this->Flash->error(__('Cannot modify Database.installed variable in {0}bootstrap.php; you must manually update this to true to prevent a later install from overwriting your configuration!', PLUGIN_CONFIG));
}

$this->set($d);
Expand Down

0 comments on commit de2ce42

Please sign in to comment.