Skip to content
Browse files

Remove install checks

  • Loading branch information...
1 parent c313552 commit 7d7ffbce4f40c75a99c9b5059e50f30fd1771561 @dextercowley dextercowley committed Nov 13, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 administrator/includes/framework.php
  2. +1 −1 includes/framework.php
View
2 administrator/includes/framework.php
@@ -20,7 +20,7 @@
/*
* Installation check, and check on removal of the install directory.
*/
-if (!file_exists(JPATH_CONFIGURATION.'/configuration.php') || (filesize(JPATH_CONFIGURATION.'/configuration.php') < 10) /*|| file_exists(JPATH_INSTALLATION.'/index.php')*/) {
+if (!file_exists(JPATH_CONFIGURATION.'/configuration.php') || (filesize(JPATH_CONFIGURATION.'/configuration.php') < 10) || file_exists(JPATH_INSTALLATION.'/index.php')) {
header('Location: ../installation/index.php');
exit();
}
View
2 includes/framework.php
@@ -21,7 +21,7 @@
// Installation check, and check on removal of the install directory.
//
-if (!file_exists(JPATH_CONFIGURATION.'/configuration.php') || (filesize(JPATH_CONFIGURATION.'/configuration.php') < 10) /*|| file_exists(JPATH_INSTALLATION.'/index.php')*/) {
+if (!file_exists(JPATH_CONFIGURATION.'/configuration.php') || (filesize(JPATH_CONFIGURATION.'/configuration.php') < 10) || file_exists(JPATH_INSTALLATION.'/index.php')) {
if (file_exists(JPATH_INSTALLATION.'/index.php')) {
header('Location: '.substr($_SERVER['REQUEST_URI'],0,strpos($_SERVER['REQUEST_URI'],'index.php')).'installation/index.php');

0 comments on commit 7d7ffbc

Please sign in to comment.
Something went wrong with that request. Please try again.