Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Do not check for writable folder before install
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Snape committed Nov 13, 2014
1 parent bbf2e53 commit 53a4c40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion core/controllers/InstallController.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ public function step2Action()
}
}

$this->view->writable = is_writable(BASE_PATH);
$this->view->basePath = BASE_PATH;

if ($this->_request->isPost()) {
Expand Down
8 changes: 2 additions & 6 deletions core/views/install/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,12 @@
}
}

if ($this->writable === false) {
echo "<li><span style=\"color:red\"> Unable to write to the application folder: {$this->basePath}. Please check your web server permissions.</span></li>";
}

if ($this->writable && empty($this->phpextension_missing)) {
if (empty($this->phpextension_missing)) {
echo "<li><span style=\"color:green\"> Your system is OK.</span></li>";
}
echo "</ul>";

if ($this->writable !== false) {
if (empty($this->phpextension_missing)) {
echo "<form method='post' action=''>";
echo "<input type='submit' name='submit' value='Go to next step'>";
echo "</form>";
Expand Down

0 comments on commit 53a4c40

Please sign in to comment.